Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapcc/netapp-api-exporter
prometheus exporter for NetApp ONTAP systems
https://github.com/sapcc/netapp-api-exporter
netapp-monitoring
Last synced: 11 days ago
JSON representation
prometheus exporter for NetApp ONTAP systems
- Host: GitHub
- URL: https://github.com/sapcc/netapp-api-exporter
- Owner: sapcc
- License: apache-2.0
- Created: 2019-03-06T10:02:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:16:41.000Z (11 months ago)
- Last Synced: 2024-06-19T00:32:40.077Z (5 months ago)
- Topics: netapp-monitoring
- Language: Go
- Homepage:
- Size: 3.48 MB
- Stars: 31
- Watchers: 44
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Netapp API Exporter
Prometheus exporter for Netapp ONTAP API (not the ONTAP REST API). The package
is tested against ONTAP version 9.2 and up. It fetches data from Netapp's filer
and exports them as prometheus metrics.## Usage
This collector includes three groups of metrics: volume metrics, aggregate
metrics and system info metrics. See below section for a complete list of
metrics. Each group can be disabled with the --no- flag.### CLI Flags
```
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-c, --config="" Config file
-l, --listen="0.0.0.0" Listen address
-d, --debug Debug mode
-v, --volume-fetch-period=2m Period of asynchronously fetching volumes
--no-aggregate Disable aggregate collector
--no-volume Disable volume collector
--no-system Disable system collector
```### Configuration
A configuration file needs to be provided via the `-c` or `--config` flag. By
default, the collector tries to use the "./netapp_filers.yaml". It should be a
yaml file with list of filer definitions with following fields.```
- name: netapp-123
host: netapp-123.labx.company
availability_zone: az-a
username:
password:
```The `username` and `password` field can be omitted in the yaml file, and set via
the env variables `NETAPP_USERNAME` and `NETAPP_PASSWORD`.## Metrics
**Volume Metrics** with labels `availability_zone`, `filer`, `project_id`,
`share_id`, `volume`, `vserver` and `snapshot_policy`. 1- netapp_volume_state 2
- netapp_volume_total_bytes
- netapp_volume_used_bytes
- netapp_volume_available_bytes
- netapp_volume_snapshot_used_bytes
- netapp_volume_snapshot_reserved_bytes
- netapp_volume_snapshot_available_bytes
- netapp_volume_percentage_snapshot_reserve
- netapp_volume_used_percentage
- netapp_volume_compression_saved_bytes
- netapp_volume_deduplication_saved_bytes
- netapp_volume_total_saved_bytes
- netapp_volume_compression_saved_percentage
- netapp_volume_deduplication_saved_percentage
- netapp_volume_total_saved_percentage
- netapp_volume_is_encrypted
- netapp_volume_inode_files_total
- netapp_volume_inode_files_used
- netapp_volume_inode_files_used_percentage1 The label `project_id` is openstack specific, and `share_id` is
openstack manila specific.2 The metric netapp_volume_state being 1 means "online"; being -1
means "offline".**Aggregate Metrics** with labels `availability_zone`, `filer`, `node` and
`aggregate`.- netapp_aggregate_total_bytes
- netapp_aggregate_used_bytes
- netapp_aggregate_available_bytes
- netapp_aggregate_used_percentage
- netapp_aggregate_physical_used_bytes
- netapp_aggregate_physical_percentage
- netapp_aggregate_is_encrypted**System Metrics** with labels `availability_zone` and `filer`.
- netapp_filer_system_version
## Version
Code is currently on v2, and is largely refactored to make extension easier. Old
version is available under tag
[v1](https://github.com/sapcc/netapp-api-exporter/releases/tag/v1).