Skip to content

Commit

Permalink
some modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias committed Mar 2, 2023
1 parent 962e863 commit a0dac1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker/postgres-stage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ RUN ${PACKAGER} -y update && ${PACKAGER} -y install --nodocs \
busybox \
dpkg \
jq \
rsync \
&& ${PACKAGER} -y clean all;


Expand Down Expand Up @@ -217,7 +218,7 @@ RUN mkdir /package && cd /package && wget http://smarden.org/runit/runit-2.1.2.
RUN ln -s /usr/local/bin/dumb-init /usr/bin/dumb-init && ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir

# Clean Up git-repos
RUN rm -rf /pgextwlist /pg_stat_kcache /package /oracle_fdw /pgnodemx \
RUN rm -rf /pgextwlist /pg_stat_kcache /oracle_fdw /pgnodemx \
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;

# Clean Up Packages
Expand All @@ -234,7 +235,7 @@ ARG TIMESCALEDB

EXPOSE 5432 8008 8080
ENV LC_ALL=en_US.utf-8 \
PATH=$PATH:/usr/pgsql-$PGVERSION/bin \
PATH=$PATH:/usr/pgsql-$PGVERSION/bin \
PGHOME=/home/postgres \
RW_DIR=/run \
TIMESCALEDB=$TIMESCALEDB \
Expand Down
4 changes: 3 additions & 1 deletion scripts/exporter/structure.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

# User
CREATE ROLE postgres_exporter with password 'password';
ALTER ROLE postgres_exporter login;

GRANT pg_monitor TO postgres_exporter;
GRANT SELECT ON TABLE pg_authid TO postgres_exporter;

# Structure
// Structure

CREATE SCHEMA exporter;

Expand Down

0 comments on commit a0dac1c

Please sign in to comment.