Go to file
Conrad Hoffmann 67041ef633 The great refactoring
- Move every collector into its own file
- Move FreeIPMI code into own package
- Allow more customization of commands executed by collectors
- Split up documentation, so README is a little less overwhelming

A single commit message does not do justice to the amount of changes
here, but hey... :)
2021-06-01 22:38:23 +02:00
docs The great refactoring 2021-06-01 22:38:23 +02:00
freeipmi The great refactoring 2021-06-01 22:38:23 +02:00
vendor Update deps 2021-05-11 18:37:08 +02:00
.cirrus.yml Add Cirrus CI integration 2019-10-16 13:52:36 +02:00
.gitignore Initial public release 2018-05-24 16:28:06 +02:00
.promu.yml Add Cirrus CI integration 2019-10-16 13:52:36 +02:00
collector_bmc.go The great refactoring 2021-06-01 22:38:23 +02:00
collector_chassis.go The great refactoring 2021-06-01 22:38:23 +02:00
collector_dcmi.go The great refactoring 2021-06-01 22:38:23 +02:00
collector_ipmi.go The great refactoring 2021-06-01 22:38:23 +02:00
collector_sel.go The great refactoring 2021-06-01 22:38:23 +02:00
collector_sm_lan_mode.go The great refactoring 2021-06-01 22:38:23 +02:00
collector.go The great refactoring 2021-06-01 22:38:23 +02:00
config.go The great refactoring 2021-06-01 22:38:23 +02:00
CONTRIBUTING.md Initial public release 2018-05-24 16:28:06 +02:00
docker-compose.yml Added Dockerfile and docker-compose.yml 2019-10-11 22:38:21 +03:00
Dockerfile change builder version 2021-02-20 12:18:54 +09:00
go.mod Update deps 2021-05-11 18:37:08 +02:00
go.sum Update deps 2021-05-11 18:37:08 +02:00
ipmi_local.yml Misc doc fixes for README and example configs 2020-07-26 17:16:30 +02:00
ipmi_remote.yml The great refactoring 2021-06-01 22:38:23 +02:00
LICENSE Update license text 2019-10-16 13:52:36 +02:00
main.go The great refactoring 2021-06-01 22:38:23 +02:00
Makefile Do not make all targets phony 2019-10-18 15:06:28 +02:00
Makefile.common Update Makefile.common to latest version 2020-07-26 17:42:06 +02:00
README.md The great refactoring 2021-06-01 22:38:23 +02:00

Prometheus IPMI Exporter

Build Status

This is an IPMI exporter for Prometheus.

It supports both the regular /metrics endpoint, exposing metrics from the host that the exporter is running on, as well as an /ipmi endpoint that supports IPMI over RMCP - one exporter running on one host can be used to monitor a large number of IPMI interfaces by passing the target parameter to a scrape.

The exporter relies on tools from the FreeIPMI suite for the actual IPMI implementation.

Installation

For most use-cases, simply download the the latest release.

Building from source

You need a Go development environment. Then, simply run make to build the executable:

make

This uses the common prometheus tooling to build and run some tests.

Alternatively, you can use the standard Go tooling, which will install the executable in $GOPATH/bin:

go get github.com/soundcloud/ipmi_exporter

Building a Docker container

You can build a Docker container with the included docker make target:

make docker

This will not even require Go tooling on the host. See the included docker compose example for how to use the resulting container.

Running

A minimal invocation looks like this:

./ipmi_exporter

Supported parameters include:

  • web.listen-address: the address/port to listen on (default: ":9290")
  • config.file: path to the configuration file (default: none)
  • freeipmi.path: path to the FreeIPMI executables (default: rely on $PATH)

For syntax and a complete list of available parameters, run:

./ipmi_exporter -h

Make sure you have the following tools from the FreeIPMI suite installed:

  • ipmimonitoring/ipmi-sensors
  • ipmi-dcmi
  • ipmi-raw
  • bmc-info
  • ipmi-sel
  • ipmi-chassis

Running as unprivileged user

If you are running the exporter as unprivileged user, but need to execute the FreeIPMI tools as root, you can do the following:

  1. Add sudoers files to permit the following commands
    ipmi-exporter ALL = NOPASSWD: /usr/sbin/ipmimonitoring,\
                                  /usr/sbin/ipmi-sensors,\
                                  /usr/sbin/ipmi-dcmi,\
                                  /usr/sbin/ipmi-raw,\
                                  /usr/sbin/bmc-info,\
                                  /usr/sbin/ipmi-chassis,\
                                  /usr/sbin/ipmi-sel
    
  2. In your module config, override the collector command with sudo for every collector you are using and add the actual command as custom argument. Example for the "ipmi" collector:
    collector_cmd:
      ipmi: sudo
    custom_args:
      ipmi:
      - "ipmimonitoring"
    
    See the last module in the example config.

Running in Docker

NOTE: you should only use Docker for remote metrics.

See Building a Docker container and the example docker-compose.yml. Edit the ipmi_remote.yml file to configure IPMI credentials, then run with:

sudo docker-compose up -d

By default, the server will bind on 0.0.0.0:9290.

Configuration

The configuration document describes both the configuration of the IPMI exporter itself as well as providing some guidance for configuring the Prometheus server to scrape it.

Exported data

For a description of the metrics that this exporter provides, see the metrics document.