Skip to content

Proxy mode

Proxy Mode

Using NAbox proxy feature, you can access Harvest data with an external Prometheus compatible scraper.

It can be used for example to deploy NAbox in branch office, close to NetApp systems, and periodically collect metrics to a centralized Prometheus or Victoria Metrics deployment.

You can also configure a central NAbox instance to collect metrics that way, manually using the CLI.

Collecting metrics from outside NAbox

Currently, Proxy mode is only available when checking "Enable Victoria Metrics guest access" in preferences.

Then you point the prometheus scraper to https://<nabox_ip>/havrest/proxy/{port}/metrics

The {port} parameter is the Harvest poller port as defined in Harvest configuration /etc/nabox/harvest/harvest.yml, 12990 in this example :

    cluster2:
        debug: false
        port: 12990
        addr: cluster2.company.com
        collectors:
            - Zapi
            - ZapiPerf
            - Rest
        datacenter: LAB
        password: SecureP@sswd!
        use_insecure_tls: false
        username: admin
        enabled: true
        api: Auto

Configuring NAbox to collect metrics from another NAbox

First of all, make sure you have an up to date version of NAbox.

Then connect to NAbox console, and go in /etc/nabox/additional-scrapers/ directory.

Add one file per system you need to collect :

cat netapp_branch_1.yaml
- targets: ["https://nabox_in_branch_1/havrest/proxy/12001/metrics"]
  labels:
    instance: "branch1:12001"