This custom metric collects the number of total WAL files present on the system. There is also a custom metric that counts the number of "unarchived" which is important as well.
To create this custom metric, create a metric of type Single Value and make it look similar to this example: