Browse Source

Update docs and comments

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
pull/12254/head
Jeanette Tan 2 years ago
parent
commit
d3ad158a66
  1. 4
      config/config.go
  2. 5
      docs/configuration/configuration.md

4
config/config.go

@ -489,8 +489,8 @@ type ScrapeConfig struct {
// More than this label value length post metric-relabeling will cause the // More than this label value length post metric-relabeling will cause the
// scrape to fail. // scrape to fail.
LabelValueLengthLimit uint `yaml:"label_value_length_limit,omitempty"` LabelValueLengthLimit uint `yaml:"label_value_length_limit,omitempty"`
// More than this many buckets in a native histogram will cause the scrape to // More than this many buckets in a native histogram will cause the histogram
// fail. // to be ignored, but it will not make the whole scrape fail.
NativeHistogramBucketLimit uint `yaml:"bucket_limit,omitempty"` NativeHistogramBucketLimit uint `yaml:"bucket_limit,omitempty"`
// We cannot do proper Go type embedding below as the parser will then parse // We cannot do proper Go type embedding below as the parser will then parse

5
docs/configuration/configuration.md

@ -376,6 +376,11 @@ metric_relabel_configs:
# 0 means no limit. This is an experimental feature, this behaviour could # 0 means no limit. This is an experimental feature, this behaviour could
# change in the future. # change in the future.
[ target_limit: <int> | default = 0 ] [ target_limit: <int> | default = 0 ]
# Limit on total number of positive and negative buckets allowed in a native
# histogram. If this is exceeded, the histogram will be ignored, but this will
# not make the scrape fail. 0 means no limit.
[ sample_limit: <int> | default = 0 ]
``` ```
Where `<job_name>` must be unique across all scrape configurations. Where `<job_name>` must be unique across all scrape configurations.

Loading…
Cancel
Save