-
Notifications
You must be signed in to change notification settings - Fork 387
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
3276 metrics-elastic_agent mapping system.process.cpu.total.time.ms as a date #3284
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
🌐 Coverage report
|
packages/elastic_agent/changelog.yml
Outdated
link: | | ||
https://github.com/elastic/integrations/pull/3284 |
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.
This format puts a newline at the end of the URL.
{
"version": "1.3.2",
"changes": [
{
"description": "Fix some CPU elastic_agent_metrics mapping",
"type": "bugfix",
"link": "https://github.com/elastic/integrations/pull/3284\n"
}
]
}
link: | | |
https://github.com/elastic/integrations/pull/3284 | |
link: https://github.com/elastic/integrations/pull/3284 |
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.
good catch, yaml love..
unit: nanos | ||
description: CPU time consumed by tasks in user (kernel) mode. | ||
- name: percpu | ||
type: object | ||
type: object # shouldn't it be long and nano? |
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 think this is correct. IIRC it produces counters per CPU like
"percpu": {
"1": 652220788827,
"2": 655150057935,
"3": 647406003603,
"4": 650117200711
}
So these are currently relying on default dynamic mappings which will make them long
. Once we support dynamic mappings in the package-spec for fields this can be clarified by stating that percpu.*
is a long.
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.
Change LGTM but see suggestion for the changelog from @andrewkroh . Most important part of this PR is the change from date to long, lets get it in an release it and have follow up discussions on the counter part.
packages/elastic_agent/changelog.yml
Outdated
@@ -1,4 +1,10 @@ | |||
# newer versions go on top | |||
- version: "1.3.2" | |||
changes: | |||
- description: Fix some CPU elastic_agent_metrics mapping |
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.
- description: Fix some CPU elastic_agent_metrics mapping | |
- description: Fix some CPU elastic_agent_metrics mapping from date to long |
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 would merge the changes from @ruflin and @andrewkroh but everything else seems fine.
packages/elastic_agent/changelog.yml
Outdated
link: | | ||
https://github.com/elastic/integrations/pull/3284 |
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.
good catch, yaml love..
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, but can you please remove the commentary questions before merging.
unit: nanos | ||
description: | | ||
Total CPU time in nanoseconds consumed by all tasks in the cgroup. | ||
- name: stats.user.ns | ||
type: long | ||
metric_type: counter | ||
metric_type: counter # is it correct? ns as a 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.
is it correct? ns as a counter?
The OS accumulates the total amount of time so I think these are all correct as counters.
What does this PR do?
It changes some of the CPU metrics mappings for the Elsatic Agent. They were
date
, when should belong
.Checklist
changelog.yml
file.Related issues