Skip to content

Prometheus Metrics #474

@stefanhipfel

Description

@stefanhipfel

Summary

Add Prometheus Metrics for BMC/Server

Basic example

Could be added via the BMC crd:

apiVersion: metal.ironcore.dev/v1alpha1
kind: BMC
metadata:
  labels:
    app.kubernetes.io/name: bmc
    app.kubernetes.io/instance: bmc-sample
    app.kubernetes.io/part-of: metal-operator
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/created-by: metal-operator
  name: bmc-sample
spec:
  endpointRef:
    name: endpoint-sample
  bmcSecretRef:
    name: bmc-sample
  protocol:
    name: Redfish
    port: 8080
  prometheusMetrics:
    scrape: true
    path: '/data/metrics'
    port: '80'
    image: 'exporter:latest'
    

The BMC controller would create a Pod with the image and annotations provided in the spec.

Motivation

It is important to monitor bmc/server sensor information and alert on possible failures

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions