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

Modeling nested XML plugin configuration using collectd_plugin resource #10

Open
0xAhmed opened this issue Oct 31, 2012 · 2 comments
Open

Comments

@0xAhmed
Copy link

0xAhmed commented Oct 31, 2012

Hi,

Great work, Thumbs up !

I was wondering how can i model a collectd plugin configuration that uses nested XML values using the collectd_plugin resource ?

Take the phpfpm collectd plugin as an example https://collectd.org/wiki/index.php/Plugin:cURL-JSON/phpfpm where is lists something like the following:

LoadPlugin curl_json
<Plugin curl_json>
<URL "http://127.0.0.1/_fpmstatus?json">
  Instance "fpm"
  <Key "accepted conn">
      Type "http_requests"
  </Key>
  <Key "listen queue len">
      Type "listen_queue"
  </Key>
  <Key "active processes">
      Type "active_processes"
  </Key>
  <Key "total processes">
      Type "total_processes"
  </Key>
</URL>
</Plugin>

Any hints on how to do that ?

Thanks in advance.

@coderanger
Copy link
Owner

Take a look at how the python plugin is implemented, make a little DSL for the curl_json in particular :)

trobrock added a commit to trobrock/chef-collectd that referenced this issue Dec 13, 2012
Updating recipes for centos 6.3, update packages to install and add init.d script
danryan pushed a commit to danryan/chef-collectd that referenced this issue Apr 18, 2013
Updating recipes for centos 6.3, update packages to install and add init.d script
@danmilon
Copy link

Is there a clear way to achieve this?
Thank you!

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

3 participants