telegraf deprications
This commit is contained in:
parent
838da64907
commit
7f20c94db8
2 changed files with 9 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ input_defaults = {
|
||||||
f"udp://{routeros_node.hostname}:161"
|
f"udp://{routeros_node.hostname}:161"
|
||||||
for routeros_node in repo.nodes_in_group("routeros")
|
for routeros_node in repo.nodes_in_group("routeros")
|
||||||
],
|
],
|
||||||
"agent_host_tag": "agent_host",
|
"agent_host_tag": "source",
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"community": "public",
|
"community": "public",
|
||||||
"max_repetitions": 5, # supposedly less spiky loads
|
"max_repetitions": 5, # supposedly less spiky loads
|
||||||
|
|
@ -31,7 +31,7 @@ defaults = {
|
||||||
},
|
},
|
||||||
"mapping": [
|
"mapping": [
|
||||||
{
|
{
|
||||||
"tag": "agent_host",
|
"tags": ["source"],
|
||||||
"dest": "host",
|
"dest": "host",
|
||||||
"default": "unknown",
|
"default": "unknown",
|
||||||
"value_mappings": {
|
"value_mappings": {
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,13 @@ files = {
|
||||||
'svc_systemd:telegraf.service:restart',
|
'svc_systemd:telegraf.service:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'/etc/default/telegraf': {
|
||||||
|
'content': 'TELEGRAF_OPTS="--strict-env-handling"\n',
|
||||||
|
'mode': '0644',
|
||||||
|
'triggers': {
|
||||||
|
'svc_systemd:telegraf.service:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
'/usr/local/share/telegraf/procio': {
|
'/usr/local/share/telegraf/procio': {
|
||||||
'content_type': 'download',
|
'content_type': 'download',
|
||||||
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",
|
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue