radicale_exporter

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 10 Imported by: 0

README

radicale_exporter

Tag Go Version PkgGoDev Go Report Card

A very simple Prometheus exporter for the Radicale CalDAV/CardDAV server

The exporter presents a metric radicale_requests which provides counters about the various HTTP request types (PROPFIND, PUT, DELETE, ...). Additionally, a metric radicale_up tells if the exporter was able to contact the Radicale server via its TCP socket.

Events are read from a duplicated Radicale logfile. See the logging file for how to configure logging to two targets. Metrics can be scraped via the /metrics endpoint.

Note that the input file will be truncated with each scrape to avoid duplicate events.

Usage / default values

usage: radicale_exporter [<flags>]

Flags:
  -l, --listen=":9191"                                             address:port to serve /metrics on
  -i, --inputfile="/var/log/radicale/radicale_exporter_input.log"  exporter input file (truncated!)
  -s, --scrapeinterval=15                                          Prometheus scrape interval
  -r, --radicale=":5232"                                           address:port to contact Radicale on
  -d, --debug                                                      more output and skip TCP socket check

Supported versions

The exporter was tested with Radicale 1.1.1 and 1.1.6. It should work with any version that logs to a file with format:
2018-03-28 13:42:57,286 - INFO: PROPFIND request at /user/MyCalendar/ received

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL