https://github.com/brianhicks/promtree
a quick and dirty `tree` for prometheus services
https://github.com/brianhicks/promtree
Last synced: 7 months ago
JSON representation
a quick and dirty `tree` for prometheus services
- Host: GitHub
- URL: https://github.com/brianhicks/promtree
- Owner: BrianHicks
- License: apache-2.0
- Created: 2017-04-06T15:25:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T15:32:18.000Z (about 9 years ago)
- Last Synced: 2025-04-02T06:07:44.543Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `promtree`
a quick and dirty `tree` for prometheus services

## Usage
promtop.sh localhost/metrics
## How Rough Is This?
Well, it's pretty rough.
To get the tree shown above, it:
1. Gets all the metrics
2. Filters out the comments
3. Replaces `_` with `/`
4. Writes those "directories" to a tempdir
5. Runs `tree` on the tempdir
6. Deletes the tempdir
So you probably don't want to do anything serious with this. It's a pretty hacky hack, as hacks go.