cw-infra-apps/grafana/charts/feature-integrations/docs/integrations/grafana.md
2025-05-28 10:01:42 +03:00

2.7 KiB

grafana

Values

Discovery Settings

Key Type Default Description
fieldSelectors list [] Discover Grafana instances based on field selectors.
labelSelectors object {"app.kubernetes.io/name":"grafana"} Discover Grafana instances based on label selectors.
metrics.portName string "grafana" Name of the port to scrape metrics from.
namespaces list [] The namespaces to look for Grafana instances in. Will automatically look for Grafana instances in all namespaces unless specified here

General Settings

Key Type Default Description
jobLabel string "integrations/grafana" The value of the job label for scraped metrics and logs
name string "" Name for this Grafana instance.

Logs Settings

Key Type Default Description
logs.enabled bool true Whether to enable special processing of Grafana pod logs.
logs.tuning.dropLogLevels list ["debug"] The log levels to drop. Will automatically keep all log levels unless specified here.
logs.tuning.excludeLines list [] Line patterns (valid RE2 regular expression)to exclude from the logs.
logs.tuning.scrubTimestamp bool true Whether the timestamp should be scrubbed from the log line
logs.tuning.structuredMetadata object {} The structured metadata mappings to set. To not set any structured metadata, set this to an empty object (e.g. {})
logs.tuning.timestampFormat string "RFC3339Nano" The timestamp format to use for the log line, if not set the default timestamp which is the collection will be used for the log line

Metrics Settings

Key Type Default Description
metrics.enabled bool true Whether to enable metrics collection from Grafana.

Metric Processing Settings

Key Type Default Description
metrics.maxCacheSize string 100000 Sets the max_cache_size for prometheus.relabel component. This should be at least 2x-5x your largest scrape target or samples appended rate. (docs) Overrides global.maxCacheSize
metrics.tuning.excludeMetrics list [] Metrics to drop. Can use regular expressions.
metrics.tuning.includeMetrics list [] Metrics to keep. Can use regular expressions.

Scrape Settings

Key Type Default Description
metrics.scrapeInterval string 60s How frequently to scrape metrics from Grafana.