Skip to content

Commit 55b2ace

Browse files
committed
Upgrade postgres_exporter to v0.7.0
1 parent 998184a commit 55b2ace

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

config/blobs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ nginx/pcre-8.43.tar.gz:
106106
size: 2085854
107107
object_id: 3653d041-229c-42ca-6df0-4e2485393c1b
108108
sha: sha256:0b8e7465dc5e98c757cc3650a20a7843ee4c3edf50aaf60bb33fd879690d2c73
109-
postgres_exporter/postgres_exporter_v0.5.1_linux-amd64.tar.gz:
110-
size: 5922452
111-
object_id: d9440f55-f807-4888-54d3-ed1b65b30c00
112-
sha: sha256:7b00cc56d83e3a8f5a58d2b0f17f12b1b3b1b1ecccffffc3e8446ff187058c0e
109+
postgres_exporter/postgres_exporter_v0.7.0_linux-amd64.tar.gz:
110+
size: 5949662
111+
object_id: 0681f912-2ffc-4f81-577a-7042252a7a3a
112+
sha: sha256:a8409e64c5f377134e15cfd40a2da973c059f0955346379606a505677354125a
113113
prometheus/prometheus-1.8.2.linux-amd64.tar.gz:
114114
size: 17748716
115115
object_id: 54fd8c7b-a676-44cd-64b2-d5788552e607

jobs/postgres_exporter/spec

+2
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ properties:
3333
postgres_exporter.auto_discover_databases:
3434
description: "Whether to discover the databases on a server dynamically"
3535
default: false
36+
postgres_exporter.exclude_databases:
37+
description: "A list of databases to remove when autoDiscoverDatabases is enabled"

jobs/postgres_exporter/templates/bin/postgres_exporter_ctl

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ case $1 in
2727
<% if_p('postgres_exporter.constant_labels') do |constant_labels| %> \
2828
--constantLabels="<%= constant_labels %>" \
2929
<% end %> \
30+
<% if_p('postgres_exporter.exclude_databases') do |exclude_databases| %> \
31+
--exclude-databases="<%= exclude_databases %>" \
32+
<% end %> \
3033
<% if_p('postgres_exporter.custom_queries') do %> \
3134
--extend.query-path="/var/vcap/jobs/postgres_exporter/config/custom_queries.sql" \
3235
<% end %> \

packages/postgres_exporter/packaging

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ cp -a ${BOSH_COMPILE_TARGET}/common/* ${BOSH_INSTALL_TARGET}/common
88

99
# Extract postgres_exporter package
1010
mkdir -p ${BOSH_INSTALL_TARGET}/bin
11-
tar xzvf ${BOSH_COMPILE_TARGET}/postgres_exporter/postgres_exporter_v0.5.1_linux-amd64.tar.gz
12-
cp -a ${BOSH_COMPILE_TARGET}/postgres_exporter_v0.5.1_linux-amd64/* ${BOSH_INSTALL_TARGET}/bin
11+
tar xzvf ${BOSH_COMPILE_TARGET}/postgres_exporter/postgres_exporter_v0.7.0_linux-amd64.tar.gz
12+
cp -a ${BOSH_COMPILE_TARGET}/postgres_exporter_v0.7.0_linux-amd64/* ${BOSH_INSTALL_TARGET}/bin

packages/postgres_exporter/spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: postgres_exporter
33

44
files:
55
- common/utils.sh
6-
- postgres_exporter/postgres_exporter_v0.5.1_linux-amd64.tar.gz
6+
- postgres_exporter/postgres_exporter_v0.7.0_linux-amd64.tar.gz

0 commit comments

Comments
 (0)