Skip to content

jamesread/prometheus-gcal-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

Grafana screenshot

Installation

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.

About

Checks Google calendar events and turns them into metrics.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors