@@ -238,31 +238,18 @@ sleep_secs = 5
238238[modules .env ]
239239SOME_ENV_VAR = " some_value"
240240
241-
242241# Configuration for how metrics should be collected and scraped
243242# OPTIONAL, skip metrics collection if missing
244243[metrics ]
245- # Host for prometheus, grafana, and cadvisor
244+ # Whether to collect metrics
245+ # OPTIONAL, DEFAULT: true
246+ enabled = true
247+ # Host to listen on for metrics
246248# OPTIONAL, DEFAULT: 127.0.0.1
247249host = " 127.0.0.1"
248- # Path to a `prometheus.yml` file to use in Prometheus. If using a custom config file, be sure to add a
249- # file discovery section as follows:
250- # ```yml
251- # file_sd_configs:
252- # - files:
253- # - /etc/prometheus/targets.json
254- # ```
255- # and use the `targets.json` file generated by `commit-boost-cli init`
256- prometheus_config = " ./provisioning/prometheus.yml"
257- # Whether to start Grafana with built-in dashboards
258- # OPTIONAL, DEFAULT: true
259- use_grafana = true
260- # Path to a folder containing a `dashboards` and `datasources` folder for Grafana.
261- # OPTIONAL
262- grafana_path = " ./provisioning/grafana"
263- # Whether to start cadvisor for system monitoring
264- # OPTIONAL, DEFAULT: true
265- use_cadvisor = true
250+ # Services will listen for Prometheus scrapes on this port, port + 1, +2, etc.
251+ # OPTIONAL, DEFAULT: 10000
252+ start_port = 10000
266253
267254# Configuration for how logs should be collected and stored
268255# OPTIONAL, info to stdout if missing
0 commit comments