Add Prometheus metrics rules (#3651)