You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-11-09 05:00:59 +03:00
Merge branch 'master' of github.com:wrouesnel/postgres_exporter
This commit is contained in:
@@ -6,14 +6,17 @@ Supported Postgres versions: 9.1 and up.
|
|||||||
## Quick Start
|
## Quick Start
|
||||||
This package is available for Docker:
|
This package is available for Docker:
|
||||||
```
|
```
|
||||||
docker run -e DATA_SOURCE_NAME="login:password@(hostname:port)/dbname" -p 9113:9113 wrouesnel/postgres_exporter
|
# Start an example database
|
||||||
|
docker run --net=host -it --rm -e POSTGRES_PASSWORD=password postgres
|
||||||
|
# Connect to it
|
||||||
|
docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?sslmode=disable" -p 9113:9113 wrouesnel/postgres_exporter
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building and running
|
## Building and running
|
||||||
The default make file behavior is to build the binary:
|
The default make file behavior is to build the binary:
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
export DATA_SOURCE_NAME="login:password@(hostname:port)/dbname"
|
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
|
||||||
./postgres_exporter <flags>
|
./postgres_exporter <flags>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user