-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The documentation on writing a custom plugin specifies the following:
Add the command that can execute this file in /etc/opt/amonagent/plugins-enabled/custom.conf
[{ "command":"python /path/to/your-metrics.py", "name":"requests"},]
After testing my custom plugin I kept getting the issue error:
ERRO[0000] Can't decode JSON file error="invalid character ']' looking for beginning of value" plugin=custom
{}
This appears to be a formatting issue on the Wiki, since formatting the command as below solves this issue:
[{
"command":"python /path/to/your-metrics.py",
"name":"requests"
},]
Metadata
Metadata
Assignees
Labels
No labels