DataDog / integrations-core

Core integrations of the Datadog Agent
BSD 3-Clause "New" or "Revised" License
921 stars 1.39k forks source link

Database monitoring collection_interval for custom_queries is not working as expected. #18477

Open agarci40 opened 1 month ago

agarci40 commented 1 month ago

Note: If you have a feature request, you should contact support so the request can be properly tracked.

Output of the info page


  Extractors
  ==========

    Workloadmeta
    ============
      Cache size: 0
      Stale diffs discarded: 0
      Diffs dropped: 0

====================
Remote Configuration
====================

Organization enabled: True
API Key: Authorized
Last error: None

============
System Probe
============

  Status: Running
  Uptime: 1h12m15.000508977s
  Last Updated: 2024-08-30 22:14:13 UTC (1725056053000)

  USM
  ===
    Status: disabled

  NPM
  ===
    Status: Running
    Last Check: 2024-08-30 22:13:58 UTC (1725056038000)

  Event Monitor
  ================
    Status: Running

========================
Transport Proxy Warnings
========================

  No Transport Proxy Warnings

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

Steps to reproduce the issue:

  1. Set up a custom_query with a collection_interval, in my case 60.

Describe the results you received: The query gets executed every run (15s) instead of every 4.

Describe the results you expected: For the query to only execute following the specified collection_interval.

Additional information you deem important (e.g. issue happens only occasionally): Interestingly the collection_interval in the sample config does not have units specified and I am assuming it is seconds like the others.

HadhemiDD commented 6 days ago

Can you please open a support case with your config and a flare from the host? Please make sure you don't communicate these info here but rather in the support ticket thread.