Simplfied loops and functions
Simplfied loops and functions

Signed-off-by: Goutham Veeramachaneni <caf616f34019d2c106581c18639c41d1bae35076@iith.ac.in>

keegancsmith/prometheus,kangwoo/prometheus,alileza/prometheus,GoogleCloudPlatform/prometheus,prometheus/prometheus,kangwoo/prometheus,Gouthamve/tsdb,prometheus/prometheus,keegancsmith/prometheus,GoogleCloudPlatform/prometheus,Gouthamve/prometheus,Gouthamve/prometheus,keegancsmith/prometheus,kangwoo/prometheus,Gouthamve/prometheus,prometheus/prometheus,kangwoo/prometheus,prometheus/prometheus,GoogleCloudPlatform/prometheus,prometheus/prometheus,keegancsmith/prometheus,keegancsmith/prometheus,GoogleCloudPlatform/prometheus,alileza/prometheus,alileza/prometheus,Gouthamve/prometheus,GoogleCloudPlatform/prometheus,prometheus/tsdb,alileza/prometheus,alileza/prometheus