Skip to content

Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework#13916

Merged
beorn7 merged 3 commits intoprometheus:mainfrom
NeerajGartia21:promql-test-framework
Apr 11, 2024
Merged

Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework#13916
beorn7 merged 3 commits intoprometheus:mainfrom
NeerajGartia21:promql-test-framework

Conversation

@NeerajGartia21
Copy link
Copy Markdown
Contributor

Currently Promql Testing Framework doesn't support Inf and NaN as numbers in histogram description such as sum and count. Descriptions like- sum: NaN and count: Inf results in error and this PR fixes this issue.

Copy link
Copy Markdown
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much.

I'm not an expert when it comes to the lexer, but I assume this is the way to go.

Note that generally, we try to use normal English syntax in comments. I will commit my nits directly, so no need for you to update this PR.

beorn7 added 2 commits April 11, 2024 12:52
Signed-off-by: Björn Rabenstein <[email protected]>
Signed-off-by: Björn Rabenstein <[email protected]>
@beorn7 beorn7 merged commit 612de02 into prometheus:main Apr 11, 2024
@NeerajGartia21 NeerajGartia21 deleted the promql-test-framework branch April 11, 2024 12:01
@NeerajGartia21
Copy link
Copy Markdown
Contributor Author

Thanks @beorn7 for merging it and I'll follow general english syntax from now on.

bboreham pushed a commit to bboreham/prometheus that referenced this pull request Jun 20, 2024
* upstream/main: (32 commits)
  Avoid creating new slices for labels values on postings for matchers (prometheus#13958)
  Improve the metric description
  Add a changelog entry
  Change variable name to `restoreStartTime` from `now` and introduce a log line to record total time
  promtool: Fix panic on extended tsdb analyze (prometheus#13976)
  Rule Manager: Add `rule_group_last_restore_duration_seconds` to measure restore time per rule group
  build(deps): bump github.com/aws/aws-sdk-go from 1.51.24 to 1.51.25
  build(deps): bump github.com/hetznercloud/hcloud-go/v2
  Downgrade github.com/ovh/go-ovh back to v1.4.3
  Downgrade k8s apis back to v0.29.3
  Update Go dependencies before 2.52
  build(deps): bump github.com/prometheus/common
  tsdb/wlog: add test for metrics unregistering
  discovery(k8s): add metadata labels to endpointslices
  parser: remake generated_parser output (prometheus#13923)
  Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework (prometheus#13916)
  tsdb/wlog: unregister metrics on WL close
  golangci-lint: enable whitespace linter (prometheus#13905)
  Cut release 2.51.2
  List Prometheus v3 coordinators in MAINTAINERS.md
  ...

Signed-off-by: gotjosh <[email protected]>
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