https://github.com/gojek/nsxt_exporter
Simple server that scrapes NSX-T stats and exports them via HTTP for Prometheus consumption
https://github.com/gojek/nsxt_exporter
Last synced: 15 days ago
JSON representation
Simple server that scrapes NSX-T stats and exports them via HTTP for Prometheus consumption
- Host: GitHub
- URL: https://github.com/gojek/nsxt_exporter
- Owner: gojek
- License: apache-2.0
- Created: 2020-05-06T03:12:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T19:14:05.000Z (about 2 years ago)
- Last Synced: 2025-03-24T13:35:58.466Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 137 KB
- Stars: 10
- Watchers: 4
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[][ci]
[][goreportcard]
[][hub]
[][license][ci]: https://github.com/gojek/nsxt_exporter/actions?query=workflow%3A%22Master+Deployment%22+branch%3Amaster
[goreportcard]: https://goreportcard.com/report/github.com/gojek/nsxt_exporter
[hub]: https://hub.docker.com/r/cloudnativeid/nsxt-exporter-linux-amd64/
[license]: https://opensource.org/licenses/Apache-2.0# 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:
```bash
./nsxt_exporter [flags]
```Help on flags:
```bash
./nsxt_exporter --help
```For more information check the [source code documentation][gdocs].
[gdocs]: http://godoc.org/github.com/gojek/nsxt_exporter
## 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:
```bash
./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:
```bash
./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:
```bash
docker run -p 9744:9744 cloudnativeid/nsxt-exporter-linux-amd64:latest --nsxt.host localhost --nsxt.username user --nsxt.password password
```### Building
```bash
make build
```### Testing
```bash
make test
```## License
Apache License 2.0, see [LICENSE](https://github.com/gojek/nsxt_exporter/blob/master/LICENSE).