release-exporter

Retrieves release information and exports related metrics.

Metrics

Currently, only a single core metric upgrades is supported.

upgrades

The metric upgrades contains information about available upgrades. This information is represented in the labels. The metric value itself will be 1.

The metric is configured with the upgrade_pending_checks configuration key (see Configuration section below).

The following labels will always exist:

Additionally, all labels of the release provider, referenced in the current current field of the upgrades_pending_checks configuration, will be added.

releaseexporterbuild_info

Provides the release-exporter version as label.

Configuration

The configuration has to be in YAML format. It uses two main keys:

An example configuration can be found in sample-conf.yml.

Providers

Each provider must have at least the following two keys:

Each provider type has additional required and optional keys.

A provider returns a set of releases where each release has different labels.

latestgithubrelease provider

Retrieves the latest release from a Github repository.

Accepts the following configuration keys:

prometheus provider

Retrieves versions from a Prometheus metric label.

upgradependingchecks

Configures the check between release versions to determine available upgrades. These checks are exported as the upgrades metric. Each item accepts the following configuration keys:

Note the handling of labels:

Usage

``` Usage: release-exporter [OPTIONS] --config.file

Options: --config.file Configuration file to load --http.timout Timeout for HTTP requests (seconds) [default: 10] --web.listen-address Address on which to expose metrics [default: localhost:31343] -h, --help Print help information -V, --version Print version information ```