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

Clean backend name if beginning with reload_ #56

Merged
merged 2 commits into from
Oct 27, 2019

Conversation

stromnet
Copy link
Contributor

When using often-shipped scripts to reload varnish VCLs, the backend names changes from "boot" to reload_xxxxx.

Initially, metrics would be exported with default, then after one reload it would be reload_20191016_072034_54500.default.

The varnish_reload_vcl script as shipped with Varnish 4 packages uses one format,
and varnishreload shipped with 6+ packages uses a slightly different.
This covers both.

Note: this is my very first attempt on Go coding, so feel free to point out improvements!

Johan Ström added 2 commits October 16, 2019 14:36
The varnish_reload_vcl script as shipped with Varnish 4 packages uses one format,
and varnishreload shipped with 6+ packages uses a slightly different.
This covers both.
@jonnenauha
Copy link
Owner

Looks good, thanks!

@jonnenauha jonnenauha merged commit 80dd76a into jonnenauha:master Oct 27, 2019
@jonnenauha
Copy link
Owner

Your PR is included in the 1.5.2 release, thanks for your contribution.

@stromnet
Copy link
Contributor Author

Great, thank you!

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

Successfully merging this pull request may close these issues.

2 participants