influxdb-alerter

command module
v0.0.0-...-badc2aa Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

README

influxdb-alerter

Sends an alert when there are no new values posted to a given measurement in InfluxDB in a given time.

Usage

First, create a copy of the example config:

cp example-config.yaml config.yaml

Fill in the desired alert threshold age (time since last measurement, config value --max_age) and your InfluxDB credentials. If you want email notifications, also fill out your SMTP credentials. Place the config file either in the project directory, $HOME/.influxdb-alerter/config.yaml or /etc/influxdb-alerter/config.yaml. Or you can specify the config file location with the --config <path> CLI argument.

You can run the alerter either via Docker:

./build.sh
./run.sh

or directly with:

go run main.go check

In case of an InfluxDB connection error, the program will exit with status code 1, otherwise it will exit with code 0 and send the configured notifications.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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