integrations-core icon indicating copy to clipboard operation
integrations-core copied to clipboard

[ArgoCD] Openmetrics integration in Datadog times out after 10 seconds

Open ricardojdsilva87 opened this issue 2 years ago • 3 comments

Hello,

We get the following error when the datadog agent is trying to scrape the ArgoCD controller openmetrics endpoint. image

Additional environment details (Operating System, Cloud provider, etc):

Steps to reproduce the issue: Configuration on the pod using the official ArgoCD helm chart:

podAnnotations:
  ad.datadoghq.com/application-controller.checks: |
    {
      "argocd": {
        "instances": [
          {
            "app_controller_endpoint": "http://%%host%%:8082/metrics"
          }
        ]
      }
    }

We use the same configuration as described in the documentation for Datadog.

Describe the results you expected: When using versions above 2.9.6 and below 2.11.0 of ArgoCD we get the following error shown above image

I've tried to add the setting prometheus_timeout to the openmetrics configuration like described on the documentation: https://docs.datadoghq.com/integrations/guide/prometheus-host-collection/

With the same configuration all the needed metrics are sent to Datadog and with the default ArgoCD dashboard it's possible to see them. After changing the ArgoCD version between v2.9.7 and 2.11.0, the error starts to appear and there are no metrics reaching Datadog.

The Datadog agent version is v7.53.0 Also after adding the prometheus_timeout to 30 the same error appears with the message that it timed out after 10s, seeming not to have any effect. Is there something I'm missing? Also with the different versions of ArgoCD it wasn't supposed to stop sending metrics. I'll be doing some more tests in order to try and check if any other middle version might work correctly

Fyi, found this issue while investigating another one with ArgoCD itself, more information can be found here

Thanks!

UPDATE Hello, Just to add some more information. It seems that the issue happens if the parameter controller.sharding.algorithm: "round-robin" documented here is added to the ArgoCD configuration. I suppose that this different mode might generate alot more metrics than the legacy configuration and that might be causing the timeout after the 10 seconds. If there is any setting to increase this timeout, I can try it out in the configuration. Thanks

ricardojdsilva87 avatar May 20 '24 20:05 ricardojdsilva87

Hi @ricardojdsilva87 👋

We're cleaning up our backlog as part of improving our issue management process. Can you confirm whether this issue is still valid? This will help us prioritize our efforts. Thanks!

jacjtito avatar Jun 23 '26 13:06 jacjtito

This issue has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.

Thank you for your contributions!

dd-octo-sts avatar Oct 26 '26 04:10 dd-octo-sts

This issue was automatically closed because it has been stale for 30 days with no activity.

If this issue is still relevant, please reopen it or create a new issue with updated information.

Thanks!

dd-octo-sts avatar Nov 26 '26 16:11 dd-octo-sts