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 Aerospike 5.3 #8430

Merged
merged 28 commits into from
Feb 1, 2021
Merged

Support Aerospike 5.3 #8430

merged 28 commits into from
Feb 1, 2021

Conversation

ChristineTChen
Copy link
Contributor

@ChristineTChen ChristineTChen commented Jan 22, 2021

What does this PR do?

Parse versions and ensure skipping deprecated commands gracefully.

aerospike.namespace.latency.*_over*ms metrics are now tagged by histogram bucket with generic name like aerospike.namespace.latency.read. Backwards compatibility is maintained for the old naming convention.

Mark deprecated metrics in metadata.csv

Motivation

dcs command removed in 5.0: https://www.aerospike.com/docs/reference/info/?show-removed=1#dcs
latency command removed in 5.2: https://www.aerospike.com/docs/reference/info/?show-removed=1#latency
throughput command removed in 5.1: https://www.aerospike.com/docs/reference/info/?show-removed=1#throughput

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@ChristineTChen ChristineTChen marked this pull request as ready for review January 30, 2021 00:01
@ChristineTChen ChristineTChen requested a review from a team as a code owner January 30, 2021 00:01
hithwen
hithwen previously approved these changes Feb 1, 2021
Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

🥇

aerospike/datadog_checks/aerospike/aerospike.py Outdated Show resolved Hide resolved
aerospike/datadog_checks/aerospike/aerospike.py Outdated Show resolved Hide resolved
aerospike/datadog_checks/aerospike/aerospike.py Outdated Show resolved Hide resolved
aerospike/datadog_checks/aerospike/aerospike.py Outdated Show resolved Hide resolved
aerospike/datadog_checks/aerospike/aerospike.py Outdated Show resolved Hide resolved
# Also submit old latency names like `aerospike.namespace.latency.read_over_64ms`
if bucket in [1, 8, 64]:
latency_name = metric_name + '_over_{}ms'.format(str(bucket))
self.send(NAMESPACE_LATENCY_METRIC_TYPE, latency_name, latencies[i], tags)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add this new tag?

Copy link
Contributor Author

@ChristineTChen ChristineTChen Feb 1, 2021

Choose a reason for hiding this comment

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

the legacy metrics are also tagged by the bucket:<num>

@ChristineTChen ChristineTChen merged commit 0952219 into master Feb 1, 2021
@ChristineTChen ChristineTChen deleted the cc/aerospike-5.3 branch February 1, 2021 21:26
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