prometheus-expvar-exporter

command module
v0.0.0-...-083a3ee Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

prometheus-expvar-exporter

prometheus-expvar-exporter collects expvar metrics from different sources, and exports them for Prometheus.

Install

go get blitiri.com.ar/go/prometheus-expvar-exporter

Configure

The exporter is configured using a toml file.

For example:

# Address to listen on. Prometheus should be told to scrape this.
listen_addr = ":8000"

# Expvar target.
[server]
url = "http://localhost:2222/debug/vars"

By default, the exporter will try to auto-convert all expvars. It is only able to auto-convert float and boolean expvars without labels. The configuration allows for manual set up of conversion, and label support.

See config.toml for more details and an example.

Run

~/go/bin/prometheus-expvar-exporter --config=config.toml

Documentation

Overview

prometheus-expvar-exporter collects expvar metrics from different sources, and exports them for Prometheus.

Jump to

Keyboard shortcuts

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