You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to reach the /agent/api/v1/metrics/targets endpoint, I repeatedly got curl: (7) Failed to connect to 10.1.60.144 port 12345 after 0 ms: Connection refused error messages.
When looking at the Service of the application, it doesn't look like it is listed in PORT(S):
kubectl get svc -A | grep grafana
kubeflow grafana-agent-k8s ClusterIP 10.152.183.189 <none> 3500/TCP,3600/TCP 26m
Similarly, the juju status output does not show any Ports:
grafana-agent-k8s/0* blocked idle 10.1.60.144 grafana-cloud-config: off, logging-consumer: off
This suggests that the port is not open.
Workaround
The port is just not open, so we can still reach the desired endpoint from within the unit:
Bug Description
When trying to reach the
/agent/api/v1/metrics/targets
endpoint, I repeatedly gotcurl: (7) Failed to connect to 10.1.60.144 port 12345 after 0 ms: Connection refused
error messages.When looking at the
Service
of the application, it doesn't look like it is listed inPORT(S)
:Similarly, the
juju status
output does not show anyPorts
:This suggests that the port is not open.
Workaround
The port is just not open, so we can still reach the desired endpoint from within the unit:
juju ssh grafana-agent-k8s/0 curl localhost:12345/agent/api/v1/metrics/targets
To Reproduce
juju deploy grafana-agent-k8s --channel latest/stable
curl -v <unit IP>:12345/agent/api/v1/metrics/targets
Environment
juju 3.5.1
microk8s 1.29
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: