https://github.com/jimdo/metrics-analysis
Tool to analyse Prometheus metric endpoints
https://github.com/jimdo/metrics-analysis
owner-team-wonderland
Last synced: 12 months ago
JSON representation
Tool to analyse Prometheus metric endpoints
- Host: GitHub
- URL: https://github.com/jimdo/metrics-analysis
- Owner: Jimdo
- License: mit
- Created: 2024-02-26T16:58:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T14:43:52.000Z (about 2 years ago)
- Last Synced: 2025-04-01T10:56:13.135Z (about 1 year ago)
- Topics: owner-team-wonderland
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Metrics Analysis
This tool can be used to analyze Prometheus metrics endpoints for high cardinality. If you want to contribute your own changes please take a look at the [CONTRIBUTING.md](CONTRIBUTING.md) file.
## Usage
### Get a sample of all metrics data from the current cluster and namespace
This will store the metrics outputs in the directory `metrics-`
```
./get-all-pods-metrics.sh
```
You can use the `skip_until_prefix` variable to skip reading already read
metrics in case of an error (e.g. a pod disappears while reading)
## Build the tool
```
make
```
### Usage
Use `./metrics-analysis -h` to see the help.
### List of Metrics (with summary)
```
./metrics-analysis -f metrics-.../podname.metrics -n
```
Output format: ` (value_count, ...)`
### Show specific metric
```
./metrics-analysis -f metrics-.../podname.metrics -m response_latency_ms
```
### Summarize everything
```
./metrics-analysis -f metrics-.../podname.metrics
```