Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 516a9f7b authored by Simon Delamare's avatar Simon Delamare
Browse files

[lib] Update kwollect generator with SNMP template support

parent 42fba426
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ neteq.fetch('metrics', []).each {|metric|
- name: <%= metric['name'] %>
device_id: <%= neteq_uid %>-port-<%= port_uid %>
labels: <%= labels.to_json %>
url: snmp://<%= neteq.fetch('snmp_community', 'public')%>@<%= neteq_uid %>.<%= site_uid %>.grid5000.fr/<%= metric['source']['id'].sub('%SNMP_IFACE%', "{{ #{port_name} }}") %>
url: snmp://<%= neteq.fetch('snmp_community', 'public')%>@<%= neteq_uid %>.<%= site_uid %>.grid5000.fr/<%= metric['source']['id'].sub('%SNMP_IFACE%', port_name) %>
update_every: <%= metric['period'] > 0 ? metric['period'] : metric['optional_period'] %>
<%- if metric['period'] == 0 -%>
optional: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment