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;
docker create --name prometheus-gcal-exporter -p 8080:8080 ghcr.io/jamesread/prometheus-gcal-exporter:1.0.0Get a client_secrets.json file .
- Go to https://console.developers.google.com/apis/credentials
- Setup a OAuth 2.0 Client ID.
- Create credentials. You need to setup the app as a "desktop app".
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.
