HMC

HMC & CMC

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  Performance metrics from your HMC to Prometheus

    Posted Tue November 05, 2024 04:00 AM

    Hi,

    For those of you who are using Prometheus.

    I have updated my opensource tool (HMC performance metrics exporter) to allow Prometheus to scrape metrics data.

    More info: https://github.com/mnellemann/hmci

    Feedback always welcome :)



    ------------------------------
    Best regards,
    Mark Nellemann
    Advisory Power Technical Specialist
    IBM Denmark
    ------------------------------


  • 2.  RE: Performance metrics from your HMC to Prometheus

    Posted Tue March 04, 2025 07:31 AM

    Hello Mark,

    thanks a lot. I just found your tool. It is great and fulfill my requirements perfectly to write these data to Prometheus.

    I installed the rpm now on SLES 15, because I couldn't download the container image. It seems to be user / password protected.
    Just one question: Why are there influxdb datasources in the Prometheus dashboards for Grafana?

    Many thanks again, great work.
    Is there a list with datapoints like for nextractplus? That would help building my own dashboards.

    kind regards



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 3.  RE: Performance metrics from your HMC to Prometheus

    Posted Tue March 04, 2025 08:18 AM

    Hi Joerg,

    Glad to hear it's useful for you :)

    The container image was created by a collegue and I'm not sure why it requires authentication. I'll ask and see if we can fix it.

    It's a mistake with the InfluxDB datasource in the in Prometheus dashboards. I haven't noticed that before now, but probably due to the fact that i created the InfluxDB dashboards long time ago and modified (a copy) for Prometheus. I will cleanup for next release.

    I don't have a list of datapoints, but the endpoint for Prometheus ( http://host-with-hmci:9040 ) will give you a list/overview of available metrics.



    ------------------------------
    Best regards,
    Mark Nellemann
    Advisory Power Technical Specialist
    IBM
    ------------------------------



  • 4.  RE: Performance metrics from your HMC to Prometheus

    Posted Wed March 05, 2025 01:39 AM

    Hi Mark,

    thanks for answering that quick.
    After checking the datapoints, I have one further question. Does hmci collect all available data? It seems there are some data missing, or I couldn't find them until now, e.g. the LPAR partition ID.

    have a great day.

    Kind regards



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 5.  RE: Performance metrics from your HMC to Prometheus

    Posted Wed March 05, 2025 03:11 AM

    Hi Joerg,

    There are some data that can't be represented for Prometheus (at least with the Prometheus SDK I'm using), which are available with InfluxDB. This is ex. LPAR name, OS and version. Basically anything not a number.

    Best regards,

    Mark



    ------------------------------
    Best regards,
    Mark Nellemann
    Advisory Power Technical Specialist
    IBM
    ------------------------------



  • 6.  RE: Performance metrics from your HMC to Prometheus

    Posted Wed March 05, 2025 05:00 AM

    Hi Mark,

    thanks for the explanation. That's a bit unsightly. I have to check if we would really need some of the missing data.
    But the partition ID is a number, isn't it? Or does it show up as string?



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 7.  RE: Performance metrics from your HMC to Prometheus

    Posted Thu March 06, 2025 03:11 AM

    Hi Joerg,

    The name of the LPAR is provided eg. ```

    partition_processor_entitled_units{partition="Alma-Image-100g-0171cf4e-00000011",system="Server-9009-42A-SN21F64EV"} 0.5

    If you are referring to the numeric ID of the Partition it could be included.

    https://github.com/mnellemann/hmci/blob/main/src/test/resources/pcm-data-logical-partition.json#L41

    But this ID will change when/if you LPM your partition, so I'm not sure it's useful ?



    ------------------------------
    Best regards,
    Mark Nellemann
    Advisory Power Technical Specialist
    IBM
    ------------------------------