diff --git a/cluster/prod/app/telemetry/config/prometheus.yml b/cluster/prod/app/telemetry/config/prometheus.yml index e00927e..e3f7eb0 100644 --- a/cluster/prod/app/telemetry/config/prometheus.yml +++ b/cluster/prod/app/telemetry/config/prometheus.yml @@ -17,7 +17,7 @@ scrape_configs: key_file: /etc/prometheus/consul-client.key - job_name: 'smartctl-exporter' - scrape_interval: 60s + scrape_interval: 300s consul_sd_configs: - server: 'https://localhost:8501' services: diff --git a/cluster/prod/app/telemetry/deploy/telemetry-smartctl-exporter.hcl b/cluster/prod/app/telemetry/deploy/telemetry-smartctl-exporter.hcl index 52fe85d..5399e08 100644 --- a/cluster/prod/app/telemetry/deploy/telemetry-smartctl-exporter.hcl +++ b/cluster/prod/app/telemetry/deploy/telemetry-smartctl-exporter.hcl @@ -60,10 +60,10 @@ job "telemetry-smartctl-exporter" { config { image = "prometheuscommunity/smartctl-exporter:v0.13.0" args = [ - "--web.listen-address=0.0.0.0:9101" + "--web.listen-address=0.0.0.0:${NOMAD_PORT_smartctl_exporter}" ] - network_mode = "host" - # CAP_SYS_RAWIO is needed for SMART requests, while CAPS_SYS_ADMIN + ports = ["smartctl_exporter"] + # CAP_SYS_RAWIO is needed for SMART requests, while CAP_SYS_ADMIN # is needed for NVMe requests. # These capabilities need to be allowed in the Nomad client config. cap_drop = ["all"] @@ -110,8 +110,7 @@ job "telemetry-smartctl-exporter" { service { tags = [ "telemetry" ] - port = 9101 - address_mode = "driver" + port = "smartctl_exporter" name = "smartctl-exporter" check { type = "http" diff --git a/cluster/staging/app/telemetry/config/prometheus.yml b/cluster/staging/app/telemetry/config/prometheus.yml index ced52cc..271b730 100644 --- a/cluster/staging/app/telemetry/config/prometheus.yml +++ b/cluster/staging/app/telemetry/config/prometheus.yml @@ -17,7 +17,7 @@ scrape_configs: key_file: /etc/prometheus/consul-client.key - job_name: 'smartctl-exporter' - scrape_interval: 60s + scrape_interval: 300s consul_sd_configs: - server: 'https://localhost:8501' services: diff --git a/cluster/staging/app/telemetry/deploy/telemetry-smartctl-exporter.hcl b/cluster/staging/app/telemetry/deploy/telemetry-smartctl-exporter.hcl index a867017..6d30063 100644 --- a/cluster/staging/app/telemetry/deploy/telemetry-smartctl-exporter.hcl +++ b/cluster/staging/app/telemetry/deploy/telemetry-smartctl-exporter.hcl @@ -60,10 +60,10 @@ job "telemetry-smartctl-exporter" { config { image = "prometheuscommunity/smartctl-exporter:v0.13.0" args = [ - "--web.listen-address=0.0.0.0:9101" + "--web.listen-address=0.0.0.0:${NOMAD_PORT_smartctl_exporter}" ] - network_mode = "host" - # CAP_SYS_RAWIO is needed for SMART requests, while CAPS_SYS_ADMIN + ports = ["smartctl_exporter"] + # CAP_SYS_RAWIO is needed for SMART requests, while CAP_SYS_ADMIN # is needed for NVMe requests. # These capabilities need to be allowed in the Nomad client config. cap_drop = ["all"] @@ -110,8 +110,7 @@ job "telemetry-smartctl-exporter" { service { tags = [ "telemetry" ] - port = 9101 - address_mode = "driver" + port = "smartctl_exporter" name = "smartctl-exporter" check { type = "http"