Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
43 lines (42 loc) · 3.92 KB
/
Copy pathclippy.toml
File metadata and controls
43 lines (42 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
too-many-arguments-threshold = 20
large-error-threshold = 1024
# Every metric is declared in the catalog in golem-common/src/metrics/catalog.rs, and
# `catalog::register_collector` is the only function that may register a metric: it refuses a
# family that the catalog does not declare. A metric registered on first use appears in a scrape
# only after a workload touches it, so only a static rule proves that no metric bypasses the
# catalog.
disallowed-methods = [
{ path = "prometheus::Registry::register", reason = "register through golem_common::metrics::catalog" },
{ path = "prometheus::register", reason = "register through golem_common::metrics::catalog" },
]
disallowed-macros = [
{ path = "prometheus::register_counter", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_counter_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_counter", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_counter_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_counter_vec", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_counter_vec_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_counter_vec", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_counter_vec_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_gauge", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_gauge_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_gauge", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_gauge_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_gauge_vec", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_gauge_vec_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_gauge_vec", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_int_gauge_vec_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_histogram", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_histogram_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_histogram_vec", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "prometheus::register_histogram_vec_with_registry", reason = "declare the metric in golem_common::metrics::catalog" },
# The metrics crate writes through the process-global recorder that exports the Tokio runtime
# metrics, which bypasses the catalog.
{ path = "metrics::counter", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::gauge", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::histogram", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::describe", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::describe_counter", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::describe_gauge", reason = "declare the metric in golem_common::metrics::catalog" },
{ path = "metrics::describe_histogram", reason = "declare the metric in golem_common::metrics::catalog" },
]