Sign inSign up

devopsiaci/prometheus-prefect-exporter

By devopsiaci

Updated almost 3 years ago

A Prometheus Prefect Exporter

Image
0

4.9K

devopsiaci/prometheus-prefect-exporter repository overview

(DEPRECATED) Prometheus Prefect Exporter

Moved to prefecthq/prometheus-prefect-exporter.

A Prometheus exporter for Prefect.io metrics, written in Python.

Installation and usage

By default prometheus-prefect-exporter will listen on port 8000.

Docker
docker run -d \
  -p 8000:8000 \
  -e PREFECT_API_URL=<PREFECT_ENDPOINT> \
  devopsia/prometheus-prefect-exporter:latest

Configuration

Can modify environment variables to change the behavior of the exporter.

Environment VariableDescriptionDefault
LOG_LEVELLogging levelINFO
MAX_RETRIESNumber of retries to attempt when fetching metrics from Prefect API3
METRICS_PORTPort to expose metrics on8000
OFFSET_MINUTESNumber of minutes to offset the start time when fetching metrics from Prefect API5
PREFECT_API_URLPrefect API URLhttps://localhost/api

Local build and running

Pre-requisites:

  • Python 3.11
  • Pipenv

Running:

git clone https://github.com/devops-ia/prometheus-prefect-exporter.git
cd prometheus-prefect-exporter
pipenv sync
pipenv shell
python main.py

Tag summary

Content type

Image

Digest

sha256:6241ace7e

Size

39.7 MB

Last updated

almost 3 years ago

docker pull devopsiaci/prometheus-prefect-exporter