forked from prometheus/pushgateway
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:prometheus/pushgateway
# Conflicts: # README.md # main.go # storage/diskmetricstore.go
- Loading branch information
Showing
887 changed files
with
242,445 additions
and
104,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,24 @@ | ||
--- | ||
version: 2.1 | ||
|
||
orbs: | ||
prometheus: prometheus/[email protected] | ||
|
||
executors: | ||
# Whenever the Go version is updated here, .travis.yml and .promu.yml | ||
# should also be updated. | ||
# Whenever the Go version is updated here, .promu.yml should also be updated. | ||
golang: | ||
docker: | ||
- image: circleci/golang:1.11 | ||
- image: circleci/golang:1.15 | ||
|
||
jobs: | ||
test: | ||
executor: golang | ||
|
||
steps: | ||
- checkout | ||
- run: make promu | ||
- run: make check_license style unused staticcheck build test | ||
- store_artifacts: | ||
path: pushgateway | ||
destination: /build/pushgateway | ||
- run: rm -v pushgateway | ||
|
||
build: | ||
machine: true | ||
working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/pushgateway | ||
|
||
steps: | ||
- checkout | ||
- run: make promu | ||
- run: promu crossbuild -v | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- .build | ||
|
||
docker_hub_master: | ||
executor: golang | ||
|
||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- attach_workspace: | ||
at: . | ||
- run: ln -s .build/linux-amd64/pushgateway pushgateway | ||
- run: make docker | ||
- run: make docker DOCKER_REPO=quay.io/prometheus | ||
- run: docker images | ||
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD | ||
- run: docker login -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io | ||
- run: make docker-publish | ||
- run: make docker-publish DOCKER_REPO=quay.io/prometheus | ||
|
||
docker_hub_release_tags: | ||
executor: golang | ||
|
||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: mkdir -v -p ${HOME}/bin | ||
- run: curl -L 'https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2' | tar xvjf - --strip-components 3 -C ${HOME}/bin | ||
- run: echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV} | ||
- attach_workspace: | ||
at: . | ||
- run: make promu | ||
- run: promu crossbuild tarballs | ||
- run: promu checksum .tarballs | ||
- run: promu release .tarballs | ||
- store_artifacts: | ||
path: .tarballs | ||
destination: releases | ||
- run: ln -s .build/linux-amd64/pushgateway pushgateway | ||
- run: ln -s .build/linux-amd64/promtool promtool | ||
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG | ||
- run: make docker DOCKER_IMAGE_TAG=$CIRCLE_TAG DOCKER_REPO=quay.io/prometheus | ||
- run: docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD | ||
- run: docker login -u $QUAY_LOGIN -p $QUAY_PASSWORD quay.io | ||
- run: | | ||
if [[ "$CIRCLE_TAG" =~ ^v[0-9]+(\.[0-9]+){2}$ ]]; then | ||
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" | ||
make docker-tag-latest DOCKER_IMAGE_TAG="$CIRCLE_TAG" DOCKER_REPO=quay.io/prometheus | ||
fi | ||
- run: make docker-publish | ||
- run: make docker-publish DOCKER_REPO=quay.io/prometheus | ||
- prometheus/setup_environment | ||
- run: make | ||
- prometheus/store_artifact: | ||
file: pushgateway | ||
|
||
workflows: | ||
version: 2 | ||
|
@@ -91,18 +28,19 @@ workflows: | |
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
- prometheus/build: | ||
name: build | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- docker_hub_master: | ||
- prometheus/publish_master: | ||
requires: | ||
- test | ||
- build | ||
filters: | ||
branches: | ||
only: master | ||
- docker_hub_release_tags: | ||
- prometheus/publish_release: | ||
requires: | ||
- test | ||
- build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
.tarballs/ | ||
|
||
!.build/linux-amd64/ | ||
!.build/linux-armv7 | ||
!.build/linux-arm64 | ||
!.build/linux-ppc64le |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resources/static/bootstrap-4.3.1-dist/* linguist-vendored | ||
resources/static/bootstrap4-glyphicons/* linguist-vendored | ||
resources/static/jquery-3.4.1.min.js linguist-vendored | ||
vendor/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
run: | ||
modules-download-mode: vendor | ||
|
||
# Run only staticcheck for now. Additional linters will be enabled one-by-one. | ||
linters: | ||
enable: | ||
- staticcheck | ||
disable-all: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Prometheus Community Code of Conduct | ||
|
||
Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
FROM quay.io/prometheus/busybox:latest | ||
ARG ARCH="amd64" | ||
ARG OS="linux" | ||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest | ||
LABEL maintainer="The Prometheus Authors <[email protected]>" | ||
|
||
COPY pushgateway /bin/pushgateway | ||
ARG ARCH="amd64" | ||
ARG OS="linux" | ||
COPY --chown=nobody:nobody .build/${OS}-${ARCH}/pushgateway /bin/pushgateway | ||
|
||
EXPOSE 9091 | ||
RUN mkdir -p /pushgateway | ||
RUN mkdir -p /pushgateway && chown nobody:nobody /pushgateway | ||
WORKDIR /pushgateway | ||
|
||
USER 65534 | ||
|
||
ENTRYPOINT [ "/bin/pushgateway" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* Björn Rabenstein <beorn@soundcloud.com> | ||
* Björn Rabenstein <beorn@grafana.com> @beorn7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.