vi harvest.yml
Admin:
Listen address for Prometheus HTTP service discovery end-point
The endpoint is reachable at SCHEMA://<listen>/api/v1/sd
Should be one of: localhost:port, :port, or ip:port
httpsd:
listen: :8887
# listen: localhost:8887
# Basic auth for - /api/v1/sd
auth_basic:
username: admin
password: admin
# create self-signed certs with 'bin/harvest admin tls create server'
# tls:
# cert_file: cert/admin-cert.pem
# key_file: cert/admin-key.pem
Tools:
grafana_api_token: 'aaa-bbb-ccc-ddd'
autosupport_disabled: true
Exporters:
prometheus:
exporter: Prometheus
local_http_addr: 0.0.0.0
port: 12990
prometheus1:
exporter: Prometheus
port_range: 13000-14000
Defaults:
collectors:
- Zapi
- ZapiPerf
- Ems
use_insecure_tls: false
Pollers:
This is an optional poller that provides stats about harvest itself.
To remove it, simply delete the "unix" section
add your cDOT / 7Mode pollers below, example:
cluster-01:
datacenter: DC-01
addr: 172.23.140.201
auth_style: basic_auth
credentials_file: path/to/credentials.yml # read credentials from the file
username: admin
password: netapp123
use_insecure_tls: true # Disable TLS verification when connecting to ONTAP cluster
exporters:
- prometheus
no need to add collectors, since they're already defined in Defaults
example with certificate authentication
cluster-01:
datacenter: DC-01
addr: 10.0.0.2
auth_style: certificate_auth
ssl_cert: /path/to/cert.pem
ssl_key: /path/to/key.key
ca_cert: /path/to/server.crt