Repository navigation
openmetrics: add programmatic OpenMetrics 1.0 and 2.0 compliance test suite #274
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
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d7f68e8
openmetrics: add programmatic compliance test framework and protocol/…
bwplotka 1c3e8ea
openmetrics: add metadata, escaping, sample, histogram, and exemplar …
bwplotka a62fdff
openmetrics,ci: wire openmetrics compliance suite into CI and update …
bwplotka 29b0160
Address review comment: update NewHandlerTarget and RunTests snippet …
bwplotka c8ee335
Address review comment: update binaryTarget example in README
bwplotka f2f6e8c
Address review comment: align canonical metric descriptions in README…
bwplotka 7f89132
Address review comment: enforce requested version and escaping in bui…
bwplotka c6a84be
Address review comment: support quoted UTF-8 metric names in descript…
bwplotka 55c2737
Address review comment: verify explicit # TYPE lines and check ParseE…
bwplotka 20563a7
Address review comment: validate standalone # EOF line in ends_with_eof
bwplotka 369ca9f
Address review comment: check res.Body for separate _created lines in…
bwplotka 0a712e6
Address review comment: support multi-series summaries in summary_wir…
bwplotka c25044f
Address review comment: move st@ wire check to histogram_start_timest…
bwplotka f1506ca
Address review comment: separate SHOULD exemplar truncation check and…
bwplotka 01ce33d
Address review comment: match only known OpenMetrics sample suffixes …
bwplotka 573d011
all: bump client_golang and common for OpenMetrics 2.0 support
bwplotka 92e38f2
openmetrics: adopt root compliance module, shared helpers, and Makefi…
bwplotka 2ca2c54
target: update DefaultPrometheusGitRef to latest prometheus#20098 commit
bwplotka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| bin/ | ||
| results.json | ||
| index.preloaded.html |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
| SUITE_TITLE := OpenMetrics — Test Matrix | ||
|
|
||
| PROMETHEUS_OPENMETRICS_COMPLIANCE_TEST_RE ?= "" | ||
| PROMETHEUS_OPENMETRICS_COMPLIANCE_SKIP_TEST_RE ?= "" | ||
| RUN_TEST = go test -run $(PROMETHEUS_OPENMETRICS_COMPLIANCE_TEST_RE) -skip $(PROMETHEUS_OPENMETRICS_COMPLIANCE_SKIP_TEST_RE) | ||
|
|
||
| include $(ROOT_DIR)../Makefile.base | ||
|
|
||
| .PHONY: test | ||
| test: ## Run OpenMetrics compliance tests suitable for humans and CI. | ||
| @$(RUN_TEST) . -v -timeout=$(TIMEOUT) | ||
|
|
||
| .PHONY: test-web | ||
| test-web: ## Run OpenMetrics compliance tests with a HTML results view. | ||
| @$(RUN_TEST) . -json | tee "$(RESULT_FILE)" | ||
| @$(MAKE) results-web |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably can use the base makefile now!