Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ docker run \

## Building and running

git clone https://github.com/prometheus-community/postgres_exporter.git
cd postgres_exporter
make build
./postgres_exporter <flags>
$ mkdir -p $GOPATH/src/github.com/prometheus-community
$ cd $GOPATH/src/github.com/prometheus-community
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary anymore, and not recommended. The GOPATH style is officially deprecated (Go 1.13).

$ git clone https://github.com/prometheus-community/postgres_exporter.git
$ cd postgres_exporter
$ make build
$ ./postgres_exporter <flags>

To build the Docker image:

make promu
promu crossbuild -p linux/amd64 -p linux/armv7 -p linux/amd64 -p linux/ppc64le
make docker
$ make promu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I like adding command prompts to this. I find it easier to copy-n-paste lines without them.

$ promu crossbuild -p linux/amd64 -p linux/armv7 -p linux/arm64 -p linux/ppc64le
$ make docker

This will build the docker image as `prometheuscommunity/postgres_exporter:${branch}`.

Expand Down