Skip to content

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

License

Notifications You must be signed in to change notification settings

gojek/nsxt_exporter

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages