diff --git a/metrics/compose.yaml b/metrics/compose.yaml index 2af121147b..27cea568d2 100644 --- a/metrics/compose.yaml +++ b/metrics/compose.yaml @@ -10,8 +10,9 @@ services: volumes: - ./prometheus:/etc/prometheus - prom_data:/prometheus - extra_hosts: - - "processmaker.test:host-gateway" # This allows Docker to resolve your Herd domain + # This allows Docker to resolve your Herd domain + # extra_hosts: + # - "processmaker.test:host-gateway" grafana: image: grafana/grafana container_name: grafana diff --git a/metrics/prometheus/prometheus.yml b/metrics/prometheus/prometheus.yml index 77d2dc8634..786adcf9a8 100644 --- a/metrics/prometheus/prometheus.yml +++ b/metrics/prometheus/prometheus.yml @@ -12,11 +12,15 @@ scrape_configs: scheme: http static_configs: - targets: - - "host.docker.internal:80" - relabel_configs: - - source_labels: [__address__] - target_label: __param_target - - source_labels: [__param_target] - target_label: instance - - target_label: __address__ - replacement: processmaker.test + # Replace this with your local processmaker instance (add port if needed) + - processmaker.test + # This allows Docker to resolve your Herd domain + # - "host.docker.internal:80" + # This allows Docker to resolve your Herd domain + # relabel_configs: + # - source_labels: [__address__] + # target_label: __param_target + # - source_labels: [__param_target] + # target_label: instance + # - target_label: __address__ + # replacement: processmaker.test