ashleykleynhans / runpod-general-prometheus-textfile-exporter

Prometheus Textfile Exporter for RunPod GraphQL API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RunPod General Prometheus Textfile Exporter

Installing

Clone the repo

git clone https://github.com/ashleykleynhans/runpod-general-prometheus-textfile-exporter.git
cd runpod-general-prometheus-textfile-exporter

Create and activate a Python virtual environment

python3 -m venv venv
source venv/bin/activate

Install the dependencies

pip3 install -r requirements.txt

Create a config file

cp config.yml.example config.yml

Add your RunPod API key and endpoints to the config file

  1. Edit config.yml
  2. Ensure that textfile_path is pointing to the correct path for your Prometheus Text File exporter directory.
  3. Replace YOUR_RUNPOD_API_KEY with your RunPod API key.

Run the script via a cron job to generate the files

Create a cron job that runs the script runpod_exporter_cron.sh at your preferred interval.

Community and Contributing

Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.

Appreciate my work?

Buy Me A Coffee

About

Prometheus Textfile Exporter for RunPod GraphQL API

License:GNU General Public License v3.0


Languages

Language:Python 98.8%Language:Shell 1.2%