telemetry: avoid network mode host, and poll less often
This commit is contained in:
parent
451068d716
commit
bb8c9db2ed
4 changed files with 10 additions and 12 deletions
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue