mirror of
https://github.com/google/nomulus
synced 2026-02-03 11:32:24 +00:00
* Add MosApiMetrics exporter with status code mapping Introduces the metrics exporter for the MoSAPI system. - Implements `MosApiMetrics` to export TLD and service states to Cloud Monitoring. - Maps ICANN status codes to numeric gauges: 1 (UP), 0 (DOWN), and 2 (DISABLED/INCONCLUSIVE). - Sets `MAX_TIMESERIES_PER_REQUEST` to 195 to respect Cloud Monitoring API limits * Automate metric descriptor creation on startup in Cloud Monitoring * Refactor MoSAPI metrics for resilience and standards * Refactor and nits - Kept projectName as part constant instead of inside method signature - Added Summary logs for metrics execution - Metric Executor defaults to Single Threaded * junit test refactoring * Fix Metric kind to GAUGE for all metrics * Refactor MosApiMetrics to remove async ExecutorService * Add LockHandler for Metric Descriptor creation * Update LockHandler lease time to one hour and refactoring