add service dashboard based on span metrics - #90
Merged
greatestusername-splunk merged 1 commit intoJul 16, 2026
Conversation
| "unitPrefix": "Metric" | ||
| }, | ||
| "packageSpecifications": "", | ||
| "programText": "A = histogram('traces.span.metrics.duration').percentile(pct=90, by=['span.name']).publish(label='A')", |
Contributor
There was a problem hiding this comment.
In some of the ootb dashboards for apm we do this like
filter_ = filter('deployment.environment', '*') and filter('service.name', '*') and filter('sf_operation', '*') and filter('sf_kind', 'SERVER', 'CONSUMER') and (not filter('sf_dimensionalized', '*')) and (not filter('sf_serviceMesh', '*'))
groupby = ['deployment.environment', 'service.name', 'sf_operation', 'sf_httpMethod']
allow_missing = ['sf_httpMethod']
A = histogram('spans', filter=filter_).percentile(pct=90, by=groupby, allow_missing=allow_missing).publish(label='p90')
is traces.span.metrics.duration preferred for some use cases?
Contributor
Author
There was a problem hiding this comment.
sf_operation is not created for spans with spanKind INTERNAL. This dashboard is specifically build to get insights into the performance on INTERNAL spans. I have a draft blog ready that explains this further.
Contributor
There was a problem hiding this comment.
Oh nice! That's awesome!
greatestusername
approved these changes
Jul 15, 2026
greatestusername
left a comment
Contributor
There was a problem hiding this comment.
Would be nice to have a short README in this directory describing/linking to the span_metrics connector and describing why/when this dashboard is useful?
Helps users/search engine find your content!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add service dashboard based on span metrics, so that internal spans are visible.

This will be accompanied by a community blog.