diff options
author | Christopher Baines <mail@cbaines.net> | 2024-03-22 10:03:27 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-03-22 10:03:27 +0000 |
commit | d0bca34214fcc88edb1292c705b07d363e17b028 (patch) | |
tree | 1728aaa145e666bba0f55c9cc4197e2cf3ca4237 | |
parent | 4aaf902eb45b3a4c1003f854bda56c516fdf4f5b (diff) | |
download | prometheus-d0bca34214fcc88edb1292c705b07d363e17b028.tar prometheus-d0bca34214fcc88edb1292c705b07d363e17b028.tar.gz |
Remove reference from metric to the registry
As this is unused, and will allow registering a metric with multiple
registries.
-rw-r--r-- | prometheus.scm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/prometheus.scm b/prometheus.scm index 447ba08..5c45c8e 100644 --- a/prometheus.scm +++ b/prometheus.scm @@ -67,13 +67,12 @@ metrics relate to." namespace)) (define-record-type <metric> - (make-metric type name values registry docstring labels label-preset-values + (make-metric type name values docstring labels label-preset-values mutex) metric? (type metric-type) (name metric-name) (values metric-values) - (registry metric-registry) (docstring metric-docstring) (labels metric-labels) (label-preset-values metric-label-preset-values) @@ -120,7 +119,6 @@ list of label names to be permitted for this metric and (make-metric 'counter name (make-hash-table) - registry docstring labels label-preset-values @@ -149,7 +147,6 @@ list of label names to be permitted for this metric and (make-metric 'gauge name (make-hash-table) - registry docstring (map canonicalise-label labels) (canonicalise-label-values label-preset-values) @@ -241,7 +238,6 @@ list of label names to be permitted for this metric and (make-metric (make-histogram-metric-type buckets) name (make-hash-table) - registry docstring labels label-preset-values |