Skip to content

Commit

Permalink
Merge pull request #62 from cybertec-postgresql/monitoring_fix_pgback…
Browse files Browse the repository at this point in the history
…rest

Monitoring fix pgbackrest
  • Loading branch information
Schmaetz authored Nov 26, 2024
2 parents a3a1771 + 13de4eb commit 9d15392
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/cluster/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@ const (
ALTER SCHEMA exporter OWNER TO cpo_exporter;
CREATE EXTENSION IF NOT EXISTS pgnodemx with SCHEMA exporter;
alter extension pgnodemx UPDATE;
CREATE TABLE IF NOT EXISTS exporter.pgbackrestbackupinfo (
CREATE TABLE IF NOT EXISTS exporter.pgbackrestbackupinfo (
data jsonb NOT NULL,
data_time timestamp with time zone DEFAULT now() NOT NULL
)
WITH (autovacuum_analyze_scale_factor='0', autovacuum_vacuum_scale_factor='0', autovacuum_vacuum_threshold='2', autovacuum_analyze_threshold='2');
ALTER TABLE exporter.pgbackrestbackupinfo OWNER TO cpo_exporter;
GRANT pg_execute_server_program TO cpo_exporter;
CREATE OR REPLACE FUNCTION exporter.update_pgbackrest_info()
RETURNS VOID AS $$
DECLARE
Expand Down Expand Up @@ -131,7 +133,6 @@ const (
);
END;
$$ LANGUAGE plpgsql;
`
)

Expand Down

0 comments on commit 9d15392

Please sign in to comment.