- Port Forward to the Grafana Agent
kubectl -n grafana-agent-operator port-forward grafana-agent-0 8080:8080
- Curl for the Targets
curl localhost:8080/agent/api/v1/metrics/targets | jq | tee targets-pretty.json
kubectl -n grafana-agent-operator port-forward grafana-agent-0 8080:8080
curl localhost:8080/agent/api/v1/metrics/targets | jq | tee targets-pretty.json