--- # -- Name for this Grafana instance. # @section -- General Settings name: "" # -- The value of the job label for scraped metrics and logs # @section -- General Settings jobLabel: integrations/grafana # -- The namespaces to look for Grafana instances in. # Will automatically look for Grafana instances in all namespaces unless specified here # @section -- Discovery Settings namespaces: [] # -- Discover Grafana instances based on field selectors. # @section -- Discovery Settings fieldSelectors: [] # -- Discover Grafana instances based on label selectors. # @section -- Discovery Settings labelSelectors: app.kubernetes.io/name: grafana # Settings for metrics collection metrics: # -- Whether to enable metrics collection from Grafana. # @section -- Metrics Settings enabled: true # -- Name of the port to scrape metrics from. # @section -- Discovery Settings portName: grafana # -- How frequently to scrape metrics from Grafana. # @default -- `60s` # @section -- Scrape Settings scrapeInterval: # -- 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](https://grafana.com/docs/alloy/latest/reference/components/prometheus.relabel/#arguments)) # Overrides global.maxCacheSize # @default -- `100000` # @section -- Metric Processing Settings maxCacheSize: # Adjustments to the scraped metrics to filter the amount of data sent to storage. tuning: # -- Metrics to keep. Can use regular expressions. # @section -- Metric Processing Settings includeMetrics: [] # -- Metrics to drop. Can use regular expressions. # @section -- Metric Processing Settings excludeMetrics: [] # Settings for log gathering using the Pod Logs feature logs: # -- Whether to enable special processing of Grafana pod logs. # @section -- Logs Settings enabled: true # Adjustments to the scraped logs to filter the amount of data sent to storage. tuning: # -- The structured metadata mappings to set. # To not set any structured metadata, set this to an empty object (e.g. `{}`) # @section -- Logs Settings structuredMetadata: {} # -- 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 # @section -- Logs Settings timestampFormat: RFC3339Nano # -- Whether the timestamp should be scrubbed from the log line # @section -- Logs Settings scrubTimestamp: true # -- The log levels to drop. # Will automatically keep all log levels unless specified here. # @section -- Logs Settings dropLogLevels: - debug # -- Line patterns (valid RE2 regular expression)to exclude from the logs. # @section -- Logs Settings excludeLines: []