nickfloyd / newrelic-perfmon-plugin

The Perfmon Plugin for the New Relic Plugins - https://newrelic.com/plugins
MIT License
11 stars 22 forks source link

When using custom counters all metrics start with Component/ #15

Open thelukemccarthy opened 10 years ago

thelukemccarthy commented 10 years ago

Hi

I have set up the perfmon plugin to use custom counters and the data is going into New Relic. I'm collecting 59 counters are collected from 6 servers.

The problem is when I create a new graph for the counters all of the counters start with Component/ and many are missing. Is there a way to get the full counter name including the server name?

coopr commented 10 years ago

@thelukemccarthy where and how are you creating "a new graph for the counters"? Can you post the URL of your graph? And/or a screenshot? Thanks!

thelukemccarthy commented 10 years ago

To create a new graph I do the following

When selected a metric everything starts with "Component/"

image

coopr commented 10 years ago

Ah, so you are using a forked version of this plugin agent? (eg. you changed the GUID of the plugin agent?)

All this looks normal to me.

You won't see the server name in the metric name - because the metrics are per-server. Thus, you'll build up your dashboard, then save it, and then when you click on a particular server name in the "plugin index" view, it'll take you to your saved dashboard that displays metrics for that particular server.

All plugin metric names always start with Component/

Sorry, I have no idea why only some metrics are being populated.

thelukemccarthy commented 10 years ago

Oh OK.

I haven't looked at the code but I assume the server name isn't stored with the metric? So I would guess that when gathering the same metrics from different servers, for example

    \\\\xxx.xxx.xxx.21\Processor(_Total)\% Processor Time  
    \\\\xxx.xxx.xxx.42\Processor(_Total)\% Processor Time

they're overwritten and only one ends being stored. This would explain most of the missing metrics.

Does that mean that I need to run the Perfmon plugin on each server and create a dashboard for each server?

coopr commented 10 years ago

I encourage you to carefully follow the provided instructions in the README and the .yml config file - I think all your questions are answered there already!