Open dgradl-fl opened 3 years ago
Received the same using version 12.0.0 and using ingress.appscode.com/monitoring-agent: 'prometheus.io/builtin'
Is this fixed in the newer version that requires an enterprise license?
@dgradl-fl, @samispurs I've hit the similar issue. I've noticed that I forgot to fill all required keys in annotations. After fill all required keys everything works. see doc https://voyagermesh.com/docs/v12.0.0/guides/ingress/monitoring/using-coreos-prometheus-operator/
Are you sure about that? I just set it up with:
ingress.appscode.com/monitoring-agent: prometheus.io/coreos-operator ingress.appscode.com/service-monitor-labels: '{"app": "voyager"}' ingress.appscode.com/service-monitor-namespace: mynamespace ingress.appscode.com/stats: "true"
And the ingress continues to work - it even adds the exporter sidecar to the pod. But if you look at the logs of operator you will see the original error I posted. And it never creates the custom resource "ServiceMonitor" that prometheus uses to add the scraping of metrics.
Not 100%
My voyager operator was down caused the issue. (spinning in restart lopp with delays and unable to proces any new request) When I fixed annotations I was not able to apply change because operator was down in that time. So I've created more replicas of operator and I've restarted whole deployment of operator just befory apply fix.
@sFrenkie , what version of operator are you using?
I was not able to apply change because operator was down in that time.
The latest version fixes issues like this by running the validator and operator as separate containers.
@tamalsaha We use version 12. Pods with haproxy have sidecar container with exporter.
Can you try with v14.0.0 ? This version uses HAProxy's built-in exporter.
When using the monitoring described here: https://voyagermesh.com/docs/v12.0.0/guides/ingress/monitoring/using-coreos-prometheus-operator/ for v12.0.0 - it crashes the operator. See attachment. From what I can tell the parser is parsing the ingress.appscode.com/service-monitor-labels into Labels, but the monitoring api agent is looking for ServiceMonitor.Labels https://github.com/voyagermesh/voyager/blob/v12.0.0/vendor/kmodules.xyz/monitoring-agent-api/agents/coreosprometheusoperator/lib.go#L87
Looks like there might be an API mismatch here.
crash.txt