NOTE: pg_stat_bgwriter counter metrics had the `_total` suffix added #556 * [CHANGE] refactor pg_stat_bgwriter metrics into standalone collector #556 * [FEATURE] Add pg_database collector #613 * [ENHANCEMENT] Add pg_database_size_bytes metric #613 * [BUGFIX] Avoid parsing error from bogus Azure Flexible Server custom GUC #587 * [BUGFIX] Fix pg_stat_archiver error in 9.4 and earlier. #599 * [BUGFIX] Sanitize setting values because of Aurora irregularity #620 Signed-off-by: SuperQ <superq@gmail.com>
103 lines
2.3 KiB
YAML
103 lines
2.3 KiB
YAML
---
|
|
version: 2.1
|
|
|
|
orbs:
|
|
prometheus: prometheus/prometheus@0.16.0
|
|
|
|
executors:
|
|
# This must match .promu.yml.
|
|
golang:
|
|
docker:
|
|
- image: cimg/go:1.18
|
|
|
|
jobs:
|
|
test:
|
|
executor: golang
|
|
|
|
steps:
|
|
- prometheus/setup_environment
|
|
- run: make
|
|
- prometheus/store_artifact:
|
|
file: postgres_exporter
|
|
|
|
integration:
|
|
docker:
|
|
- image: cimg/go:1.18
|
|
- image: << parameters.postgres_image >>
|
|
environment:
|
|
POSTGRES_DB: circle_test
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: test
|
|
|
|
parameters:
|
|
postgres_image:
|
|
type: string
|
|
|
|
environment:
|
|
DATA_SOURCE_NAME: 'postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable'
|
|
GOOPTS: '-v -tags integration'
|
|
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker
|
|
- run: docker version
|
|
- run: make build
|
|
- run: make test
|
|
|
|
workflows:
|
|
version: 2
|
|
postgres_exporter:
|
|
jobs:
|
|
- test:
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
- integration:
|
|
matrix:
|
|
parameters:
|
|
postgres_image:
|
|
- circleci/postgres:10
|
|
- circleci/postgres:11
|
|
- circleci/postgres:12
|
|
- circleci/postgres:13
|
|
- cimg/postgres:14.1
|
|
- prometheus/build:
|
|
name: build
|
|
parallelism: 3
|
|
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
|
|
filters:
|
|
tags:
|
|
ignore: /^v.*/
|
|
branches:
|
|
ignore: /^(main|master|release-.*|.*build-all.*)$/
|
|
- prometheus/build:
|
|
name: build_all
|
|
parallelism: 12
|
|
filters:
|
|
branches:
|
|
only: /^(main|master|release-.*|.*build-all.*)$/
|
|
tags:
|
|
only: /^v.*/
|
|
- prometheus/publish_master:
|
|
context: org-context
|
|
docker_hub_organization: prometheuscommunity
|
|
quay_io_organization: prometheuscommunity
|
|
requires:
|
|
- test
|
|
- build_all
|
|
filters:
|
|
branches:
|
|
only: master
|
|
- prometheus/publish_release:
|
|
context: org-context
|
|
docker_hub_organization: prometheuscommunity
|
|
quay_io_organization: prometheuscommunity
|
|
requires:
|
|
- test
|
|
- build_all
|
|
filters:
|
|
tags:
|
|
only: /^v.*/
|
|
branches:
|
|
ignore: /.*/
|