prometheus-metadata-exporter

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 5 Imported by: 0

README

prometheus-metadata-exporter

build GitHub GitHub tag (latest SemVer)

Utility to get information about all metrics metadata available on a Prometheus instance

Usage

Run the tool specifying the Prometheus instance URL (default "http://localhost:9090") and the output format (default "text")

./prometheus-metadata-exporter -prometheus.url http://<some-server>:<some-port> -format json

The tool will print the results on the standard output; if you want redirect to a file you can use shell redirection

./prometheus-metadata-exporter -prometheus.url http://<some-server>:<some-port> -format json > output.json

Configuration parameter

Flag Name Description Default Value
-prometheus.url Base URL for the Prometheus instance http://localhost:9090
-format Output format text

Output formats

Option Description
text Text Format
csv CSV Format
html HTML Table Format
md Markdown Table Format
json JSON (indented) Format

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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