Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.79 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.79 KB

OctoPrint Telegraf Plugin

Go Report Card

octoprint

Gather useful information from the octoprint API

Configuration

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"

Development

Refer to deploy.sh for a building and deploying example

Useful for debugging

journalctl -u telegraf -n 10

Helpful resources

Example Dashboard

example