Skip to content

Processor of logs from Buddy based Prusa Research 3D printers

License

Notifications You must be signed in to change notification settings

pstrobl96/prusa_log_processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prusa Log Processor

Processor setup

You can run simply docker run of container.

docker run pubeldev/prusa_log_processor

Or you can run binary, no configuration but everything necessary is possible to set via flags. You can config several paramaters.

exporter.metrics-path - Path where to expose metrics - default - "/metrics"
exporter.metrics-port - Port where to expose metrics - default - "10010"
processor.address - Address where to expose port for gathering logs - default - "0.0.0.0.13514"
processor.log-to - Write logs to file - default - "false"
processor.directory - Directory where to store logs - default - "./logs"
processor.filename - Filename where to store logs - default - "prusa.log"
processor.max-size - Maximum size of log file - default - "10"
processor.max-backups - Maximum number of backups - default - "3"
processor.max-age - Maximum age of log file - default - "28"
log.level - Log level for prusa_log_processor - default - "info"

Example

./prusa_exporter-linux-amd64 --processor.address=0.0.0.0:424242 --log.level=debug --exporter.metrics-port=9090

Enable SYSLOG in printer

To gather logs you have to allow sending logs to prusa_log_processor. You have to create config.gcode that will contain M340 command which set up log server address. Bellow you'll find manual how to set up your printer. Example gcode can be found in docs folder.

M340 192.168.20.2 13514

After loading gcode on to flash drive you can enable the metrics in printer.

Open Settings
syslog0

Navigate to Network
syslog1

Find Metrics & Log
syslog2

Now click on Allow - Confirm and change value to Any Host. Next switch on Enabled Stored at Startup
syslog3
syslog4
syslog5

Now run your configuration gcode we created before
syslog6
syslog7

Navigate back to Metrics & Log and find Current Configuration - click on Logs Host and store it as Host
syslog8
syslog9

Click on Logs Port and store it as Metrics Port
syslog10
syslog11

After configuration it should look like this. Only IP address should be different. And if different port was choosen then also port.
syslog12

About

Processor of logs from Buddy based Prusa Research 3D printers

Resources

License

Stars

Watchers

Forks

Packages

No packages published