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.""

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