department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

Exclude host, os_check_timestamp, security-group, and upper_... #81226

Open platform-support-slack-integration[bot] opened 6 months ago

platform-support-slack-integration[bot] commented 6 months ago

Submitted By: steve.albers Topic: Datadog Team: Tier 1 Suppport

Exclude host, os_check_timestamp, security-group, and upper_bound tags from indexing on openresty.nginx_http_request_duration_seconds.count (I will add details in ticket)

platform-support-slack-integration[bot] commented 6 months ago

Slack Thread Link: https://dsva.slack.com/archives/CBU0KDSB1/p1713794284643019

va-albers commented 6 months ago

We need to reduce our custom metrics costs on Datadog. Our #1 high indexed metric is openresty.nginx_http_request_duration_seconds.count - we can reduce our metric cost by reducing the number of indexed tags on this metric.

va-albers commented 6 months ago

To determine this list I pulled the list of all dashboards and monitors that use this custom metric:

Dashboards

None of these use the listed tag elements for queries.
If we make this change and find that it impacts a query that we were not aware of, or in the future we want to index one of these tags, we can choose to re-add it (it will start indexing from the point it was re-added).