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
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue