prometheus-prefect-exporter
by prefect
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
-
Add the Prefect Helm repository to your Helm client:
helm repo add prefect https://prefecthq.github.io/prefect-helm helm repo update -
Deploy a Prefect Server instance using the Prefect Server Helm chart
Install the Prefect Exporter chart
-
Configure the Prefect exporter values as needed Create a
values.yamlfile to customize the Prometheus Prefect Exporter configuration. -
Install the chart
helm install prometheus-prefect-exporter prefect/prometheus-prefect-exporter --namespace=<PREFECT_SERVER_NAMESPACE> -f values.yaml -
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 25mYou 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
| Name | Url | |
|---|---|---|
| jamiezieziula | [email protected] | |
| jimid27 | [email protected] | |
| parkedwards | [email protected] | |
| mitchnielsen | [email protected] |
Requirements
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | common | 2.41.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment |
| basicAuth.authString | string | "admin:pass" | basic auth credentials in the format admin: (no brackets) |
| basicAuth.enabled | bool | false | enable basic auth for the exporter, for an administrator/password combination. must be enabled on the server as well |
| basicAuth.existingSecret | string | "" | 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 |
| commonLabels | object | {} | labels to add to all deployed objects |
| csrfAuth | bool | false | Enable CSRF authentication (Only set to true if Prefect Server has CSRF enabled) |
| env | object | {} | Environment variables to configure application |
| extraEnvVars | list | [] | array with extra environment variables to add to exporter deployment pods |
| fullnameOverride | string | "" | String to fully override common.names.fullname template |
| image | object | {"pullPolicy":"IfNotPresent","repository":"prefecthq/prometheus-prefect-exporter","tag":"1.1.0"} | Image registry |
| imagePullSecrets | list | [] | Global Docker registry secret names as an array |
| ingress | object | {"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]} | Ingress configuration to expose app |
| livenessProbe | bool | false | Enable livenessProbe |
| nameOverride | string | "" | String to partially override common.names.fullname template (will maintain the release name) |
| nodeSelector | object | {} | Node labels for pod assignment |
| pagination | object | {"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. |
| podAnnotations | object | {} | Pod annotations |
| podLabels | object | {} | extra labels for exporter pod |
| podSecurityContext | object | {} | To specify security settings for a Pod |
| prefectApiUrl | string | "http://prefect-server.prefect.svc.cluster.local:4200/api" | Prefect API URL to connect to for metrics |
| prometheusRule.additionalLabels | object | {} | |
| prometheusRule.enabled | bool | false | |
| prometheusRule.rules | list | [] | |
| readinessProbe | bool | false | Enable readinessProbe |
| resources | object | {} | The resources limits and requested |
| revisionHistoryLimit | int | 10 | the number of old ReplicaSets to retain to allow rollback |
| securityContext | object | {} | Defines privilege and access control settings for a Pod or Container |
| service | object | {"annotations":{},"ipFamilies":[],"ipFamilyPolicy":"","port":80,"targetPort":8000,"type":"ClusterIP"} | Kubernetes servide to expose Pod |
| service.annotations | object | {} | additional custom annotations for exporter service |
| service.ipFamilies | list | [] | list of IP families (e.g. [IPv4], [IPv6], [IPv4, IPv6]) |
| service.ipFamilyPolicy | string | "" | service IP family policy for dual-stack support (SingleStack, PreferDualStack, RequireDualStack) ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/ |
| service.port | int | 80 | Kubernetes Service port |
| service.targetPort | int | 8000 | Pod expose port |
| service.type | string | "ClusterIP" | Kubernetes Service type. Allowed values: NodePort, LoadBalancer or ClusterIP |
| serviceAccount | object | {"annotations":{},"create":true,"name":""} | Enable creation of ServiceAccount |
| serviceMonitor | object | {"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.enabled | bool | false | Enable or disable |
| tolerations | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-prefect-exporter is pinned at v2026.11.24145157 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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