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
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 container500Mi
resources.requests.cpuCPU request for the container100m
resources.limits.memoryMemory limit for the container1Gi

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