Files
Kubernetes-Build/Monitor.md
T

1.2 KiB

Monitor

Setup Prometheus agent for your cluster.

Create a namespace.

kubens prometheus

Setup the credentials according to the prometheusAgent README.

Update the values file with the remoteWrite.url.

Install the chart.

task install-chart prometheusAgent test_values/knd.local.yaml

Checking Metrics

To verify the prometheus-agent is running and sending metrics:

  1. Check pod status:
kubectl get pods -n prometheus
  1. Access the Prometheus agent dashboard:
task forward prometheusAgent

This will forward port 9090 to your local machine where you can access:

  1. Check logs of the agent:
kubectl logs -n prometheus deployment/prometheus-agent
  1. View metrics on the central Prometheus server:

Access the metrics at the remote write endpoint (e.g., https://prometheus.mint-system.ch) where they are forwarded from the agent.