Tryng to run telegraf --config telegraf.conf
but I am getting the error mentioned.
My config file:
[Agent]
interval = "5s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["<Hidden>"]
token = "<Removed>"
organization = "<Hidden>"
bucket = "<Hidden>"
[[inputs.opcua]]
name = "<Hidden>"
endpoint = "<Hidden>"
connect_timeout = "10s"
request_timeout = "5s"
security_policy = "None"
security_mode = "None"
auth_method = "Anonymous"
nodes = [
{name="fGet_ram_memory", namespace="3", identifier_type="i", identifier="5" },
{name="fGet_space", namespace="3", identifier_type="i", identifier="7" },
]
The output message:
[telegraf] Error running agent: Error loading config file telegraf.conf: Error parsing Agent, Undefined but requested input: Agent
Specs:
macOS Big Sur
8 GB 2133 MHz LPDDR3
1.4 GHz Quad-Core Intel Core i5
10GBs free
Any help or comments will be well received.
Frank