Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for varnish 4.x #783

Merged
merged 9 commits into from Nov 20, 2014
Merged

Add support for varnish 4.x #783

merged 9 commits into from Nov 20, 2014

Conversation

mfournier
Copy link

I built this patchset against libvarnishapi 2.0.6, 3.0.2 and 4.0.2, but I didn't have the opportunity to run it on production varnishes yet. As the changes are well confined inside #ifdef blocks, I'm pretty confident that any problem possibly introduced here would be limited to varnish 4.x.

Would fix #618

Marc Fournier added 8 commits October 28, 2014 08:22
Summary of changes:
- connections: "accepted" & "dropped" are now found in the session section
- dirdns: doesn't exist in varnish 4 anymore
- objects: "n_obj*" were removed from varnish 4
- ban: "obj", "req" & "completed" bans were added. As a lot of new
  "tested" metrics are available, so we only collectd the overall total
  now
- session: metrics from "connections" and "threads" categories were
  moved here
- struct: "n_sess*" were removed
- totals: new, more detailed *bytes metrics were made available
- threads: new metrics were made available. "queued" was moved the
  session section.
Affects Varnish 3 only.
Consitently alphabetically ordered options and ensured all version
limitations are mentioned.
@mfournier mfournier added this to the Features milestone Nov 11, 2014
@pyr
Copy link
Member

pyr commented Nov 11, 2014

@mfournier I think it's good to go.

@alappe
Copy link

alappe commented Nov 12, 2014

Worked for me, 👍

@mfournier
Copy link
Author

Thanks for the feedback ! At least 2 other persons are using this patchset, and have reported being happy with it. So I'm merging this in.

mfournier pushed a commit that referenced this pull request Nov 20, 2014
Add support for varnish 4.x
@mfournier mfournier merged commit e5980bd into collectd:master Nov 20, 2014
@alappe
Copy link

alappe commented Nov 20, 2014

Thanks @mfournier 🎉

@disassembler
Copy link

Is there any chance of this getting backported to 5.4? Updating to varnish 4 and have no collectd monitoring ability right now with it. I was hoping 5.4.2 was going to have it added.

@quiffman
Copy link

quiffman commented Mar 3, 2015

👍

I spent a couple of hours yesterday trying to figure out why the new 5.4.2 release wasn't compiling properly against varnish4, before I realised this patch hadn't been included.

@disassembler
Copy link

FYI, I was able to get it to compile against 5.4.2 and am receiving varnish 4 data using the following:
curl https://github.com/collectd/collectd/pull/783.patch | git am
It will fail on a couple files, but they looked like they were just documentation. Just do git am --skip on the ones it fails on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

varnish plugin doesn't work with Varnish 4.0
5 participants