-
Notifications
You must be signed in to change notification settings - Fork 148
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
Introduce agent.monitoring.metrics_period #4961
Introduce agent.monitoring.metrics_period #4961
Conversation
9d640f9
to
a017e01
Compare
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
changelog/fragments/1718818524-support-monitoring-metrics-interval.yaml
Outdated
Show resolved
Hide resolved
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.
Thanks, confirmed it works by reloading a standalone agent configuration and overriding it in a Fleet managed agent using a request like:
PUT kbn:/api/fleet/agent_policies/4d16de58-695b-42f2-a006-c9f2f51d7ccd
{
"name": "Agent policy 1",
"namespace": "default",
"overrides": {
"agent": {
"monitoring": {
"metrics_period": "5s"
}
}
}
}
Also confirmed the metrics documents are actually arriving at a 5s interval when I made the change above.
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.
Thank you very much for the prompt support
Quality Gate passedIssues Measures |
@cmacknz should we backport this to 8.14? |
As this is an enhancement and not a bug fix I would say we shouldn't. |
Yes normally this wouldn't be backported. What problem does backport to 8.14 solve for us? It is small so if it solves a big enough problem we can backport it anyway. |
solves 2 problems IMHO:
So if not a risk - I'm +1 for backporting it ASAP. |
* feat: introduce agent.monitoring.metrics_period * doc: add changelog/fragments * fix: TestDiagnosticLocalConfig unit-test * doc: reword summary in changelog fragment (cherry picked from commit 6a45256) # Conflicts: # _meta/config/common.p2.yml.tmpl # _meta/config/common.reference.p2.yml.tmpl # _meta/config/elastic-agent.docker.yml.tmpl # elastic-agent.docker.yml # elastic-agent.reference.yml # elastic-agent.yml # internal/pkg/agent/application/monitoring/v1_monitor.go # internal/pkg/agent/application/monitoring/v1_monitor_test.go
Backport: #5003 |
* Introduce agent.monitoring.metrics_period (#4961) * feat: introduce agent.monitoring.metrics_period * doc: add changelog/fragments * fix: TestDiagnosticLocalConfig unit-test * doc: reword summary in changelog fragment (cherry picked from commit 6a45256) # Conflicts: # _meta/config/common.p2.yml.tmpl # _meta/config/common.reference.p2.yml.tmpl # _meta/config/elastic-agent.docker.yml.tmpl # elastic-agent.docker.yml # elastic-agent.reference.yml # elastic-agent.yml # internal/pkg/agent/application/monitoring/v1_monitor.go # internal/pkg/agent/application/monitoring/v1_monitor_test.go * fix conflicts --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
What does this PR do?
This PR introduces
agent.monitoring.metrics_period
fieldWhy is it important?
I consider this PR important as it allows each user to control the sampling period of monitoring metrics according to them needs
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas./changelog/fragments
using the changelog tool- [ ] I have added an integration test or an E2E testDisruptive User Impact
None
How to test this PR locally
Spawn an agent with setting the config
agent.monitoring.metrics_period
Related issues