From d3559eedab87a5fd5668c475b3cc70fb257ce5eb Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 21 Dec 2024 14:51:30 +0800 Subject: [PATCH] fix(snmp-exporter): back to serviceMonitor per module Apparently helm chart renders the list as a single string, e.g. `module: ["if_mib fortinet fortigate"]` --- .../core/monitoring/snmp-exporter/app/hr.yaml | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/kube/deploy/core/monitoring/snmp-exporter/app/hr.yaml b/kube/deploy/core/monitoring/snmp-exporter/app/hr.yaml index 14001cb153..45407d7f0e 100644 --- a/kube/deploy/core/monitoring/snmp-exporter/app/hr.yaml +++ b/kube/deploy/core/monitoring/snmp-exporter/app/hr.yaml @@ -30,26 +30,26 @@ spec: interval: 1m scrapeTimeout: 50s params: - - name: fortigate - module: ["if_mib", "ip_mib", "fortinet", "fnFortiGateMib"] - target: "${IP_ROUTER_VLAN_K8S}" - auth: ["public_v2"] - #- name: fortigate-if-mib - # module: ["if_mib"] - # target: "${IP_ROUTER_VLAN_K8S}" - # auth: ["public_v2"] - #- name: fortigate-ip-mib - # module: ["ip_mib"] - # target: "${IP_ROUTER_VLAN_K8S}" - # auth: ["public_v2"] - #- name: fortigate-fortinet - # module: ["fortinet"] - # target: "${IP_ROUTER_VLAN_K8S}" - # auth: ["public_v2"] - #- name: fortigate-fnFortiGateMib - # module: ["fnFortiGateMib"] + #- name: fortigate + # module: ["if_mib", "ip_mib", "fortinet", "fnFortiGateMib"] # target: "${IP_ROUTER_VLAN_K8S}" # auth: ["public_v2"] + - name: fortigate-if-mib + module: ["if_mib"] + target: "${IP_ROUTER_VLAN_K8S}" + auth: ["public_v2"] + - name: fortigate-ip-mib + module: ["ip_mib"] + target: "${IP_ROUTER_VLAN_K8S}" + auth: ["public_v2"] + - name: fortigate-fortinet + module: ["fortinet"] + target: "${IP_ROUTER_VLAN_K8S}" + auth: ["public_v2"] + - name: fortigate-fnfortigatemib + module: ["fnFortiGateMib"] + target: "${IP_ROUTER_VLAN_K8S}" + auth: ["public_v2"] relabelings: - { sourceLabels: ["__param_target"], targetLabel: instance } selfMonitor: