redfishreceiver

package module
v0.154.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 17 Imported by: 1

README

Redfish Receiver

This receiver fetches metrics for a server running a Redfish API.

Status
Stability development: metrics
Distributions []
Issues Open issues Closed issues
Code coverage codecov
Code Owners @steven-freed, @khushijain21

Purpose

The purpose of this component is to monitor devices running a Redfish API which is quite often a BMC (Baseboard Management Controller) such as; Dell iDRAC, HPE iLO, etc.

Prerequisites

This receiver supports Redfish versions:

  • v1

Configuration

These configuration options are for connecting to Redfish API servers.

The following settings are optional:

  • collection_interval: (default = 60s): This receiver collects metrics on an interval. This value must be a string readable by Golang's time.ParseDuration. Valid time units are ns, us (or µs), ms, s, m, h.
  • initial_delay (default = 0s): defines how long this receiver waits before starting.
  • servers: The list of redfish servers to be monitored.

Each server has the following properties:

  • base_url (required): base url to monitor in the form [https][://][host]:[port].
  • username (required): Redfish username.
  • password (required): Redfish password.
  • insecure (optional, default: false): Sets the protocol security.
  • timeout (optional, default: 60s): Sets the Redfish client timeout.
  • redfish (optional): Redfish configuration.
  • computer_system_id (required): Redfish computer system id to monitor.
  • resources (required): The list of Redfish resources to monitor.

The redfish configuration has the following properties:

  • version (optional, default: v1): Redfish API version.

The redfish resource options include the below:

  • ComputerSystem
  • Chassis
  • Fans
  • Temperatures
Example Configuration
receivers:
  redfish:
    collection_interval: 60s
    servers:
    - base_url: https://16.1.15.1
      username: "${BMC_USER}"
      password: "${BMC_PASSWORD}"
      insecure: true
      computer_system_id: "1"
      redfish:
        version: v1
      resources:
      - ComputerSystem
      - Fans

The full list of settings exposed for this receiver are documented in config.go.

Metrics

Details about the metrics produced by this receiver can be found in metadata.yaml

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for redfish receiver.

Types

type Config

type Config struct {
	scraperhelper.ControllerConfig `mapstructure:",squash"`
	metadata.MetricsBuilderConfig  `mapstructure:",squash"`
	Servers                        []Server `mapstructure:"servers"`
	// contains filtered or unexported fields
}

func (*Config) Validate

func (cfg *Config) Validate() error

type Resource

type Resource string
const (
	ComputerSystemResource Resource = "ComputerSystem"
	ChassisResource        Resource = "Chassis"
	FansResource           Resource = "Fans"
	TemperaturesResource   Resource = "Temperatures"
)

type Server

type Server struct {
	BaseURL          string              `mapstructure:"base_url"`
	User             string              `mapstructure:"username"`
	Pwd              configopaque.String `mapstructure:"password"`
	Insecure         bool                `mapstructure:"insecure"`
	Timeout          string              `mapstructure:"timeout"`
	Redfish          redfishConfig       `mapstructure:"redfish"`
	ComputerSystemID string              `mapstructure:"computer_system_id"`
	Resources        []Resource          `mapstructure:"resources"`
}

Directories

Path Synopsis
internal
metadata
Package metadata contains the autogenerated telemetry and build information for the receiver/redfish component.
Package metadata contains the autogenerated telemetry and build information for the receiver/redfish component.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL