<p>I am using istio.1.6 and i was trying to store metrics from istio prometheus to external prometheus based on <a href="https://istio.io/docs/ops/best-practices/observability/" rel="nofollow noreferrer">istio best practise doc</a>.But in the first step, I have to edit my configuration and add recording rules.I tried to edit the configmap of istio prometheus and added the recording rules.Edit is successful but when i try to see the rules in prometheus dashboard ,they donot appear(which i believe means the config didnot apply).I also tried to just delete the  pod and see if the new pod has new configurations but still the problem.
What am i doing wrong? Any suggestions and answers is appreciated.</p>

sachin
<p>The problem was that the way I added the recording rules.I added rules in rules.yaml but forgot to mention it in rule_files field of the prometheus config file.I didn't know how to do prometheus configuration and that was the problem.</p>

<p>I also refered this github <a href="https://github.com/jotak/istio-federated-prometheus/blob/master/istio-prometheus-cm-1.yaml" rel="nofollow noreferrer">example</a></p>

<p>Also check out this <a href="https://medium.com/kialiproject/kiali-with-production-scale-prometheus-c53ddfa20570" rel="nofollow noreferrer">post</a> on prometheus federation</p>
