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
Create an additional service to expose the metrics internally. The existing service is an internet-facing load balancer, so we don't expose the metrics port publicly.
The text was updated successfully, but these errors were encountered:
We found with @anothertobi that the
Servicemonitor
tries to scrape a non-existent port on the servicehttps://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-logging/templates/cdn-logs-collector.servicemonitor.yaml#L13
The metrics port is available on the pod
https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-logging/templates/cdn-logs-collector.statefulset.yaml#L49
Possible solution:
Change the
ServiceMonitor
manifest to useTargetPort
instead ofport
https://doc.crds.dev/github.com/prometheus-operator/kube-prometheus/monitoring.coreos.com/ServiceMonitor/[email protected]#spec-endpoints-targetPort
Create an additional service to expose the metrics internally. The existing service is an internet-facing load balancer, so we don't expose the metrics port publicly.
The text was updated successfully, but these errors were encountered: