Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

unable to set name #13

Open
dtaylor-sfdc opened this issue Oct 2, 2013 · 4 comments
Open

unable to set name #13

dtaylor-sfdc opened this issue Oct 2, 2013 · 4 comments

Comments

@dtaylor-sfdc
Copy link

I have the following in my configuration file:

newrelic:
  license_key: 'blahblahblah'
  verbose: 1

agents:
  varnish:
    -
      name: '(Prod) Varnish'

and yet the name is always "varnish[default]".

As far as I can tell, this code isn't picking up the name in the configuration file:

    agent_human_labels("Varnish") { "#{@name||"varnish"}[#{@vname||"default"}]"}

Any idea how to fix this? We have multiple environments running multiple instances of Varnish and I want to be able to distinguish between each environment.

Cheers!

@kamilbednarz
Copy link

I experience a similar issue.

The temporary solution that may work for you is to set a vname in the configuration YAML file, so you will end up with e.g. varnish[(Prod) Varnish].

@andres833
Copy link

Hello i solved with this :D

host=hostname
echo sed -i "'s/default/$host/g'" /opt/newrelic_varnish_plugin-master/newrelic_varnish_plugin | bash

andres833

@benpriestman
Copy link

err.. What happens if you want something other than the hostname displayed?

@andres833
Copy link

No problem, you can change in this file /plugin-directory/newrelic_varnish_plugin and find default and change default for something name.

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

No branches or pull requests

4 participants