MCPcopy Index your code
hub / github.com/MauveSoftware/ilo_exporter

github.com/MauveSoftware/ilo_exporter @v1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.4 ↗ · + Follow
111 symbols 332 edges 28 files 27 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Go Report Card

ilo_exporter

Metrics exporter for HP iLO to prometheus

Breaking changes

Beginning with version 1.0.0 the projects ilo4_exporter and ilo5_exporter were merged to ilo_exporter. Due to this change metric names are based on ilo5_exporter but were renamed to show compatiblity to both versions.

Install

go get -u github.com/MauveSoftware/ilo_exporter

Usage

Running the exporter with the following test credentials:

Username: ilo_exporter
Password: g3tM3trics

Binary

./ilo_exporter -api.username=ilo_exporter -api.password=g3tM3trics

Docker

docker run -d --restart always --name ilo_exporter -p 9545:9545 -e API_USERNAME=ilo_exporter -e API_PASSWORD=g3tM3trics mauvesoftware/ilo_exporter

Prometheus configuration

To get metrics for 172.16.0.200 using https://my-exporter-tld/metrics?host=172.16.0.200

  - job_name: 'ilo'
    scrape_interval: 300s
    scrape_timeout: 120s
    scheme: https
    static_configs:
      - targets:
          - 172.16.0.200
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_host
      - source_labels: [__param_host]
        target_label: instance
        replacement: '${1}'
      - target_label: __address__
        replacement: my-exporter-tld

Grafana

For users of Grafana, this repository includes an example dashboard and example alert rules.

License

(c) Mauve Mailorder Software GmbH & Co. KG, 2022. Licensed under MIT license.

Prometheus

see https://prometheus.io/

Extension points exported contracts — how you extend this code

ClientOption (FuncType)
ClientOption applies options to APIClient
pkg/client/api_client.go
Client (Interface)
(no doc) [2 implementers]
pkg/client/client.go

Core symbols most depended-on inside this repo

Client
called by 17
pkg/common/collector_context.go
Get
called by 14
pkg/client/client.go
Tracer
called by 13
pkg/common/collector_context.go
HostName
called by 12
pkg/client/client.go
HandleError
called by 11
pkg/common/collector_context.go
RecordMetrics
called by 8
pkg/common/collector_context.go
WaitGroup
called by 7
pkg/common/collector_context.go
isLegacy
called by 3
pkg/system/memory/memory_dimm.go

Shape

Function 45
Method 37
Struct 26
FuncType 1
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

pkg/system/memory/memory_dimm.go10 symbols
pkg/common/collector_context.go9 symbols
pkg/client/api_client.go9 symbols
pkg/system/storage/metrics.go8 symbols
tracing.go6 symbols
main.go6 symbols
pkg/system/storage/location.go5 symbols
pkg/client/dunmy_client.go5 symbols
pkg/chassis/thermal/metrics.go5 symbols
pkg/system/storage/disk_drive.go4 symbols
pkg/system/processor/metrics.go4 symbols
pkg/system/memory/metrics.go4 symbols

For agents

$ claude mcp add ilo_exporter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact