You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The documentation on writing a custom plugin specifies the following:
After testing my custom plugin I kept getting the issue error:
This appears to be a formatting issue on the Wiki, since formatting the command as below solves this issue:
The text was updated successfully, but these errors were encountered: