Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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