https://github.com/worteks/docker-mysqlexporter
OpenShift MySQL Prometheus Exporter
https://github.com/worteks/docker-mysqlexporter
Last synced: over 1 year ago
JSON representation
OpenShift MySQL Prometheus Exporter
- Host: GitHub
- URL: https://github.com/worteks/docker-mysqlexporter
- Owner: Worteks
- Created: 2019-12-12T23:19:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T23:22:09.000Z (over 6 years ago)
- Last Synced: 2025-01-10T06:12:35.423Z (over 1 year ago)
- Language: Go
- Size: 1.45 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sweet MySQL Exporter for Prometheus
Forked from https://github.com/prometheus/mysql_exporter
Build with:
```
$ make build
```
If you want to try it quickly on your local machine after make, run:
```
$ make run
```
Start Demo in OpenShift:
```
$ make ocdemo
```
Cleanup OpenShift assets:
```
$ make ocpurge
```
Environment variables and volumes
----------------------------------
The image recognizes the following environment variables that you can set during
initialization by passing `-e VAR=VALUE` to the Docker `run` command.
| Variable name | Description | Default |
| :------------------------- | ---------------- | ------------- |
| `DATA_SOURCE_USER` | MySQL Username | undef |
| `DATA_SOURCE_PASS` | MySQL Password | undef |
| `DATA_SOURCE_HOST` | MySQL Host | undef |
| `DATA_SOURCE_PORT` | MySQL Port | `3306` |