canonical / charmed-kubeflow-chisme

Shared Utilities used across Charmed Kubeflow
Apache License 2.0
1 stars 4 forks source link

Cos abstraction should use Grafana agent API to verify metrics targets #109

Closed rgildein closed 2 weeks ago

rgildein commented 4 weeks ago

Context

Right now, the cos abstraction is using curl (from the grafana-agent pod) for targets to verify they are working. We should instead of that use the API provided by Grafana agent and check if target is defined in /agent/api/v1/targets.

e.g. instead of running curl -m 5 -sS <app-name>.<namespace>.svc:5000/metrics, we should use curl -m 5 -sS localhost:12345/agent/api/v1/targets and verify tar

What needs to get done

  1. Check what information we could get from API
  2. Remove curl for getting metrics and use /agent/api/v1/targets instead.
  3. Add any additional checks.

Definition of Done

  1. Metrics targets are verified via Grafana agent API.
syncronize-issues-to-jira[bot] commented 4 weeks ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5909.

This message was autogenerated