proq is an open-source command-line tool that acts as an embedded in-memory Prometheus server. It allows you to pull metrics from any given endpoint that exposes Prometheus metrics and visualize them as plots and histograms directly in the terminal, powered by termui. This is especially useful for debugging inside a server or container where setting up a full Prometheus instance is impractical. With proq
, you can quickly inspect metrics without any external dependencies.
- π Pulls and stores Prometheus metrics in memory
- π Displays real-time plots and histograms in the terminal
- β‘ Lightweight and fast
- ποΈ Simple CLI interface for querying and visualization
go install github.com/ostafen/proq@latest
git clone https://github.com/ostafen/proq.git
cd proq
make build
proq http://localhost:9090/metrics
You can pass the following flags:
- π
--window
β The size of the displayed time window (default: 1min). - π
--refresh-interval
β Refresh rate for fetching new metrics (default: 1s)
Contributions are welcome! To contribute:
- π΄ Fork the repository
- π± Create a feature branch (
git checkout -b feature-name
) - πΎ Commit your changes (
git commit -m 'Add new feature'
) - π€ Push to the branch (
git push origin feature-name
) - π₯ Open a Pull Request
π This project is licensed under the MIT License.
- π Prometheus
- π₯οΈ termui