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

Support flush_first_value flag for monotonic counts #7901

Merged
merged 1 commit into from
Oct 31, 2020
Merged

Support flush_first_value flag for monotonic counts #7901

merged 1 commit into from
Oct 31, 2020

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Oct 30, 2020

Motivation

DataDog/datadog-agent#6663

Additional Notes

The next PR will apply it to the Open Metrics base class

olivielpeau
olivielpeau previously approved these changes Oct 30, 2020
@codecov
Copy link

codecov bot commented Oct 30, 2020

Codecov Report

Merging #7901 into master will decrease coverage by 0.15%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
...dog_checks_base/datadog_checks/base/checks/base.py 85.07% <100.00%> (+0.26%) ⬆️
...hecks_base/datadog_checks/base/stubs/aggregator.py 66.40% <100.00%> (ø)
disk/tests/common.py 64.28% <0.00%> (-35.72%) ⬇️
disk/tests/conftest.py 85.71% <0.00%> (-11.43%) ⬇️
azure_iot_edge/tests/conftest.py 50.00% <0.00%> (-4.77%) ⬇️
disk/tests/test_filter.py 95.49% <0.00%> (-4.51%) ⬇️
disk/datadog_checks/disk/disk.py 83.65% <0.00%> (-2.67%) ⬇️
gitlab_runner/tests/test_unit.py
gitlab_runner/tests/conftest.py
...og_checks/cassandra_nodetool/cassandra_nodetool.py
... and 81 more

@@ -494,9 +494,17 @@ def monotonic_count(self, name, value, tags=None, hostname=None, device_name=Non
- **device_name** (_str_) - **deprecated** add a tag in the form `device:<device_name>` to the `tags`
list instead.
- **raw** (_bool_) - whether to ignore any defined namespace prefix
- **flush_first_value** (_bool_) - whether to sample the first value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If flush_first_value is set to True, does that mean you don't sample the first value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No the opposite

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.

3 participants