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

agent_config metrics are not being indexed #9048

Closed
axw opened this issue Sep 6, 2022 · 2 comments · Fixed by #9052
Closed

agent_config metrics are not being indexed #9048

axw opened this issue Sep 6, 2022 · 2 comments · Fixed by #9052
Assignees
Milestone

Comments

@axw
Copy link
Member

axw commented Sep 6, 2022

APM Server version (apm-server version): 8.5.0-SNAPSHOT (main)

Description of the problem including expected versus actual behavior:

agent_config metrics are not being indexed - they are failing to be indexed due to an authorization error. This is most likely related to the refactoring I recently did around setting up model processors; it looks like the agentcfg reporter is attempting to send metrics to the pre-processing chain, which requires authorization.

Also, we don't have an system tests that verify the metrics are indexed.

Steps to reproduce:

  1. Run the TestAgentConfig system test
  2. Observe that no "agent_config" metric is ever indexed

Provide logs (if relevant):

{"log.level":"error","@timestamp":"2022-09-06T04:40:45.565Z","log.logger":"agentcfg","log.origin":{"file.name":"agentcfg/reporter.go","file.line":106},"message":"error sending applied agent configs to kibana: no Authorizer in context","service.name":"apm-server","ecs.version":"1.6.0"}

@axw axw added the bug label Sep 6, 2022
@axw axw self-assigned this Sep 6, 2022
@axw axw added the v8.5.0 label Sep 6, 2022
@axw axw added this to the 8.5 milestone Sep 6, 2022
@simitt
Copy link
Contributor

simitt commented Sep 6, 2022

We weren't using the metrics anywhere. Are they even still relevant?

@axw
Copy link
Member Author

axw commented Sep 6, 2022

@simitt the UI started using the metrics in 8.3: elastic/kibana#123109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants