{"repo":"boynux/squid-exporter","free":true,"listed":false,"github":"https://github.com/boynux/squid-exporter","clone":"git clone https://github.com/boynux/squid-exporter.git","description":"Squid Prometheus Exporter","language":"Go","stars":171,"topics":["squid","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"Note: I've been very busy on the past couple of months with my personal life and work. Thanks for filing issues and feature requests. I'll start to go through them and provide updates very soon. Squid Prometheus exporter -------------------------- Exports squid metrics in Prometheus format NOTE : From release 1.0 metric names and some parameters has changed. Make sure you check the docs and update your deployments accordingly! New ----- Using environment variables to configure the exporter Adding custom labels to metrics Enabling TLS for exporter via WebConfig Usage: ------ Simple usage: squid-exporter -squid-hostname \"localhost\" -squid-port 3128 Configure Prometheus to scrape metrics from localhost:9301/metrics - job name: squid # squid-exporter is installed, grab stats about the local # squid instance. target groups: - targets: ['localhost:9301'] To get all the parameteres, command line arguments always override default and environment variables configs: squid-exporter -help The following environment variables can be used to override default parameters: Usage with docker: ------ Basic setup assuming Squid is running on the same machine: docker run --net=host -d boynux/squid-exporter Setup with Squid running on a different host docker run -p 9301:9301 -d boynux/squid-exporter -squid-hostname \"192.168.0.2\" -squid-port 3128 -listen \":9301\" With environment variables docker run -p 9301:9301 -d -e SQUID PORT=\"3128\" -e SQUID HOSTNAME=\"192.168.0.2\" -e SQUID EXPORTER LISTEN=\":9301\"","default_branch":null,"files":null,"tree":[],"storefront":"/r/boynux","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/boynux/squid-exporter/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."}