reduce the frequency of polling idrac and remove some duplicates [ci skip]
This commit is contained in:
parent
6928fd29bb
commit
3bda3ab956
4 changed files with 21 additions and 11 deletions
|
|
@ -21,6 +21,14 @@ resource "kubernetes_config_map" "redfish-config" {
|
||||||
password: calvin
|
password: calvin
|
||||||
metrics:
|
metrics:
|
||||||
all: true
|
all: true
|
||||||
|
# system: true
|
||||||
|
# sensors: true
|
||||||
|
# power: true
|
||||||
|
# sel: false # Disable SEL - often slow
|
||||||
|
# storage: true # Disable storage - slowest endpoint
|
||||||
|
# memory: true
|
||||||
|
# network: false # Disable network adapters
|
||||||
|
# firmware: false # Don't need this frequently
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -83,11 +91,11 @@ resource "kubernetes_service" "idrac-redfish-exporter" {
|
||||||
labels = {
|
labels = {
|
||||||
"app" = "idrac-redfish-exporter"
|
"app" = "idrac-redfish-exporter"
|
||||||
}
|
}
|
||||||
annotations = {
|
# annotations = {
|
||||||
"prometheus.io/scrape" = "true"
|
# "prometheus.io/scrape" = "true"
|
||||||
"prometheus.io/path" = "/metrics"
|
# "prometheus.io/path" = "/metrics"
|
||||||
"prometheus.io/port" = "9090"
|
# "prometheus.io/port" = "9090"
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
spec {
|
spec {
|
||||||
|
|
|
||||||
|
|
@ -474,6 +474,8 @@ extraScrapeConfigs: |
|
||||||
- "crowdsec-service.crowdsec.svc.cluster.local:6060"
|
- "crowdsec-service.crowdsec.svc.cluster.local:6060"
|
||||||
metrics_path: '/metrics'
|
metrics_path: '/metrics'
|
||||||
- job_name: 'snmp-idrac'
|
- job_name: 'snmp-idrac'
|
||||||
|
scrape_interval: 1m
|
||||||
|
scrape_timeout: 45s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- "idrac.viktorbarzin.lan:161"
|
- "idrac.viktorbarzin.lan:161"
|
||||||
|
|
@ -492,7 +494,7 @@ extraScrapeConfigs: |
|
||||||
regex: '(.*)'
|
regex: '(.*)'
|
||||||
replacement: 'r730_idrac_$${1}'
|
replacement: 'r730_idrac_$${1}'
|
||||||
- job_name: 'redfish-idrac'
|
- job_name: 'redfish-idrac'
|
||||||
scrape_interval: 1m
|
scrape_interval: 3m
|
||||||
scrape_timeout: 45s
|
scrape_timeout: 45s
|
||||||
metrics_path: /metrics
|
metrics_path: /metrics
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|
|
||||||
|
|
@ -82,11 +82,11 @@ resource "kubernetes_service" "snmp-exporter" {
|
||||||
labels = {
|
labels = {
|
||||||
"app" = "snmp-exporter"
|
"app" = "snmp-exporter"
|
||||||
}
|
}
|
||||||
annotations = {
|
# annotations = {
|
||||||
"prometheus.io/scrape" = "true"
|
# "prometheus.io/scrape" = "true"
|
||||||
"prometheus.io/path" = "/snmp?auth=Public0&target=tcp%3A%2F%2F192.%3A161"
|
# "prometheus.io/path" = "/snmp?auth=Public0&target=tcp%3A%2F%2F192.%3A161"
|
||||||
"prometheus.io/port" = "9116"
|
# "prometheus.io/port" = "9116"
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
spec {
|
spec {
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue