prometheus-prefect-exporter

by prefect

Helm chartv2026.11.24145157App 5.1.0Verified publisher

A Helm chart to deploy Prometheus Prefect Exporter

About this chart

prometheus-prefect-exporter

Overview

This chart deploys a Prometheus Exporter for Prefect Server, providing relevant metrics from your deployed Prefect Server instance. Shoutout to @ialejandro for the original work on this chart!

Installing the Chart

Prerequisites

  1. Add the Prefect Helm repository to your Helm client:

    helm repo add prefect https://prefecthq.github.io/prefect-helm
    helm repo update
    
  2. Deploy a Prefect Server instance using the Prefect Server Helm chart

Install the Prefect Exporter chart

  1. Configure the Prefect exporter values as needed Create a values.yaml file to customize the Prometheus Prefect Exporter configuration.

  2. Install the chart

    helm install prometheus-prefect-exporter prefect/prometheus-prefect-exporter --namespace=<PREFECT_SERVER_NAMESPACE> -f values.yaml
    
  3. Verify the deployment

    Check the status of your Prometheus Prefect Exporter deployment:

    kubectl get pods -n prefect
    
    NAME                                  READY   STATUS    RESTARTS       AGE
    prometheus-prefect-exporter-76vxqnq   1/1     Running   0              25m
    

    You should see the Prometheus Prefect Exporter pod running

One replica

The exporter counts flow runs from the Prefect event stream, and each exporter pod counts every run it receives. The chart therefore runs exactly one pod and replaces it with the Recreate strategy, so an old and a new pod never run together. It has no autoscaler or pod disruption budget, and it fails to render if replicaCount is set to anything but 1, if autoscaling.enabled is set, or if podDisruptionBudget is set to a non-empty value.

With serviceMonitor.enabled, the ServiceMonitor skips endpoints that are terminating, sets the instance label to the release name and drops the pod label, so a replaced pod continues the same series and a pod that is shutting down is not scraped beside its replacement. Your own relabelings run after these three rules.

Additional Exporter Configurations

Basic Auth

Prefect documentation on basic auth

Self-hosted Prefect servers can be equipped with a Basic Authentication string for an administrator/password combination. Assuming you are running a self-hosted server with basic auth enabled, you can authenticate your exporter with the same credentials.

The format of the auth string is admin:<my-password> (no brackets).

basicAuth:
    enabled: true
    authString: "admin:pass"

Alternatively, you can provide an existing Kubernetes Secret containing the auth string credentials. The secret must contain a key auth-string with the value of the auth string.

kubectl create secret generic prefect-basic-auth --from-literal=auth-string='admin:my-password'
basicAuth:
    enabled: true
    existingSecret: prefect-basic-auth

Maintainers

NameEmailUrl
jamiezieziula[email protected]
jimid27[email protected]
parkedwards[email protected]
mitchnielsen[email protected]

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamicommon2.41.0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment
basicAuth.authStringstring"admin:pass"basic auth credentials in the format admin: (no brackets)
basicAuth.enabledboolfalseenable basic auth for the exporter, for an administrator/password combination. must be enabled on the server as well
basicAuth.existingSecretstring""name of existing secret containing basic auth credentials. takes precedence over authString. must contain a key auth-string with the value of the auth string
commonLabelsobject{}labels to add to all deployed objects
csrfAuthboolfalseEnable CSRF authentication (Only set to true if Prefect Server has CSRF enabled)
envobject{}Environment variables to configure application
extraEnvVarslist[]array with extra environment variables to add to exporter deployment pods
fullnameOverridestring""String to fully override common.names.fullname template
imageobject{"pullPolicy":"IfNotPresent","repository":"prefecthq/prometheus-prefect-exporter","tag":"1.1.0"}Image registry
imagePullSecretslist[]Global Docker registry secret names as an array
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}Ingress configuration to expose app
livenessProbeboolfalseEnable livenessProbe
nameOverridestring""String to partially override common.names.fullname template (will maintain the release name)
nodeSelectorobject{}Node labels for pod assignment
paginationobject{"enabled":true,"limit":200}Pagination settings. If enabled, the exporter will paginate the API requests to Prefect Server which uses more resources. Remember to increase the resources for the exporter if enabled.
podAnnotationsobject{}Pod annotations
podLabelsobject{}extra labels for exporter pod
podSecurityContextobject{}To specify security settings for a Pod
prefectApiUrlstring"http://prefect-server.prefect.svc.cluster.local:4200/api"Prefect API URL to connect to for metrics
prometheusRule.additionalLabelsobject{}
prometheusRule.enabledboolfalse
prometheusRule.ruleslist[]
readinessProbeboolfalseEnable readinessProbe
resourcesobject{}The resources limits and requested
revisionHistoryLimitint10the number of old ReplicaSets to retain to allow rollback
securityContextobject{}Defines privilege and access control settings for a Pod or Container
serviceobject{"annotations":{},"ipFamilies":[],"ipFamilyPolicy":"","port":80,"targetPort":8000,"type":"ClusterIP"}Kubernetes servide to expose Pod
service.annotationsobject{}additional custom annotations for exporter service
service.ipFamilieslist[]list of IP families (e.g. [IPv4], [IPv6], [IPv4, IPv6])
service.ipFamilyPolicystring""service IP family policy for dual-stack support (SingleStack, PreferDualStack, RequireDualStack) ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
service.portint80Kubernetes Service port
service.targetPortint8000Pod expose port
service.typestring"ClusterIP"Kubernetes Service type. Allowed values: NodePort, LoadBalancer or ClusterIP
serviceAccountobject{"annotations":{},"create":true,"name":""}Enable creation of ServiceAccount
serviceMonitorobject{"additionalLabels":{},"enabled":false,"interval":"30s","metricRelabelings":[],"relabelings":[],"scrapeTimeout":"10s"}Enable ServiceMonitor to get metrics ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitor
serviceMonitor.enabledboolfalseEnable or disable
tolerationslist[]Tolerations for pod assignment

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy prometheus-prefect-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-prefect-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprometheus-prefect-exporter is pinned at v2026.11.24145157 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply