https://github.com/petergrace/clifana
Do prometheus visualization stuff on the cli
https://github.com/petergrace/clifana
Last synced: about 1 year ago
JSON representation
Do prometheus visualization stuff on the cli
- Host: GitHub
- URL: https://github.com/petergrace/clifana
- Owner: PeterGrace
- License: mit
- Created: 2023-01-06T22:05:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-09T19:24:27.000Z (about 3 years ago)
- Last Synced: 2025-02-15T02:44:43.584Z (over 1 year ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clifana
Do prometheus visualization stuff on the cli
## ideas
- use a toml config file
- config file will have a place to specify multiple data sources in easy-to-connect formats
```
[[server]]
name=myserver
url=http://my-prometheus-server:9090/
```
- config file will have ability to store common queries that you use a lot
```
[[query]]
name=cpu
query = """
sum(cpu_seconds_total{foo="$bar"})
"""
```
- config file will support cli argument to variable substitution (or maybe envvar?)
```
[[server]]
name=generic
url="http://${serverip}:9090"
--
./clifana --connect=server --query=query --args=serverip,127.0.0.1
```
- maybe visualize graphs in ascii art similar to the python cli visualization tools that exist already