Update changelog and redfish docs
This commit is contained in:
parent
b0cd913ff7
commit
b4bfecc95b
|
|
@ -14,6 +14,10 @@
|
||||||
|
|
||||||
- Official packages now built with Go 1.14.3.
|
- Official packages now built with Go 1.14.3.
|
||||||
|
|
||||||
|
#### New Inputs
|
||||||
|
|
||||||
|
- [redfish](/plugins/inputs/redfish/README.md) - Contributed by @sarvanikonda
|
||||||
|
|
||||||
#### New Processors
|
#### New Processors
|
||||||
|
|
||||||
- [defaults](/plugins/processors/defaults/README.md) - Contributed by @jregistr
|
- [defaults](/plugins/processors/defaults/README.md) - Contributed by @jregistr
|
||||||
|
|
|
||||||
|
|
@ -282,6 +282,7 @@ For documentation on the latest development code see the [documentation index][d
|
||||||
* [puppetagent](./plugins/inputs/puppetagent)
|
* [puppetagent](./plugins/inputs/puppetagent)
|
||||||
* [rabbitmq](./plugins/inputs/rabbitmq)
|
* [rabbitmq](./plugins/inputs/rabbitmq)
|
||||||
* [raindrops](./plugins/inputs/raindrops)
|
* [raindrops](./plugins/inputs/raindrops)
|
||||||
|
* [redfish](./plugins/inputs/redfish)
|
||||||
* [redis](./plugins/inputs/redis)
|
* [redis](./plugins/inputs/redis)
|
||||||
* [rethinkdb](./plugins/inputs/rethinkdb)
|
* [rethinkdb](./plugins/inputs/rethinkdb)
|
||||||
* [riak](./plugins/inputs/riak)
|
* [riak](./plugins/inputs/riak)
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,18 @@ The `redfish` plugin gathers metrics and status information about CPU temperatu
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[inputs.redfish]]
|
[[inputs.redfish]]
|
||||||
## Server OOB-IP
|
## Redfish API Base URL.
|
||||||
address = "http://192.0.0.1"
|
address = "https://127.0.0.1:5000"
|
||||||
|
|
||||||
## Username,Password for hardware server
|
## Credentials for the Redfish API.
|
||||||
username = "test"
|
username = "root"
|
||||||
password = "test"
|
password = "password123456"
|
||||||
|
|
||||||
## Resource Id for redfish APIs
|
## System Id to collect data for in Redfish APIs.
|
||||||
computer_system_id = "System.Embedded.1"
|
computer_system_id="System.Embedded.1"
|
||||||
|
|
||||||
|
## Amount of time allowed to complete the HTTP request
|
||||||
|
# timeout = "5s"
|
||||||
|
|
||||||
## Optional TLS Config
|
## Optional TLS Config
|
||||||
# tls_ca = "/etc/telegraf/ca.pem"
|
# tls_ca = "/etc/telegraf/ca.pem"
|
||||||
|
|
@ -23,81 +26,78 @@ The `redfish` plugin gathers metrics and status information about CPU temperatu
|
||||||
# tls_key = "/etc/telegraf/key.pem"
|
# tls_key = "/etc/telegraf/key.pem"
|
||||||
## Use TLS but skip chain & host verification
|
## Use TLS but skip chain & host verification
|
||||||
# insecure_skip_verify = false
|
# insecure_skip_verify = false
|
||||||
|
|
||||||
## Amount of time allowed to complete the HTTP request
|
|
||||||
# timeout = "5s"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Metrics
|
### Metrics
|
||||||
|
|
||||||
- redfish_thermal_temperatures
|
- redfish_thermal_temperatures
|
||||||
- tags:
|
- tags:
|
||||||
- source
|
- source
|
||||||
- address
|
- address
|
||||||
- name
|
- name
|
||||||
- datacenter (available only if location data is found)
|
- datacenter (available only if location data is found)
|
||||||
- rack (available only if location data is found)
|
- rack (available only if location data is found)
|
||||||
- room (available only if location data is found)
|
- room (available only if location data is found)
|
||||||
- row (available only if location data is found)
|
- row (available only if location data is found)
|
||||||
- state
|
- state
|
||||||
- health
|
- health
|
||||||
- Fields:
|
- fields:
|
||||||
- reading_celsius
|
- reading_celsius
|
||||||
- upper_threshold_critical
|
- upper_threshold_critical
|
||||||
- upper_threshold_fatal
|
- upper_threshold_fatal
|
||||||
|
|
||||||
|
|
||||||
- redfish_thermal_fans
|
+ redfish_thermal_fans
|
||||||
- tags:
|
- tags:
|
||||||
- source
|
- source
|
||||||
- address
|
- address
|
||||||
- name
|
- name
|
||||||
- datacenter (available only if location data is found)
|
- datacenter (available only if location data is found)
|
||||||
- rack (available only if location data is found)
|
- rack (available only if location data is found)
|
||||||
- room (available only if location data is found)
|
- room (available only if location data is found)
|
||||||
- row (available only if location data is found)
|
- row (available only if location data is found)
|
||||||
- state
|
- state
|
||||||
- health
|
- health
|
||||||
- Fields:
|
- fields:
|
||||||
- reading_rpm (or) reading_percent
|
- reading_rpm (or) reading_percent
|
||||||
- upper_threshold_critical
|
- upper_threshold_critical
|
||||||
- upper_threshold_fatal
|
- upper_threshold_fatal
|
||||||
|
|
||||||
|
|
||||||
- redfish_power_powersupplies
|
- redfish_power_powersupplies
|
||||||
- tags:
|
- tags:
|
||||||
- source
|
- source
|
||||||
- address
|
- address
|
||||||
- name
|
- name
|
||||||
- datacenter (available only if location data is found)
|
- datacenter (available only if location data is found)
|
||||||
- rack (available only if location data is found)
|
- rack (available only if location data is found)
|
||||||
- room (available only if location data is found)
|
- room (available only if location data is found)
|
||||||
- row (available only if location data is found)
|
- row (available only if location data is found)
|
||||||
- state
|
- state
|
||||||
- health
|
- health
|
||||||
- Fields:
|
- fields:
|
||||||
- last_power_output_watts
|
- last_power_output_watts
|
||||||
- line_input_voltage
|
- line_input_voltage
|
||||||
- power_capacity_watts
|
- power_capacity_watts
|
||||||
- power_input_watts
|
- power_input_watts
|
||||||
- power_output_watts
|
- power_output_watts
|
||||||
|
|
||||||
|
|
||||||
- redfish_power_voltages (available only if voltage data is found)
|
- redfish_power_voltages (available only if voltage data is found)
|
||||||
- tags:
|
- tags:
|
||||||
- source
|
- source
|
||||||
- address
|
- address
|
||||||
- name
|
- name
|
||||||
- datacenter (available only if location data is found)
|
- datacenter (available only if location data is found)
|
||||||
- rack (available only if location data is found)
|
- rack (available only if location data is found)
|
||||||
- room (available only if location data is found)
|
- room (available only if location data is found)
|
||||||
- row (available only if location data is found)
|
- row (available only if location data is found)
|
||||||
- state
|
- state
|
||||||
- health
|
- health
|
||||||
- Fields:
|
- fields:
|
||||||
- reading_volts
|
- reading_volts
|
||||||
- upper_threshold_critical
|
- upper_threshold_critical
|
||||||
- upper_threshold_fatal
|
- upper_threshold_fatal
|
||||||
|
|
||||||
|
|
||||||
### Example Output
|
### Example Output
|
||||||
|
|
@ -118,5 +118,3 @@ redfish_power_voltages,source=test-hostname,name=CPU1MEM347,address=http://190.0
|
||||||
redfish_power_voltages,source=test-hostname,name=PS1voltage1,address=http://190.0.0.1,datacenter="Tampa",health="OK",rack="12",room="tbc",row="3",state="Enabled" reading_volts=208,upper_threshold_critical=59,upper_threshold_fatal=64 1582114112000000000
|
redfish_power_voltages,source=test-hostname,name=PS1voltage1,address=http://190.0.0.1,datacenter="Tampa",health="OK",rack="12",room="tbc",row="3",state="Enabled" reading_volts=208,upper_threshold_critical=59,upper_threshold_fatal=64 1582114112000000000
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,13 @@ package redfish
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
|
||||||
"github.com/influxdata/telegraf"
|
"github.com/influxdata/telegraf"
|
||||||
"github.com/influxdata/telegraf/internal"
|
"github.com/influxdata/telegraf/internal"
|
||||||
"github.com/influxdata/telegraf/internal/tls"
|
"github.com/influxdata/telegraf/internal/tls"
|
||||||
"github.com/influxdata/telegraf/plugins/inputs"
|
"github.com/influxdata/telegraf/plugins/inputs"
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Cpu struct {
|
type Cpu struct {
|
||||||
|
|
@ -94,25 +95,25 @@ func (r *Redfish) Description() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
var redfishConfig = `
|
var redfishConfig = `
|
||||||
##Server url
|
## Redfish API Base URL.
|
||||||
address = "https://192.0.0.1"
|
address = "https://127.0.0.1:5000"
|
||||||
|
|
||||||
##Username, Password for hardware server
|
## Credentials for the Redfish API.
|
||||||
username = "test"
|
username = "root"
|
||||||
password = "test"
|
password = "password123456"
|
||||||
|
|
||||||
##Resource Id for redfish APIs
|
## System Id to collect data for in Redfish APIs.
|
||||||
computer_system_id="System.Embedded.1"
|
computer_system_id="System.Embedded.1"
|
||||||
|
|
||||||
##Optional TLS Config
|
## Amount of time allowed to complete the HTTP request
|
||||||
#tls_ca = "/etc/telegraf/ca.pem"
|
|
||||||
#tls_cert = "/etc/telegraf/cert.pem"
|
|
||||||
#tls_key = "/etc/telegraf/key.pem"
|
|
||||||
## Use TLS but skip chain & host verification
|
|
||||||
#insecure_skip_verify = false
|
|
||||||
|
|
||||||
## Amount of time allowed to complete the HTTP request
|
|
||||||
# timeout = "5s"
|
# timeout = "5s"
|
||||||
|
|
||||||
|
## Optional TLS Config
|
||||||
|
# tls_ca = "/etc/telegraf/ca.pem"
|
||||||
|
# tls_cert = "/etc/telegraf/cert.pem"
|
||||||
|
# tls_key = "/etc/telegraf/key.pem"
|
||||||
|
## Use TLS but skip chain & host verification
|
||||||
|
# insecure_skip_verify = false
|
||||||
`
|
`
|
||||||
|
|
||||||
func (r *Redfish) SampleConfig() string {
|
func (r *Redfish) SampleConfig() string {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue