Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

devops-ia/prometheus-prefect-exporter

Repository files navigation

⚠️ DEPRECATED - Prometheus Prefect Exporter

This chart was moved to https://github.com/PrefectHQ/prometheus-prefect-exporter.

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 Variable Description Default
LOG_LEVEL Logging level INFO
MAX_RETRIES Number of retries to attempt when fetching metrics from Prefect API 3
METRICS_PORT Port to expose metrics on 8000
OFFSET_MINUTES Number of minutes to offset the start time when fetching metrics from Prefect API 5
PREFECT_API_URL Prefect API URL https://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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published