https://github.com/jamesread/prometheus-gcal-exporter
Checks Google calendar events and turns them into metrics.
https://github.com/jamesread/prometheus-gcal-exporter
maturity-prod prometheus prometheus-exporter service
Last synced: 5 days ago
JSON representation
Checks Google calendar events and turns them into metrics.
- Host: GitHub
- URL: https://github.com/jamesread/prometheus-gcal-exporter
- Owner: jamesread
- License: apache-2.0
- Created: 2021-02-24T17:53:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T21:55:10.000Z (about 1 year ago)
- Last Synced: 2025-10-13T14:24:37.280Z (9 months ago)
- Topics: maturity-prod, prometheus, prometheus-exporter, service
- Language: Python
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prometheus-gcal-exporter
Scrapes Google calendar events, works out what is internal and what is
external, and exposes them as Prometheus Metrics.
This makes it easy to use from stuff like Grafana, like so;

## Installation
```bash
docker create --name prometheus-gcal-exporter -p 8080:8080 ghcr.io/jamesread/prometheus-gcal-exporter:1.0.0
```
## Setup
Get a client_secrets.json file .
1. Go to https://console.developers.google.com/apis/credentials
2. Setup a OAuth 2.0 Client ID.
3. Create credentials. You need to setup the app as a "desktop app".
## Config
Example /etc/prometheus-gcal-exporter/config.ini:
clientSecretFile=/opt/client_secret.json
updateDelaySeconds=300
internalDomain=example.com
The container will run on port 8080/tcp by default. Metrics are available at
the standard /metrics prom endpoint.