{"repo":"Lifailon/logporter","free":true,"listed":false,"github":"https://github.com/Lifailon/logporter","clone":"git clone https://github.com/Lifailon/logporter.git","description":"A lightweight alternative to cAdvisor for exporting metrics from Docker containers and a log collector for sending to Loki.","language":"Go","stars":59,"topics":["exporter","golang","metrics","monitoring","cadvisor","logs","docker","docker-metrics","collector","log-collector"],"license":"MIT","category":"analytics","readme_excerpt":"\\ A lightweight alternative to cAdvisor for exporting metrics from Docker containers and a log collector for sending to Loki, with support for filtering by compose labels. Performance Comparative CPU and memory usage measurements using logporter with log collection enabled (left) and cAdvisor (right) over a 24-hour period for 25 containers: Quick start Clone the repository and run the monitoring full-stack with one command: The stack includes Prometheus with an exporter connected and alerts configured, a Loki server targeted by a log collector, and Grafana with pre-configured data sources and added dashboards. Go to Grafana UI: http://localhost:3000 and enter admin : admin . Manual setup Exporter - Run the exporter in a container using the image published on Docker Hub: Or use compose to securely use the docker socket through a proxy: List of environment variables to configure: Label Type Default Description - - - - DOCKER METRICS PORT int 9333 The port on which the exporter is listening. DOCKER METRICS HOSTNAME string \"\" Custom hostname displayed in Prometheus and Loki labels. DOCKER METRICS CACHE int 15 Cache time for all collected metrics in seconds. Until the cache expires, queried metrics will return the last value received. DOCKER METRICS VOLUME boolean true Enable metrics collection for all volumes and their size. Data collection occurs in the background, without waiting for scrape. DOCKER METRICS VOLUME CACHE int 30 Cache time for collected volumes metrics in minutes.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Lifailon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Lifailon/logporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}