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

Sections and win_perf_counters #68

Closed
maximedevalland opened this issue Jun 15, 2017 · 2 comments
Closed

Sections and win_perf_counters #68

maximedevalland opened this issue Jun 15, 2017 · 2 comments

Comments

@maximedevalland
Copy link
Contributor

I have a question regarding sections and win_perf_counters. I have browse issues and commits of this repo and can't find my answer.

How do you have multiple sections in the same telegraf::input ?

Here's an example :

  telegraf::input { 'memory':
    plugin_type => 'win_perf_counters',
    sections     => {
        'win_perf_counters.object' => {
          'ObjectName'    => 'Memory',
          'Counters' => ["Available Bytes", "Cache Faults/sec", "Demand Zero Faults/sec", "Page Faults/sec", "Pages/sec", "Transition Faults/sec", "Pool Nonpaged Bytes", "Pool Paged Bytes"],
          'Instances' => ["*"],
          'Measurement' => "win_mem",
          }
        }
   }

Let's say I want to add Network counters to this. How do you do it ? Because it's only accepting hashes and you can't have the same key twice.

Network counters :

        'win_perf_counters.object' => {
          'ObjectName'    => 'Network Interface',
          'Counters' => ["Bytes Received/sec","Bytes Sent/sec","Bytes Total/sec","Packets Received/sec","Packets Sent/sec"],
          'Instances' => ["*"],
          'Measurement' => "win_net",
        }

Thanks!

@allangood
Copy link

Good point, I'm running into this same problem.

@yankcrime
Copy link
Member

Fixed via #80.

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

No branches or pull requests

3 participants