Skip to content

support scalar responses #855

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 2 commits into from
Jun 30, 2025
Merged

Conversation

jranson
Copy link
Member

@jranson jranson commented Jun 30, 2025

This patch allows Trickster to support Scalar responses from a Prometheus server. While not generally used by end users, Scalar responses are used by certain health check agents (e.g., the Grafana Datasource tester); so this ensures those check can pass as expected instead of producing an unmarshaling error.

@jranson jranson requested a review from crandles June 30, 2025 03:35
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15963224942

Details

  • 56 of 65 (86.15%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 76.302%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/backends/prometheus/model/timeseries.go 55 64 85.94%
Files with Coverage Reduction New Missed Lines %
pkg/backends/prometheus/model/timeseries.go 2 93.96%
Totals Coverage Status
Change from base Build 15813222487: -0.02%
Covered Lines: 15323
Relevant Lines: 20082

💛 - Coveralls

@jranson jranson merged commit 48f761e into trickstercache:main Jun 30, 2025
7 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.

3 participants