Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nullren/promtool-tsdb-analyze-parser


https://github.com/nullren/promtool-tsdb-analyze-parser

Last synced: about 14 hours ago
JSON representation

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.