A command line tool for parsing Prometheus metrics
Project description
Parse and filter metrics from Prometheus endpoints so that they can be visualized, stored into InfluxDB, or used as Juju charm metrics.
Installation
Run pip install firestealer. This will make the fsteal command available.
Usage
Print JSON formatted samples from a Prometehus endpoint:
$ fsteal http://localhost:8000/metrics
Filter metrics using a regular exception against the sample name:
$ fsteal http://localhost:8000/metrics -m '^myservice(Donwloads|Uploads)'
Store samples into InfluxDB:
$ fsteal localhost:8000/metrics influxdb://user:passwd@10.0.0.1:8086/mydb
Store a subset of samples into InfluxDB:
$ fsteal localhost:8000/metrics influxdb://user:passwd@10.0.0.1:8086/mydb -m '^myservice'
In the example above the InfluxDB connection info is provided using a influxdb://$user:$passwd@$host:$port/$database connection string.
Only print specific metrics values (useful when executing fsteal in order to retrieve charm metrics):
$ fsteal localhost:8000/metrics a-single-specific-key --format values-only
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for firestealer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0c905c3c5f97df94e4147575de4554f2cc89bd8b8009d9316cc3c1ae650325 |
|
MD5 | 12cc885e0f486c9dea347856645442a7 |
|
BLAKE2b-256 | 26edfaeaa0b880d7b3e68adf55ee66965281cc68b590387f0e358699dbdd7048 |