{"repo":"jamesread/prometheus-gmail-exporter","free":true,"listed":false,"github":"https://github.com/jamesread/prometheus-gmail-exporter","clone":"git clone https://github.com/jamesread/prometheus-gmail-exporter.git","description":"Checks gmail labels for unread messages and exposes the counts via prometheus.","language":"Go","stars":57,"topics":["prometheus","prometheus-exporter","service","hacktoberfest","maturity-prod"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"prometheus-gmail-exporter Checks Gmail labels for unread messages and exposes the counts as Prometheus metrics. This project is implemented in Go . The exporter serves Prometheus metrics, OAuth login, and a Kubernetes readiness endpoint on port 8080 by default. There is a blog article about why this was created, with an example integration to Grafana. It looks like this; Example prometheus Metrics On API failures, outdated label/query series are removed from /metrics and gmail scrape success is set to 0 so alerts can detect a bad scrape. Example configuration file ( prometheus-gmail-exporter.yaml ) Configuration files are read from, in order: - /.prometheus-gmail-exporter/prometheus-gmail-exporter.cfg - /.prometheus-gmail-exporter/prometheus-gmail-exporter.yaml - /etc/prometheus-gmail-exporter.cfg - /etc/prometheus-gmail-exporter.yaml CLI flags override file settings. Run with --help for the full list. Setup API access To allow this app to access your gmail, it needs a client secret.json file, and a login cookie.dat . The instructions below explain how to set this up. Getting client secret.json NOTE : Google frequently changes it's API, Web interface, and similar without much notice. These instructions were last tested and validated on 2024-04-14 - if the instructions or screenshots don't match what you're seeing, it would be really helpful if you could raise a GitHub issue on this repository and report it. Thanks! Go to the Google Developers API Console: https://console.deve","default_branch":null,"files":null,"tree":[],"storefront":"/r/jamesread","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jamesread/prometheus-gmail-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}