Grafana alert related configuration via helm chart

Hi,

I tried to setup alert in grafana for the specific threshold , from the UI I am able to setup but I have installed grafana using helm chart and I want to provide all the alert configuration in values.yml like contact details and alert rule etc
how I can achieve this

we will need a lot more basic information in order to help you. please include things like your grafana version and any other relevant details.

also try increasing the verbosity of the Grafana server logs to debug and note any errors. For printing to console, set the console logs to debug as well.

I am using grafana version 8.5.0
I have written some rules in values.yml like for instance down or high cpu utilization.
like below and I have created contact point and notification policy using api
http://grafana.staged-by-discourse.com/api/alertmanager/grafana/config/api/v1/alerts

when I am creating alert rule via grafana UI then alert is getting triggered but when I am creating alert rule via values.yml then email is not getting triggered, and created rule is coming under mimir/cortex/loki it should come for grafana managed rule .
my requirement is to create alert rule via values.yml and that rule should be triggered without any extra manual configuration
what should be the solution for this , kindly suggest
thank you

even i have installed grafana via helm and i am using the grafana version 9.0 , and i had the same requirement to do can anybody help ??