prometheus-community / stackdriver_exporter

Google Stackdriver Prometheus exporter
Apache License 2.0
263 stars 99 forks source link

Fix monitoring metrics for individual collectors #389

Open ananya-mallik-ps opened 3 days ago

ananya-mallik-ps commented 3 days ago

Fix monitoring metrics

Problem

Currently, each time a metrics endpoint is hit (with collect parameter e.g., /metrics?collect=pubsub.googleapis.com/topic), a new collector is created. This causes the monitoring metrics (stackdriver_monitoring_api_calls_total, stackdriver_monitoring_scrapes_total etc.) to reset on each scrape.

Solution

This PR:

Testing

ananya-mallik-ps commented 2 days ago

@SuperQ @kgeckhart