prometheus/cmd/promtool/testdata
Gregor Zeitlinger f01718262a
Unit tests for native histograms (#12668)
promql: Extend testing framework to support native histograms

This includes both the internal testing framework as well as the rules unit test feature of promtool.

This also adds a bunch of basic tests. Many of the code level tests can now be converted to tests within the framework, and more tests can be added easily.

---------

Signed-off-by: Harold Dost <h.dost@criteo.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Stephen Lang <stephen.lang@grafana.com>
Co-authored-by: Harold Dost <h.dost@criteo.com>
Co-authored-by: Stephen Lang <stephen.lang@grafana.com>
Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
2023-08-25 23:35:42 +02:00
..
at-modifier-test.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
at-modifier.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
authorization_credentials_file.bad.yml promtool: Fix credentials file check (#9883) 2021-11-30 15:02:07 +11:00
authorization_credentials_file.good.yml promtool: Fix credentials file check (#9883) 2021-11-30 15:02:07 +11:00
bad-input-series.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-promql.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
bad-rules-error-test.yml Fix misspelled word in comment (#8348) 2021-01-07 10:01:08 +00:00
bad-rules-error.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-rules-syntax-test.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-rules-syntax.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-sd-file-extension.nonexistant Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
bad-sd-file-format.yml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
config_with_rule_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
config_with_service_discovery_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
config_with_tls_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
failing.yml promtool: Add more negative alert tests 2021-02-15 17:00:49 +00:00
good-sd-file.json Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
good-sd-file.yaml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
good-sd-file.yml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
long-period.yml Disable time based retention in tests (#8818) 2022-01-02 23:46:03 +01:00
metrics-test.prom Add '--weight' flag to 'promtool check metrics' command (#10045) 2022-01-07 16:58:28 -05:00
negative-offset-test.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
negative-offset.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
prometheus-config.bad.yml Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02:00
prometheus-config.good.yml Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02:00
prometheus-config.lint.yml Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02:00
prometheus-rules.lint.yml Fix promtool check config not erroring properly on failures (#10952) 2022-07-01 14:38:49 +02:00
rules.yml Fix subqueries with default resolution in promql unit tests 2021-03-07 09:20:04 +01:00
rules_duplicates.yml promtool: Add testcase for detecting duplicates 2021-09-06 23:10:26 +08:00
rules_large.yml promtool: Add simple benchmark checkDuplicates benchmark 2021-09-06 23:10:26 +08:00
unittest.yml Unit tests for native histograms (#12668) 2023-08-25 23:35:42 +02:00
url_in_alert_targetgroup_with_relabel_config.bad.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_alert_targetgroup_with_relabel_config.good.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_scrape_targetgroup_with_relabel_config.bad.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_scrape_targetgroup_with_relabel_config.good.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00