Difference between revisions of "Plugin:capabilities"
(Add "Needs Info" category to capabilities plugin page) |
Kwiatrowski (talk | contribs) (Add description for plugin options.) |
||
Line 17: | Line 17: | ||
Port "9104" | Port "9104" | ||
</Plugin> | </Plugin> | ||
+ | |||
+ | '''Host''' - Bind to the given interface/address. By default, if option is not set, the plugin will bind to the "any" address, i.e. accept requests sent to any of the hosts interfaces/addresses. This option is supported only for libmicrohttpd newer than 0.9.0. | ||
+ | |||
+ | '''Port''' - Port the embedded webserver should listen on. Defaults to 9104. | ||
== Example graph == | == Example graph == | ||
Line 29: | Line 33: | ||
=== Accessing the stats === | === Accessing the stats === | ||
− | The capabilities plugin doesn't operate like a regular read plugin. Since it exposes static information, there is no need to constantly sent the information to collectd. The information is exposed through a webserver and available by cURLing the Host:Port from the configuration. | + | The capabilities plugin doesn't operate like a regular read plugin. Since it exposes static information, there is no need to constantly sent the information to collectd. The information is exposed through a webserver and available by cURLing the Host:Port from the configuration. Examples: |
curl localhost:9104 | curl localhost:9104 | ||
+ | |||
+ | curl 10.237.214.26:50123 | ||
== See also == | == See also == |
Latest revision as of 15:55, 10 April 2020
Capabilities plugin | |
---|---|
Type: | read |
Callbacks: | init, config, shutdown |
Status: | supported |
First version: | 5.11 |
Copyright: | 2019 Intel Corporation Kamil Wiatrowski |
License: | MIT license |
Manpage: | collectd.conf(5) |
List of Plugins |
The capabilities plugin collects platform capabilities decoded from hardware subsystems, for example from SMBIOS using dmidecode. The static platform data is exposed through a micro embedded webserver and returned by the plugin in json format.
Synopsis
<Plugin capabilities> Host "localhost" Port "9104" </Plugin>
Host - Bind to the given interface/address. By default, if option is not set, the plugin will bind to the "any" address, i.e. accept requests sent to any of the hosts interfaces/addresses. This option is supported only for libmicrohttpd newer than 0.9.0.
Port - Port the embedded webserver should listen on. Defaults to 9104.
Example graph
None yet. Add one now!
Dependencies
- libjansson
- libmicrohttpd
Caveats
Accessing the stats
The capabilities plugin doesn't operate like a regular read plugin. Since it exposes static information, there is no need to constantly sent the information to collectd. The information is exposed through a webserver and available by cURLing the Host:Port from the configuration. Examples:
curl localhost:9104
curl 10.237.214.26:50123