Skip to content

Prometheus Agent

This chart deploys Prometheus in agent mode to scrape Kubernetes metrics and write them to a central Prometheus endpoint.

Secrets

To securely provide the remote write credentials, create a Kubernetes Secret named prometheus-remote-write-credentials in the target namespace.

bash
REMOTE_WRITE_USERNAME="your-username"
REMOTE_WRITE_PASSWORD="your-secret-password-here"
kubectl create secret generic prometheus-remote-write-credentials \
    --from-literal=username="$REMOTE_WRITE_USERNAME" \
    --from-literal=password="$REMOTE_WRITE_PASSWORD" \
    -n <namespace>

Parameters

prometheusAgent parameters

NameDescriptionValue
imageThe image for Prometheusprom/prometheus:v2.54.1
imagePullPolicyPull policy for Prometheus imageAlways
replicasNumber of replicas for the Prometheus agent deployment1

Remote write configuration

NameDescriptionValue
remoteWrite.urlThe remote write endpoint URL.https://prometheus.mint-system.ch/api/v1/write

Resources requests and limits

NameDescriptionValue
resources.requests.memoryMemory request for the container64Mi
resources.requests.cpuCPU request for the container250m
resources.limits.memoryMemory limit for the container128Mi
resources.limits.cpuCPU limit for the container500m

Kube-state-metrics configuration

NameDescriptionValue
kube-state-metrics.enabledEnable kube-state-metrics as sub-charttrue
kube-state-metrics.resources.requests.memoryMemory request for the container32Mi
kube-state-metrics.resources.requests.cpuCPU request for the container10m
kube-state-metrics.resources.limits.memoryMemory limit for the container128Mi