Skip to content

sspaink/octoprint-telegraf-plugin

Repository files navigation

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

About

A plugin for Telegraf to gather OctoPrint data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published