Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapcc/nsx-t-exporter
Prometheus NSX-T exporter
https://github.com/sapcc/nsx-t-exporter
Last synced: 11 days ago
JSON representation
Prometheus NSX-T exporter
- Host: GitHub
- URL: https://github.com/sapcc/nsx-t-exporter
- Owner: sapcc
- License: apache-2.0
- Created: 2018-10-05T13:23:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T08:08:34.000Z (22 days ago)
- Last Synced: 2024-10-29T09:25:37.168Z (22 days ago)
- Language: Go
- Size: 3.52 MB
- Stars: 14
- Watchers: 40
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus NSX-T Management Node Exporter
Exposes metrics from NSX-T Management Node REST API to a Prometheus compatible endpoint.
## Exporter Configuration
NSX-T Expoerter takes input from environment variables as:
### Mandatory Variables
- `NSXV3_LOGIN_HOST` NSX-T Manager Node hostname or IP address.
- `NSXV3_LOGIN_PORT` NSX-T Manager Node port.
- `NSXV3_LOGIN_USER` NSX-T Manager Node login user.
- `NSXV3_LOGIN_PASSWORD` NSX-T Manager Node login password.### Optional Variables
- `NSXV3_REQUESTS_PER_SECOND` (10) NSX-T Manager Node requestes per second [<100].
- `NSXV3_REQUESTS_PER_SECOND_TIMEOUT` (10) NSX-T Manager Node requestes per second timeout
- `NSXV3_SUPPRESS_SSL_WORNINGS` (false) NSX-T Manager Node disables ssl host validattion.
- `LOG_LEVEL` (debug) NSX-T Exporter logging level.## Build
```sh
git clone https://github.com/sapcc/github.com/sapcc/nsx-t-exporter.git
cd nsx-t-exporter
docker build -t .
```## Run (Simple)
Edit docker-compose.yml
```yaml
version: "2"services:
nsxv3-exporter:
tty: true
stdin_open: true
expose:
- 9191
ports:
- 9191:9191
image:
environment:
- NSXV3_LOGIN_HOST=
- NSXV3_LOGIN_PORT=
- NSXV3_LOGIN_USER=
- NSXV3_LOGIN_PASSWORD=
- NSXV3_REQUESTS_PER_SECOND=
- NSXV3_REQUESTS_PER_SECOND_TIMEOUT=
- NSXV3_CONNECTION_POOL_SIZE=
- NSXV3_REQUEST_TIMEOUT_SECONDS=
- NSXV3_SUPPRESS_SSL_WORNINGS=
- SCRAP_PORT=
- SCRAP_SCHEDULE_SECONDS=
- LOG_LEVEL=```
## Metrics
Metrics will be made available on http://:9191/metrics
Metrics export can be seen at METRICS.md