Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update of readme.md * feature implemented for buddy boards (#52) * Fix/einsy (#53) * update config.go and workaround for einsy boards connection test * fixed scraping of einsy * updated to support printer autodetection * metrics update * improved api access * updated einsy speed to be like buddy metric * updated config.go * Experimental/syslog (#54) * update config for exporter * primitive syslog server is up and running * added switch to config * defined list of metrics * added samples of data that syslog produces * added readme for syslog * very first primitive version of parsing * tidy and pattern update * update of patterns * added mac address * upload of parsed data example * moved parsed sample to markdown * removed debug loop * update of list of parsed metrics * updated patterns and expanded list of metrics * updated and optimized syslog logic * added warning for syslog metrics * defined few prometheus metrics for syslog and updated list of scraped data * defined new prometheus metrics * described syslog prometheus metrics * first version of prometheus Collect function done * fixed name of keys in collector * update of cpu metric to be ratio * update of documentation to acknowledge syslog * dashboard update * slight adjustment of dashboard * updated image in readme * fixed error message * fixed disabling syslog * reformating readme.md * update roadmap * Feature/dashboards (#55) * updated units for syslog metrics * buddy dashboard - change time interval - added nozzle diameter panel * update of buddy image * updated Einsy dashboard * updated readme * updated panel with temperatures - added units * updated overview dashboad * updated readme * updated einsy dashboard to support status flags * updated buddy.png * removed old legacy dashboards * Fix/metrics (#56) * fixed nozzle temperature for XL * Einsy status fix * Fix/misc (#57) * fixed logs at startup * various fixes of README.md * fixed issue with duplicate prusa.yml * moved prusa.yml * missing items in roadmap * fixed missing config.gcode * updated docker-compose.yaml * removed old on-premise yaml docker compose * removal of deprecated folder * removed deprecated metrics from einsy * fixed config reloading * bump versions for rpi image * audit changes * bump golang version * fixed golang version in docker.yml * updated go.mod * updated syslog buddy image in README.md * roadmap update * update of roadmap * EXPERIMENTAL Features/pritner logs (#58) * implemented logging service for printers - push to loki like server * added loki_push_api to promtail * updated docker-compose.yaml * updated README.md * update of README.md * prebuild commit * added forgotten files * updated for logs * Experimental/syslog update (#59) * fix main.go * updated samples of syslog data * updated config.gcode with more metrics * metrics_example.md update * updated list of syslog metrics * updated logging - should not panic now - moved logging service to syslogLoki.go * changed port to whole address with port * refactored syslog code * rename collectLogs to handleLogs and collectMetrics to handleMetrics * update of list of metrics in gcode * added new syslog metrics * Features/sl support (#60) * implemented access api for SL printers * added code for scraping sl printers * added api responses from sl printer * sl partially supported * status metric fix * updated readme.md * overview dashboard support for sl1 * added dashboard for resin printers * update of config * update of README.md * fix image of sl dashboard * bump version of exporter in docker compose * Docs/api (#61) * added buddy api answers * added einsy api answers * added sl api answers * created prusa_link folder and moved responses there * sl added list of api * buddy added list of api endpoints * Refactoring (#62) * moved prusa link related .go files into prusa_link * moved syslog.go into syslog/syslog.go * created exporter related folder * moved files here and there * config.go package rename * main.go package rename * config package * renaming prusa_link to prusalink * renamed package * Revert "Refactoring (#62)" (#64) This reverts commit 2d1c08d. * Refactoring (#69) * moved prusa link related .go files into prusa_link * moved syslog.go into syslog/syslog.go * created exporter related folder * moved files here and there * config.go package rename * main.go package rename * config package * renaming prusa_link to prusalink * renamed package * reverting * created structs for Prusa Link * created .go files for buddy, einsy and sl * Update package name in prusalink files * created new syslog.go * created file what should I need to do while sending metrics enabler to printer * updated config.gcode with new metrics * created common.go * updating configuration * created new main.go * updated config.go - finalized * addded func for log leve * updated main.go to contain cmd.Run() * moving files to depr folder and marking them as deprecated * removing junk * kingpin/v2 implemenation * created function accessPrinterEndpoint * returning prusa.yml to deprecated folder * error handling request with api key * updated flag getter * created few maps that will help us later * updated accessPrinterEndpoint function * get functions * GetFiles is recursive now * ProbePrinter function * probing config file * updated prober * metrics definition for syslog * scraping buddy * scraping sl * scraping einsy * syslog collector * enabling syslog collector * config reloader * buddy collector * einsy collector * SL collector * buddy metrics exposing * syslog metrics exposing * sl and einsy metrics exposing * removed duplicate configuration declaration * registered metrics * removed duplication of configuration in prusalink * updated scrapers * split syslog go files * started merging prometheus prusalink metrics * refactoring metrics * changed collector * moving scrape functions * cleaning prusalink folder * renamed common.go to prusalink.go * renaming prusa_buddy_... syslog metrics to prusa_... only same as in prusalink and basically merging them * reformating syslog metrics * dropping syslog prefix from prometheus functions in syslog/prometheus.go * moving config reference for prusalink * updated metrics Collect function for prusalink to contain metrics for einsy buddy and sl * metrics updated for prusalink buddy * separate common metrics to standalone function * Remove unnecessary print statements * Fix error handling in probeConfigFile function * updated structs to float64 * Remove unused 'sd' field and change 'Files' struct fields to float64 * Fixed probing of einsy based printers * Fix log level and handle error in configuration probing * Remove unused fields from Files struct * Refactor error logging in getCommonMetrics function * Removed standalone scraping functions * Removed printerZHeight metric - replaced with prusa_axis_z * Refactor Prometheus metrics collection and remove unused code * Fixed sl metrics and little bit splitted getCommonMetrics function * Moved einsy metrics block and updated error logging * Refactor printer scraping code and add timeout to HTTP client * Reorganised logic of prusalink metrics * Raw metrics from syslog kinda prepared for Prometheus * slight upgrade of syslog metrics * Fixed prusa_current_mmu_imp to prusa_current_mmu_inp - typo in firmware * Merged PrusaLink prusa_fan metrics to prusa_fan_speed * Merged prusa_axis_ metrics into one * Updated syslog metrics - let's expose them * Syslog metrics update * Alphabetically sorted collector * Alphabetically sorted NewCollector * Describe sorted as well * Removed Buddy from BuddySyslogInfo... * Updated config.gcode for syslog. In total 134 metrics. Let it burn * updated patterns and syslog parsing * Migrated syslogMetrics to sync.Map{} * Commented several parts of code * Removed label struct that was not used * Prototyped new syslog metrics * Dynamic metrics expose prototype * Even more separating syslog and prusalink * Attempting for fully dynamic exposing * Removing getField function * SYSLOG Metrics (#70) * Logging update for syslog/prometheus.go * Removed commented code from syslog/prometheus.go * Moving metric descriptions to map * Moved metrics definition to standalone golang file * Fixed typo * Overriding for few syslog metrics * Reverting few changes * Sylog metrics updated * Updated switching between metrics * Fixed few metrics and fixed issue with func getNumberOf * Exposing metrics updated * Removed metrics.go * Created collector.go * Fixed few metrics and dropped label port * Added TTL so I can detect that printer is down * config update * Updated config - PrusaLink metrics can be now disabled * Updated README.md * Fixed typo in Prusalink dashboard * Removed deprecations * Updated PrusaLink dashboard * Hotfix PrusaLink dashboard * Updated Prusa Overview dashboard * Removed deprecated dashboards * Mock of syslog dashboard * Temporarily disabling setting Rachable state to false while scraping the printer * Temporarily diabling Reachable state while probing * Temporarily disabling checking if printer is reachable * Fixed cpu_usage metric * Updated syslog dashboard and uploaded to Grafana.net * Updated README.md * Created logs.go for Syslog * Configuration update to support Logs * Updated logging functions - logs into file now with log rotation * Simplified logs and unhardcoding variables * Updated handling error while creating directory for printer logs * Agent configuration update * Docker compose for testing * Updated agent.yaml * Config gcodes updated * Changing directory for printer logs * Bump version to beta 5 * Updated rpi.yml pipeline * Updated prusa_current for other than dwarfs. Those were divided by 1000 in firmware * Removing garbage * Scraped config reloader * Paralelized PrusaLink scraping Remove unused code and print statements * Hotfixing prusa_material * Moved WaitGroup addition inside of the for loop for PrusaLink * Unhardcoded Timeout for PrusaLink * README.md update * README.md overhaul * Fixed rpi_image.md * Fixed syslog.md * Hotfixed syslog.md * Temporarily adding script for building binaries * Updated time format for logs to UnixNs Updated promtail parsing of logs from printer Updated printer logs to supports all labels * Updated Grafana agent example config * Updated version of exporter in docker compose
- Loading branch information