8000 Service Graph: Change expiration counter logic by joe-elliott · Pull Request #5319 · grafana/tempo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Service Graph: Change expiration counter logic #5319

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

Merged
merged 3 commits into from
Jun 24, 2025

Conversation

joe-elliott
Copy link
Collaborator

What this PR does:
Changes what we count as an "expired" edge. Currently we use queries like the following to determine what percentage of edges are completed. However this query incorrectly counts edges that use virtual nodes, peer attributes or are root spans against the %age matched.

This PR changes the definition of "expired edge" to only include those edges that are expired and have no matching information to generate a service graph edge.

1 -
sum(
  rate(tempo_metrics_generator_processor_service_graphs_expired_edges{}[$__rate_interval])
)
/
sum(
  rate(tempo_metrics_generator_processor_service_graphs_edges{}[$__rate_interval])
)

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott merged commit 7853a76 into grafana:main Jun 24, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0