Skip to content

fix(prometheus.echo): Return zero for SeriesRef#5622

Merged
kgeckhart merged 1 commit intomainfrom
kgeckhart/prometheus-echo-ref-passthrough
Feb 23, 2026
Merged

fix(prometheus.echo): Return zero for SeriesRef#5622
kgeckhart merged 1 commit intomainfrom
kgeckhart/prometheus-echo-ref-passthrough

Conversation

@kgeckhart
Copy link
Contributor

Brief description of Pull Request

Make sure prometheus.echo always returns zero for SeriesRefs. The current implementation will return an non-zero unstable SeriesRef which will interfere with the implementation of #5062. This component shouldn't be returning a SeriesRef as it's not creating or managing one and when it's the only component in use in a pipeline this will prevent unnecessary overhead to manage these unstable refs in fanout + prometheus.scrape.

Issue(s) fixed by this Pull Request

Related to #5062

PR Checklist

  • Tests updated

@kgeckhart kgeckhart requested a review from a team as a code owner February 23, 2026 17:21
@kgeckhart kgeckhart merged commit 96e2c84 into main Feb 23, 2026
45 of 46 checks passed
@kgeckhart kgeckhart deleted the kgeckhart/prometheus-echo-ref-passthrough branch February 23, 2026 19:27
@grafana-alloybot grafana-alloybot bot mentioned this pull request Feb 23, 2026
jharvey10 pushed a commit that referenced this pull request Feb 26, 2026
### Brief description of Pull Request

Make sure prometheus.echo always returns zero for SeriesRefs. The
current implementation will return an non-zero unstable SeriesRef which
will interfere with the implementation of
#5062. This component shouldn't
be returning a SeriesRef as it's not creating or managing one and when
it's the only component in use in a pipeline this will prevent
unnecessary overhead to manage these unstable refs in fanout +
prometheus.scrape.

### Issue(s) fixed by this Pull Request

Related to #5062

### PR Checklist

- [x] Tests updated
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