This release is a pre-release and may not be stable for production use.
Introduction
A buildout recipe that packages and configures the munin tool varnish_ to enable monitoring of Varnish.
Contains a modified version of varnish_ r4439 created by Kristian Lyngstol which works with Varnish 2.0 or newer.
How to use it
You can use it with a part like this:
[buildout]
parts =
...
munin-varnish
[munin-varnish]
recipe = munin-varnish
varnishstat = ${varnish-build:location}/bin/varnishstat
Where varnish-build would be a typical cmmi part that builds Varnish. And the varnishstat option is the full path to the varnishstat binary.
This part will create a script in the buildout bin directory called munin-varnish which is used to monitor all the different aspects. The current list of aspects available for monitoring is (bin/munin-varnish suggest):
expunge transfer_rates objects uptime request_rate memory_usage hit_rate threads backend_traffic
Each of these need to be installed as symlinks into the munin-node plugins. For example:
cd /etc/munin/plugins ln -s /path/to/buildout/bin/munin-varnish varnish_expunge
Monitoring multiple instances
You can use the optional parameter name to add a name to the graph titles:
[munin-varnish]
recipe = munin-varnish
varnishstat = ${varnish-build:location}/bin/varnishstat
name = Project X
In the above Example calling graph_title Object expunging would become graph_title Object expunging - Project X.
To monitor multiple instances you need to be able to put different symlinks into your etc/munin/plugins/ directory. You can use double underscore in the symlink installation to separate the instance name from the aspect. The above installation example would become:
cd /etc/munin/plugins ln -s /path/to/buildout/bin/munin-varnish varnish_projectX__expunge
(ATTENTION: note the double underscore!).
We are using a slightly modified version of varnish_ to support multiple instances. See this post on varnish-dev for more information.
Notes
A build of varnishstat requires the developer’s libraries for ncurses. If you don’t have a varnishstat in your build of Varnish then most likely you need to install the ncurses-devel or libncurses5-dev package and then get buildout to rebuild Varnish.
The hit_rate aspect only works correctly with a munin server running version 1.4.0 alpha or better. However hit rate data is also available in request_rate where it is presented as raw rates rather than normalized as a percentage.
Credits
Michael Dunstan, Author
Harald Friessnegger, added support for multiple instances
Changelog
1.0a3 (2010-08-16)
update to newest revision (r4439) of varnish_ [fRiSi]
add support for monitoring multiple varnish instances on a single host [fRiSi]
1.0a2 (2009-11-26)
Ensure that the generated script is executable.
1.0a1 (2009-11-26)
Initial release.
Metadata
Release files for munin.varnish 1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| munin.varnish-1.0a3.zip | 17.6 kB | Without provenance | Details for munin.varnish-1.0a3.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| munin.varnish-1.0a3-py2.6.egg | Legacy Egg format | - | - | Details for munin.varnish-1.0a3-py2.6.egg |
Total release size: 29.2 kB
Release files / munin.varnish-1.0a3.zip
| Download URL | munin.varnish-1.0a3.zip |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52961bd710356c91d5129e612334cc5dc500ff9b264fe73a18953fc603cb2411
|
|
BLAKE2b-256 checksum How to use checksums |
fcab6e200674bd54a657e4ca973b4623f2565015262b8df7de8737d9c8e516e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / munin.varnish-1.0a3-py2.6.egg
| Download URL | munin.varnish-1.0a3-py2.6.egg |
|---|---|
| Size | 11.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
dfa3075f26605553fe3a9b8454f3e62a45afeb39618c2f3def95eac68a1ccb92
|
|
BLAKE2b-256 checksum How to use checksums |
7f6bd6412515c08b3f1a9bedd1239faca751c26dc305a038bb525e4f448ab0b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for munin.varnish 1.0a3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.