BedrockStreaming / netapp-exporter

A Prometheus NetApp exporter that exports lots of usefull metrics for both hardware state and volumes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netapp-exporter

Prometheus exporter for ONTAP 9.1 using SSH parsing.

Build

GOOS=linux GOARCH=amd64 go build -o netapp-exporter-linux-amd64

Usage

Usage of netapp-exporter:
  -config string
        Config file path (default "config.yaml")
  -listenAddress string
        Expose prometheus metrics (default "0.0.0.0")
  -listenPort int
        Expose prometheus metrics (default 9148)

Configuration

- host: "10.0.0.1"                              # Netapp Host
  port: 22                                      # Netapp SSH Port
  interval: 30                                  # Collect Interval
  username: "XXX"                               # Netapp SSH Username
  password: "XXX"                               # Netapp SSH Password
  known_hosts_file: "/root/.ssh/known_hosts"    # For Secure SSH Connection

Metrics

Ontap Metrics
network interface show netapp_network_interface_status && netapp_network_interface_is_home
network port show netapp_network_port_link_status && netapp_network_port_health
storage aggregate show-status netapp_storage_aggregate_status && netapp_storage_aggregate_physical_size && netapp_storage_aggregate_usable_size
storage disk error show netapp_storage_disk_error
system health status show netapp_system_health
volume show netapp_volume_status && netapp_volume_used_size && netapp_volume_available_size && netapp_volume_total_size
vserver show netapp_vserver_status

More about ONTAP commands

Additionnal metrics

netapp_secure_ssh : to know if secure ssh is enabled or not netapp_up : to know if ssh connection succeeded

About

A Prometheus NetApp exporter that exports lots of usefull metrics for both hardware state and volumes


Languages

Language:Go 100.0%