netappsd

command module
v0.0.0-...-1f5c564 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

NetAppSD

NetAppSD is an automatic scaler for NetApp's Harvest exporters running in a Kubernetes cluster. It discovers NetApp filers from Netbox and starts an exporter instance for each of them.

NetAppSD operates in two modes: master and worker. The master node is responsible for discovering NetApp filers and monitoring the worker pods. It also scales the number of worker pods to match the discovered filers. The worker node runs as a sidecar in the NetApp Harvest pod, fetching the filer to scrape from the master's endpoint "/next/filer" for the Harvest exporter.

The process for assigning a filer to a worker:

  1. A worker requests the master to assign a filer to work on.
  2. The master checks which filers are already being worked on by examining the "filer" label of the worker pods.
  3. The master selects a filer that is not currently being scraped and sets the "filer" label on the requesting worker.
  4. The master returns the filer to the worker.
  5. The worker creates the configuration file for the harvest exporter.

Usage

Master

Usage:
  netappsd master [flags]

Flags:
  -h, --help                  help for master
  -l, --listen-addr string    The address to listen on (default ":8080")
      --netbox-host string    The netbox host to query (default "netbox.staging.cloud.sap")
      --netbox-token string   The token to authenticate against netbox
  -r, --region string         The region to filter netbox devices
  -t, --tag string            The tag to filter netbox devices
  -w, --worker string         The deployment name of workers
      --worker-label string   The label of worker pods

Global Flags:
  -d, --debug   Enable debug logging

Worker

Usage:
  netappsd worker [flags]

Flags:
  -h, --help                   help for worker
  -l, --listen-addr string     The address to listen on (default ":8082")
  -m, --master-url string      The url of the netappsd-master (default "http://localhost:8080")
  -o, --output-file string     The path to the output file (default "harvest.yaml")
  -t, --template-file string   The path to the template file (default "harvest.yaml.tpl")

Global Flags:
  -d, --debug   Enable debug logging

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL