https://github.com/worteks/docker-pgexporter
OpenShift Postgres Prometheus Exporter
https://github.com/worteks/docker-pgexporter
Last synced: 10 months ago
JSON representation
OpenShift Postgres Prometheus Exporter
- Host: GitHub
- URL: https://github.com/worteks/docker-pgexporter
- Owner: Worteks
- Created: 2019-12-12T23:19:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T23:22:35.000Z (over 6 years ago)
- Last Synced: 2025-02-27T07:27:11.589Z (over 1 year ago)
- Language: Go
- Size: 3.02 MB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sweet Postgres Exporter for Prometheus
Forked from https://github.com/wrouesnel/postgres_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` | Postgres Username | undef |
| `DATA_SOURCE_PASS` | Postgres Password | undef |
| `DATA_SOURCE_HOST` | Postgres Host | undef |
| `DATA_SOURCE_DBNAME` | Postgres Database | undef |
| `DATA_SOURCE_SSL` | SSL Mode | undef |