Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Prometheus Basics | 1,413 | 2 years ago | 2 | mit | Go | |||||
A beginner friendly introduction to prometheus 🔥 | ||||||||||
Minecraft Prometheus Exporter | 329 | a month ago | 15 | mit | Java | |||||
A Bukkit plugin which exports minecraft server stats to Prometheus | ||||||||||
Dathttpd | 286 | 5 years ago | 18 | July 17, 2018 | 12 | mit | JavaScript | |||
Replaced by Homebase! See https://github.com/beakerbrowser/homebase. | ||||||||||
Moproxy | 201 | 23 days ago | 4 | mit | Rust | |||||
A transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust. | ||||||||||
Memcached_exporter | 158 | 1 | 2 days ago | 13 | March 08, 2023 | 6 | apache-2.0 | Go | ||
Exports metrics from memcached servers for consumption by Prometheus. | ||||||||||
Nats Surveyor | 158 | 3 days ago | 21 | March 15, 2023 | 14 | apache-2.0 | Go | |||
NATS Monitoring, Simplified. | ||||||||||
Promql Langserver | 153 | 4 months ago | 11 | March 02, 2022 | 21 | apache-2.0 | Go | |||
PromQL language server | ||||||||||
Heplify Server | 147 | 3 months ago | 8 | October 26, 2022 | 17 | agpl-3.0 | Go | |||
HEP Capture Server | ||||||||||
Nextcloud Exporter | 145 | 7 months ago | 16 | October 19, 2022 | 2 | mit | Go | |||
Prometheus exporter for Nextcloud servers. | ||||||||||
Squid Exporter | 101 | 15 days ago | 10 | February 25, 2022 | 2 | mit | Go | |||
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!
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:
SQUID_EXPORTER_LISTEN
SQUID_EXPORTER_METRICS_PATH
SQUID_HOSTNAME
SQUID_PORT
SQUID_LOGIN
SQUID_PASSWORD
SQUID_EXTRACTSERVICETIMES
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" boynux/squid-exporter
This project is written in Go, so all the usual methods for building (or cross compiling) a Go application would work.
If you are not very familiar with Go you can download the binary from releases.
Or build it for your OS:
go install https://github.com/boynux/squid-exporter
then you can find the binary in: $GOPATH/bin/squid-exporter
Q: Metrics are not reported by exporter
A: That usually means the exporter cannot reach squid server or the config manager permissions are not set corretly. To debug and mitigate:
172.20.0.0/16
is the network for exporter, you can also use a single IP if needed):#http_access allow manager localhost
acl prometheus src 172.20.0.0/16
http_access allow manager prometheus
Q: Why process_open_fds
metric is not exported?
A: This usualy means exporter don't have permission to read /proc/<squid_proc_id>/fd
folder. You can either
CAP_DAC_READ_SEARCH
capability for squid exporter process (or docker). (eg. sudo setcap 'cap_dac_read_search+ep' ./bin/squid-exporter
)Pull request and issues are very welcome.
If you found this program useful please consider donations