Gather useful information from the octoprint API
Example plugin.conf required for plugin
[[inputs.octoprint]]
url="http://xxx.xxx.x.xxx:xxx/"
apikey=""
If you have the Filament Manager Plugin then you can configure the plugin to use the external filament manager database, Follow this guide for setup on raspberry pi.
Example of an updated plugin.conf to support the postgres database
[[inputs.octoprint]]
url="http://xxx.xxx.x.xxx:xxx/"
apikey=""
dbnamepsql="octoprint_filamentmanager"
userpsql="octoprint"
passpsql="xxxx"
ip="xxx.xxx.x.xxx"
To integrate with telegraf, extend the telegraf.conf using the following example
[[inputs.execd]]
command = ["/path/to/octoprintbinary", "-config", "/path/to/plugin.conf"]
signal = "none"
Refer to deploy.sh for a building and deploying example
Useful for debugging
journalctl -u telegraf -n 10