telegraf deprications

This commit is contained in:
CroneKorkN 2026-03-09 12:29:24 +01:00
parent 838da64907
commit 7f20c94db8
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 9 additions and 2 deletions

View file

@ -3,7 +3,7 @@ input_defaults = {
f"udp://{routeros_node.hostname}:161"
for routeros_node in repo.nodes_in_group("routeros")
],
"agent_host_tag": "agent_host",
"agent_host_tag": "source",
"version": 2,
"community": "public",
"max_repetitions": 5, # supposedly less spiky loads
@ -31,7 +31,7 @@ defaults = {
},
"mapping": [
{
"tag": "agent_host",
"tags": ["source"],
"dest": "host",
"default": "unknown",
"value_mappings": {

View file

@ -42,6 +42,13 @@ files = {
'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': {
'content_type': 'download',
'source': f"https://dl.sublimity.de/telegraf-procio/telegraf-procio-{node.metadata.get('system/architecture')}-latest",