Adding Custom Metric for prometheus

I am a beginner to Istio.

I installed Istio using this guide here

I am using demo profile. as mentioned in docs.

I am trying to add custom metric following this guide.

but the problem is I am not understanding where or which files I have to change
for me to make this work
can somebody please help