Skip to content

Commit db135c8

Browse files
authored
chore: cleanup metrics + cli (#279)
1 parent 8499b06 commit db135c8

32 files changed

+10652
-3045
lines changed

config.example.toml

+7-20
Original file line numberDiff line numberDiff line change
@@ -238,31 +238,18 @@ sleep_secs = 5
238238
[modules.env]
239239
SOME_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
247249
host = "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

crates/cli/src/docker_cmd.rs

-127
This file was deleted.

0 commit comments

Comments
 (0)