enix / hpmsa_exporter

Prometheus exporter for HP MSA storage SAN
https://enix.io
MIT License
23 stars 13 forks source link

Prometheus job #1

Closed agustinlacorazza closed 4 years ago

agustinlacorazza commented 4 years ago

HI could you add the Prometheus configuration that you are using to connect to your service?

Thanks!

NaPs commented 4 years ago

Hi Agustin,

Here is the prom config I use for this exporter:

- job_name: 'msa'
  scrape_interval: 60s
  metrics_path: /metrics
  scheme: http
  file_sd_configs:
  - files:
    - '/etc/prom-conf/targets/msa/*.json'

And here is an example of target json:

[
  {
    "targets": [ 
      "1.2.3.4:8000" ],
    "labels": {
      "env": "prod",
      "job": "msa",
      "name": "storage-x"
    }
  }
]

Is this helping you?

Antoine

agustinlacorazza commented 4 years ago

Yes, it's great! Thanks!