• Roberto Sora's avatar
    Export Prometheus telemetry in daemon mode (#573) · 2791756c
    Roberto Sora authored
    * Apply cosmetics
    
    * Implement ugly telemetry POC
    
    * Added prefix and moved Insrumentation inside the command package
    
    * Refactor the telemetry module
    
    * Implement configuration via Viper
    
    * Add stats flush in case of a not daemonized cli daemon proces
    
    * Add repertory to store installation id and secret
    
    * Repertory force write
    
    * Cosmetics
    
    * Use viper config for repertory dir
    
    * Add test for repertory file creation
    
    * Add testing for telemetry deaemon and repertory
    
    * Wait for repertory and kill daemon
    
    * Updated pyinvoke to use async feature to test the daemon
    
    * Updated daemon test timeout
    
    * Cosmetics
    
    * Set getDefaultArduinoDataDir as unexported
    
    * Cosmetics
    
    * Cosmetics
    
    * Cosmetics
    
    * Lint on repertory module
    
    * Set SIGTERM as kill signal in case of win platform to overcome pyinvoke bug
    
    * Import platform as a module
    
    * Reverse platform if for signal value
    
    * Extract pid value
    
    * Remove print leftover
    
    * Add better error handling in repertory creation
    
    * Update docs with old README extract
    
    * Remove telemetry.pattern setting from docs
    
    * Remove serverPattern config option for telemetry
    
    * Upgrade viper to 1.6.2
    
    * Defer stats Increment in compile command and explicit set for success/failure
    
    * Fix board list help message
    
    * Implement stats flush anyway to leverage module no-op in case of no handler configured
    
    * Rename "repertory" module in "inventory" and refactor Sanitize function
    
    * Sanitize ExportFile in command/compile
    
    * Refactor daemon start fixture to include daemon process cleanup
    
    * Use defer function to push success tag correctly updated
    
    * Use named return parameters to handle success tagging for a command stat
    2791756c
list.go 4.92 KB