Skip to content

snapp-incubator/prom-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License CI Release

Prom Reporter

This repo provides a reporter to gather insight from desired prometheus metrics.

Requirements

  • Python 3.12+

Installation

pip install -r requirements.txt

Usage

  1. Create a config yaml file containing your desired queries just like the repo example.

  2. Run the application providing the config and the output files' paths:

    python app/main.py -c tests/config.yaml -o output.json

Contributing

Thank you for considering contributing! If you find an issue or have a better way to do something, feel free to open an issue or a PR.

Test

pytest -v

Coverage

coverage run -m pytest
coverage report

License

This repository is open-sourced software licensed under the Apache License 2.0.