jamesread / prometheus-gmail-exporter

Checks gmail labels for unread messages and exposes the counts via prometheus.
Apache License 2.0
47 stars 9 forks source link

Handle API errors by not exporting "outdated" metrics #34

Open jamesread opened 5 months ago

jamesread commented 5 months ago
          Hey @lapo-luchini , gmail / google is kinda shitty with their APIs - things seem to randomly change and aren't versioned great. It does look like some scopes were renamed which I need to look into - see https://github.com/jamesread/prometheus-gmail-exporter/issues/32#issuecomment-2005173128 . 

I agree that this app should expose this as an error to prom - I don't know what is the idiomatic way to do this in Prometheus, so I'll start some research on that.

Originally posted by @jamesread in https://github.com/jamesread/prometheus-gmail-exporter/issues/31#issuecomment-2111064910