This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Work for me with squid 3.4 on debian jessie. | |
| I use it with collectd exec plugin (https://collectd.org/documentation/manpages/collectd-exec.5.shtml) | |
| to collect data from squid, send it over the network to influxdb and visualize with grafana. | |
| Maybe someone will have some use of it. Good luck ;-) | |
| https://gist.github.com/wrzasa/dfd7b554171159a6b2ab24b03b8e30b8/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com> | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # * Redistributions of source code must retain the above copyright | |
| # notice, this list of conditions and the following disclaimer. | |
| # * Redistributions in binary form must reproduce the above copyright |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ---------------------------------------------------------------------------- | |
| -- statsd interface for nginx | |
| -- (c) 2014 Anton Tolchanov | |
| -- https://gist.github.com/knyar/8905045 | |
| -- | |
| -- Usage: | |
| -- 1. install nginx with ngx_lua; | |
| -- 2. put this file as statsd.lua somewhere (/var/lib/nginx/lua/ will do); | |
| -- 3. initialize stats in init_by_lua: | |
| -- http { |