Extracted row matching function and added comments
Extracted row matching function and added comments

grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana