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

[8.11] [APM] Modify has_any_service telemetry (#166925) #168895

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.11:

Questions ?

Please refer to the Backport tool documentation

# Summary
fixes elastic/observability-bi#65

## Context
Observability-bi uses the
[signal](https://docs.elastic.dev/observability-bi/observability-marker#signals)
`has_apm_services` based on the telemetry field `has_any_services` to
determine whether a cluster has documents for at least one APM service
for the given day.

## Problem

Previously we determined if the cluster has any service by checking ONLY
the officially supported agents. There might be cases where the cluster
has agents that are not on the agent's list. Leading to the wrong
result.

Modified to check if there is any document with the field `service.name`
and added `has_any_services_per_official_agent` to track the official
agent's services

### Side effects

Modifying `has_any_service` telemetry (most likely) will increase the
metrics using this field.

---------

Co-authored-by: Achyut Jhunjhunwala <[email protected]>
(cherry picked from commit c83f5db)
@kibanamachine kibanamachine enabled auto-merge (squash) October 13, 2023 21:04
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Oct 13, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @kpatticha

@kibanamachine kibanamachine merged commit 822d79e into elastic:8.11 Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:APM All issues that need APM UI Team support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants