britcey / nutanix-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running the exporter

nutanix_exporter -nutanix.url https://nutanix_cluster:9440 -nutanix.username <user> -nutanix.password <password>

localhost:9405/metrics

Running exporter with different sections

nutanix_exporter -nutanix.conf ./config.yml

During the Query pass GET-Parameter Section

localhost:9405/metrics?section=cluster01

Config

default:
  nutanix_host: https://nutanix.cluster.local:9440
  nutanix_user: prometheus
  nutanix_password: p@ssw0rd

cluster02:
  nutanix_host: https://nutanix02.cluster.local:9440
  nutanix_user: prometheus
  nutanix_password: qwertz

Prometheus extendended Configuration

Nutanix Config:

nutanix.cluster.local:
  nutanix_host: https://nutanix.cluster.local:9440
  nutanix_user: prometheus
  nutanix_password: p@ssw0rd

nutanix02.cluster.local:
  nutanix_host: https://nutanix02.cluster.local:9440
  nutanix_user: prometheus
  nutanix_password: qwertz

Prometheus Config:

scrape_configs:
  - job_name: nutanix_export
    metrics_path: /metrics
    static_configs:
    - targets:
      - nutanix.cluster.local
      - nutanix02.cluster.local
    relabel_configs:
    - source_labels: [__address__]
      target_label: __param_section
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: instance
    - target_label: __address__
      replacement: nutanix_exporter:9405

About

License:Apache License 2.0


Languages

Language:Go 92.2%Language:Dockerfile 4.0%Language:Makefile 3.8%