Skip to content

Commit

Permalink
fix(snmp-exporter): back to serviceMonitor per module
Browse files Browse the repository at this point in the history
Apparently helm chart renders the list as a single string, e.g. `module: ["if_mib fortinet fortigate"]`
  • Loading branch information
JJGadgets authored Dec 21, 2024
1 parent a0a9795 commit d3559ee
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions kube/deploy/core/monitoring/snmp-exporter/app/hr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d3559ee

Please sign in to comment.