Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nullren/promtool-tsdb-analyze-parser
https://github.com/nullren/promtool-tsdb-analyze-parser
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nullren/promtool-tsdb-analyze-parser
- Owner: nullren
- License: mit
- Created: 2022-06-10T19:18:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T20:35:10.000Z (over 2 years ago)
- Last Synced: 2024-06-21T12:54:11.361Z (5 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# promtool-tsdb-analyze-parser
Just a really simple utility to take output from `promtool tsdb analyze /data` and turn it into json.
This is mostly pretty ugly because the source material is also [not exactly structured](https://github.com/prometheus/prometheus/blob/a84c472745123e7c4e319a31dec7e2d14442c2bc/cmd/promtool/tsdb.go#L421-L572).
Usage is pretty basic. Would look something like this:
```
promtool tsdb analyze /data | promtool-tsdb-analyze-parser
```There are flags to specify both the input and output files, but the default is to use stdin and stdout.