-
Notifications
You must be signed in to change notification settings - Fork 455
[System] Add missing metric_type metadata #6395
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
[System] Add missing metric_type metadata #6395
Conversation
Signed-off-by: Tetiana Kravchenko <[email protected]>
Signed-off-by: Tetiana Kravchenko <[email protected]>
🌐 Coverage report
|
@@ -91,6 +91,7 @@ | |||
description: swap readahead pages | |||
- name: readahead.cached | |||
type: long | |||
metric_type: counter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unable to find a useful resource to validate this.
However the aggregation function that matters most on this field is the rate() function, supported by the counter. So, i do not find any risk to mark the field as counter type.
@tetianakravchenko , have you got a chance to validate this such as the kernel documentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I couldn't find as well, just found where is it set - https://github.com/elastic/beats/blob/main/metricbeat/module/linux/memory/data.go#L87-L88, and that it corresponds to swap_ra_hit
, I assumed it should be similar to the swap_ra
(swap.readahead.pages
), that is already set as counter
Also when double-checking I noticed that it is actually defined in the linux
module, not in the system
module. And this field is not defined in the list of fields in metricbeat - https://github.com/elastic/beats/blob/main/metricbeat/module/system/memory/_meta/fields.yml and not defined in example in our documentation - https://www.elastic.co/guide/en/beats/metricbeat/8.8/metricbeat-metricset-system-memory.html
@elastic/elastic-agent-data-plane could you please double-check if this field was added correctly here, or should it be deleted, since it is not present in metricbeat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed with @agithomas: I think we agreed that it should be safe to keep it as counter
discussion regarding if this fields should be removed or not is out of the scope of this PR and there should be created another issue for that. @elastic/elastic-agent-data-plane wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -91,6 +91,7 @@ | |||
description: swap readahead pages | |||
- name: readahead.cached | |||
type: long | |||
metric_type: counter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Package system - 1.31.1 containing this change is available at https://epr.elastic.co/search?package=system |
* add missing metric_type metadata Signed-off-by: Tetiana Kravchenko <[email protected]> * fix the PR link in changelog Signed-off-by: Tetiana Kravchenko <[email protected]> --------- Signed-off-by: Tetiana Kravchenko <[email protected]>
What does this PR do?
Cpu and Memory data_streams already contain the
metric_type
, only those 2 fields were missing for some reason.In all system package are missing
metric_type
for those 2 fields and forprocess.cgroup
metrics - it will be a part for a different PR.Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots