Update changelog and redfish docs

This commit is contained in:
Daniel Nelson 2020-06-18 19:00:22 -07:00
parent b0cd913ff7
commit b4bfecc95b
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
4 changed files with 92 additions and 88 deletions

View File

@ -14,6 +14,10 @@
- Official packages now built with Go 1.14.3.
#### New Inputs
- [redfish](/plugins/inputs/redfish/README.md) - Contributed by @sarvanikonda
#### New Processors
- [defaults](/plugins/processors/defaults/README.md) - Contributed by @jregistr

View File

@ -282,6 +282,7 @@ For documentation on the latest development code see the [documentation index][d
* [puppetagent](./plugins/inputs/puppetagent)
* [rabbitmq](./plugins/inputs/rabbitmq)
* [raindrops](./plugins/inputs/raindrops)
* [redfish](./plugins/inputs/redfish)
* [redis](./plugins/inputs/redis)
* [rethinkdb](./plugins/inputs/rethinkdb)
* [riak](./plugins/inputs/riak)

View File

@ -7,15 +7,18 @@ The `redfish` plugin gathers metrics and status information about CPU temperatu
```toml
[[inputs.redfish]]
## Server OOB-IP
address = "http://192.0.0.1"
## Redfish API Base URL.
address = "https://127.0.0.1:5000"
## Username,Password for hardware server
username = "test"
password = "test"
## Credentials for the Redfish API.
username = "root"
password = "password123456"
## Resource Id for redfish APIs
computer_system_id = "System.Embedded.1"
## System Id to collect data for in Redfish APIs.
computer_system_id="System.Embedded.1"
## Amount of time allowed to complete the HTTP request
# timeout = "5s"
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
@ -23,84 +26,81 @@ The `redfish` plugin gathers metrics and status information about CPU temperatu
# 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"
```
### Metrics
- redfish_thermal_temperatures
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- Fields:
- reading_celsius
- upper_threshold_critical
- upper_threshold_fatal
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- fields:
- reading_celsius
- upper_threshold_critical
- upper_threshold_fatal
- redfish_thermal_fans
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- Fields:
- reading_rpm (or) reading_percent
- upper_threshold_critical
- upper_threshold_fatal
+ redfish_thermal_fans
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- fields:
- reading_rpm (or) reading_percent
- upper_threshold_critical
- upper_threshold_fatal
- redfish_power_powersupplies
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- Fields:
- last_power_output_watts
- line_input_voltage
- power_capacity_watts
- power_input_watts
- power_output_watts
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- fields:
- last_power_output_watts
- line_input_voltage
- power_capacity_watts
- power_input_watts
- power_output_watts
- redfish_power_voltages (available only if voltage data is found)
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- Fields:
- reading_volts
- upper_threshold_critical
- upper_threshold_fatal
- tags:
- source
- address
- name
- datacenter (available only if location data is found)
- rack (available only if location data is found)
- room (available only if location data is found)
- row (available only if location data is found)
- state
- health
- fields:
- reading_volts
- upper_threshold_critical
- upper_threshold_fatal
### Example Output
### Example Output
```
redfish_thermal_temperatures,source=test-hostname,name=CPU1,address=http://190.0.0.1,datacenter="Tampa",health="OK",rack="12",room="tbc",row="3",state="Enabled" reading_celsius=41,upper_threshold_critical=59,upper_threshold_fatal=64 1582114112000000000
@ -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
```

View File

@ -3,12 +3,13 @@ package redfish
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/internal/tls"
"github.com/influxdata/telegraf/plugins/inputs"
"io/ioutil"
"net/http"
)
type Cpu struct {
@ -94,25 +95,25 @@ func (r *Redfish) Description() string {
}
var redfishConfig = `
##Server url
address = "https://192.0.0.1"
## Redfish API Base URL.
address = "https://127.0.0.1:5000"
##Username, Password for hardware server
username = "test"
password = "test"
## Credentials for the Redfish API.
username = "root"
password = "password123456"
##Resource Id for redfish APIs
## System Id to collect data for in Redfish APIs.
computer_system_id="System.Embedded.1"
##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
## Amount of time allowed to complete the HTTP request
## Amount of time allowed to complete the HTTP request
# 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 {