Skip to content

Commit

Permalink
Fix for #55: pg_stat_get_wal not supported in Aurora
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevan committed Nov 3, 2022
1 parent 1312691 commit 3ecd1c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions collector/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,12 @@ func (c *collector) getBloat() {
}

func (c *collector) getWAL() {
// skip if Aurora, because the function errors out with:
// "Function pg_stat_get_wal() is currently not supported for Aurora"
if c.isAWSAurora() {
return
}

ctx, cancel := context.WithTimeout(context.Background(), c.timeout)
defer cancel()

Expand Down

0 comments on commit 3ecd1c9

Please sign in to comment.