Skip to content

Instantly share code, notes, and snippets.

@drGrove
Last active May 8, 2023 17:46
Show Gist options
  • Save drGrove/1b9b2e7eb019b0d3d91bb45d1fa4e89e to your computer and use it in GitHub Desktop.
Save drGrove/1b9b2e7eb019b0d3d91bb45d1fa4e89e to your computer and use it in GitHub Desktop.
Checking Grafana Agent Targets
  1. Port Forward to the Grafana Agent
kubectl -n grafana-agent-operator port-forward grafana-agent-0 8080:8080
  1. Curl for the Targets
curl localhost:8080/agent/api/v1/metrics/targets | jq | tee targets-pretty.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment