/nsxt_exporter

Simple server that scrapes NSX-T stats and exports them via HTTP for Prometheus consumption

Primary LanguageGoApache License 2.0Apache-2.0

CI Go Report Card Docker Pulls License

NSX-T Exporter for Prometheus

Simple server that scrapes NSX-T stats and exports them via HTTP for Prometheus consumption.

Getting Started

To run it:

./nsxt_exporter [flags]

Help on flags:

./nsxt_exporter --help

For more information check the source code documentation.

Usage

Specify host URI for the NSX API using the --nsxt.host flag. Add the credentials as well by using --nsxt.username and --nsxt.password flags:

./nsxt_exporter --nsxt.host localhost --nsxt.username user --nsxt.password password

Certificate validation is disabled by default, but you can enable it using the --nsxt.insecure=false flag:

./nsxt_exporter --nsxt.host localhost --nsxt.username user --nsxt.password password --nsxt.insecure=false

Docker

To run the nsx-t exporter as a Docker container, run:

docker run -p 9744:9744 cloudnativeid/nsxt-exporter-linux-amd64:latest --nsxt.host localhost --nsxt.username user --nsxt.password password

Building

make build

Testing

make test

License

Apache License 2.0, see LICENSE.