reduce the frequency of polling idrac and remove some duplicates [ci skip]

This commit is contained in:
Viktor Barzin 2026-01-24 18:47:15 +00:00
parent 5e4623ea18
commit 10092ec285
3 changed files with 21 additions and 11 deletions

View file

@ -21,6 +21,14 @@ resource "kubernetes_config_map" "redfish-config" {
password: calvin
metrics:
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
}
}
@ -83,11 +91,11 @@ resource "kubernetes_service" "idrac-redfish-exporter" {
labels = {
"app" = "idrac-redfish-exporter"
}
annotations = {
"prometheus.io/scrape" = "true"
"prometheus.io/path" = "/metrics"
"prometheus.io/port" = "9090"
}
# annotations = {
# "prometheus.io/scrape" = "true"
# "prometheus.io/path" = "/metrics"
# "prometheus.io/port" = "9090"
# }
}
spec {

View file

@ -474,6 +474,8 @@ extraScrapeConfigs: |
- "crowdsec-service.crowdsec.svc.cluster.local:6060"
metrics_path: '/metrics'
- job_name: 'snmp-idrac'
scrape_interval: 1m
scrape_timeout: 45s
static_configs:
- targets:
- "idrac.viktorbarzin.lan:161"
@ -492,7 +494,7 @@ extraScrapeConfigs: |
regex: '(.*)'
replacement: 'r730_idrac_$${1}'
- job_name: 'redfish-idrac'
scrape_interval: 1m
scrape_interval: 3m
scrape_timeout: 45s
metrics_path: /metrics
static_configs:

View file

@ -82,11 +82,11 @@ resource "kubernetes_service" "snmp-exporter" {
labels = {
"app" = "snmp-exporter"
}
annotations = {
"prometheus.io/scrape" = "true"
"prometheus.io/path" = "/snmp?auth=Public0&target=tcp%3A%2F%2F192.%3A161"
"prometheus.io/port" = "9116"
}
# annotations = {
# "prometheus.io/scrape" = "true"
# "prometheus.io/path" = "/snmp?auth=Public0&target=tcp%3A%2F%2F192.%3A161"
# "prometheus.io/port" = "9116"
# }
}
spec {