Skip to content

Ignore 'metric not found' if there are cached results from other targets#929

Open
teqwve wants to merge 1 commit into
go-graphite:mainfrom
teqwve:fix-multi-target-missing-metrics
Open

Ignore 'metric not found' if there are cached results from other targets#929
teqwve wants to merge 1 commit into
go-graphite:mainfrom
teqwve:fix-multi-target-missing-metrics

Conversation

@teqwve
Copy link
Copy Markdown

@teqwve teqwve commented May 21, 2026

Hi!

If there is a query with multiple targets that differ only in metrics that are missing a subsequent targets were treated as invalid because carbonapi was querying only for missing metrics and getting an error from zipper.

E.g. a query with targets:

  group(presentmetric,missingmetric) | min()
  group(presentmetric,othermissingmetric) | max()

or a query with targets:

  group(presentmetric,missingmetric) | min()
  group(presentmetric,missingmetric) | max()

returns results only for the first target. This fix uses cached results to determine whether the error should be ignored. It should fix #844

…ets.

Before if there was a query with multiple targets that differ only in
metrics that are missing a subsequent targets were treated as invalid
because carbonapi was querying only for missing metrics and getting an
error from zipper.

E.g. a query:

  group(presentmetric,missingmetric) | min()
  group(presentmetric,othermissingmetric) | max()

or a query:

  group(presentmetric,missingmetric) | min()
  group(presentmetric,missingmetric) | max()

would return results only for the first target.
@teqwve teqwve force-pushed the fix-multi-target-missing-metrics branch from a670119 to dd80a87 Compare May 21, 2026 14:40
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.

[BUG] target missing in response

1 participant