Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 7.59.x] Fix tcp.current_established/tcp.connections metric types #18769

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

datadog-agent-integrations-bot[bot]
Copy link
Contributor

Backport 990cc9b from #18764.


What does this PR do?

Send tcp.current_established/tcp.connections as gauge instead of rate/count

adds tests for metric types

Motivation

https://datadoghq.atlassian.net/browse/WINA-1086
metrics added in #18294 but this case was missed

Additional Notes

no changelog b/c it's a fix for something not yet released (to be released in 7.58

this bug creates INFO logs of the form

No value returned for check metric 'system.net.tcp.connections' on host 'WIN-N52UFIFM9PJ' and tags '': Rate value is negative, discarding it (the underlying counter may have been reset)

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (7.59.x@8146155). Learn more about missing BASE report.

Additional details and impacted files
Flag Coverage Δ
network 93.51% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Kyle-Neale
Kyle-Neale previously approved these changes Oct 4, 2024
@Kyle-Neale Kyle-Neale changed the base branch from 7.59.x to release-existing-ints October 4, 2024 15:53
@Kyle-Neale Kyle-Neale changed the base branch from release-existing-ints to 7.59.x October 4, 2024 15:55
@Kyle-Neale Kyle-Neale dismissed their stale review October 4, 2024 15:55

The base branch was changed.

@Kyle-Neale Kyle-Neale merged commit c6513be into 7.59.x Oct 4, 2024
54 checks passed
@Kyle-Neale Kyle-Neale deleted the backport-18764-to-7.59.x branch October 4, 2024 15:56
HadhemiDD pushed a commit that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants