1.2 KiB
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:
- Check pod status:
kubectl get pods -n prometheus
- Access the Prometheus agent dashboard:
task forward prometheusAgent
This will forward port 9090 to your local machine where you can access:
- http://localhost:9090 for the Prometheus agent interface
- http://localhost:9090/api/v1/targets for the targets status
- http://localhost:9090/api/v1/status/config for the configuration
- http://localhost:9090/api/v1/agent/wal for the WAL status
- Check logs of the agent:
kubectl logs -n prometheus deployment/prometheus-agent
- 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.