Public | Automated Build

Last pushed: 4 months ago
Short Description
Short description is empty for this repo.
Full Description

Prometheus Command Line Interface

A command line interface tool for querying the Prometheus server's HTTP API.

Building

go build

Usage

Usage:
  ./prometheus_cli [flags] query <expression>
  ./prometheus_cli [flags] query_range <expression> <end_timestamp> <range_seconds> [<step_seconds>]
  ./prometheus_cli [flags] metrics

Flags:
  -csv=true: Whether to format output as CSV
  -csvDelimiter=";": Single-character delimiter to use in CSV output
  -server="": URL of the Prometheus server to query
  -timeout=1m0s: Timeout to use when querying the Prometheus server

Using Docker

You can deploy this tool using the prom/prometheus-cli Docker image.

For example:

docker pull prom/prometheus-cli

docker run --rm -ti prom/prometheus-cli -server="http://my-prometheus:9090/" metrics
Docker Pull Command
Owner
prom
Source Repository

Comments (0)