-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'tests: add test for prometheus exporter' from Kefu Chai
unlike metrics_test.cc, prometheus_test exercises the exporter server, so it tests the different query parameters supported by it. Fixes #2233 Signed-off-by: Kefu Chai <[email protected]> Closes #2237 * https://github.com/scylladb/seastar: tests: add test for prometheus exporter tests: move apps/metrics_tester to tests/unit apps/metrics_tester: keep metrics with "private" labels apps/metrics_tester: support "labels" in conf.yaml apps/metrics_tester: stop server properly apps/metrics_tester: always start exporter apps/metrics_tester: fix typo in conf-example.yaml
- Loading branch information
Showing
8 changed files
with
345 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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,30 @@ | ||
metrics: | ||
- name: hist1 | ||
type: histogram | ||
values: [1000,2000,3000] | ||
labels: | ||
private: "1" | ||
- name: gag1 | ||
type: gauge | ||
values: [5] | ||
labels: | ||
private: "1" | ||
- name: count1 | ||
type: counter | ||
labels: | ||
private: "1" | ||
values: [7] | ||
- name: counter_1 | ||
type: counter | ||
labels: | ||
private: "2" | ||
values: [1] | ||
- name: counter_1 | ||
type: counter | ||
labels: | ||
private: "3" | ||
values: [2] | ||
metric_family_config: | ||
- name: test_group_counter_1 | ||
aggregate_labels: | ||
- private |
This file contains 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
Oops, something went wrong.