Skip collecting wal if db is aurora #55
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
I'm was trying to run pgmetrics from linux to get metrics for our AWS RDS Aurora Cluster (14.4), but I was getting the following fatal error when trying to do so.
Aurora not supporting wal metrics seems to be a known issue for pgmetrics, see below:
pgmetrics/collector/collect.go
Lines 854 to 860 in 35516b5
After some investigation, I found that the error was being raised by the
getWal()
function, which is missing thec.isAWSAurora()
check.pgmetrics/collector/collect.go
Lines 2417 to 2436 in 35516b5
I recompiled locally with the check and it fixed my issue.
The call to the
getWal()
function has been introduced more than a year ago. I couldn't find any related issues in the repo, am I the first one to have this issue?