--- # -- Name for this MySQL instance. # @section -- General Settings name: "" # -- The value of the job label for scraped metrics and logs # @section -- General Settings jobLabel: integration/mysql # Settings for metrics collection metrics: # -- Whether to enable metrics collection from MySQL Exporter. # @section -- Metrics Settings enabled: true # -- How frequently to scrape metrics from MySQL Exporter. # @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 MySQL pod logs. # @section -- Logs Settings enabled: true # -- The namespaces to look for MySQL instances in. # Will automatically look for MySQL instances in all namespaces unless specified here # @section -- Discovery Settings namespaces: [] # -- Discover MySQL instances based on label selectors. At least one is required. # @section -- Discovery Settings labelSelectors: {} # Settings for the Alloy embedded MySQL Exporter exporter: # -- The data source string to use for the MySQL Exporter. # @section -- Exporter Settings dataSourceName: "" # -- The data source to use for the MySQL Exporter. # @section -- Exporter Settings dataSource: # -- The MySQL host to connect to. # @section -- Exporter Settings host: "" # -- The MySQL port to connect to. # @section -- Exporter Settings port: 3306 auth: # -- The username to use for the MySQL connection. # @section -- Exporter Settings username: "" # -- The key for storing the username in the secret. # @section -- Exporter Settings usernameKey: "username" # -- Raw config for accessing the username. # @section -- Exporter Settings usernameFrom: "" # -- The password to use for the MySQL connection. # @section -- Exporter Settings password: "" # -- The key for storing the password in the secret. # @section -- Exporter Settings passwordKey: "password" # -- Raw config for accessing the password. # @section -- Exporter Settings passwordFrom: "" # -- The list of collectors to enable for the MySQL Exporter ([Documentation](https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.mysql/#supported-collectors)). # @section -- Exporter Settings collectors: - heartbeat - mysql.user secret: # -- (bool) Whether to create a secret to store credentials for this MySQL integration instance. # @default -- `true` # @section -- Secret create: # -- If true, skip secret creation and embed the credentials directly into the configuration. # @section -- Secret embed: false # -- The name of the secret to create. # @section -- Secret name: "" # -- The namespace for the secret. # @section -- Secret namespace: ""