mpg-estimatorAPI as an example.
$api_namevariable with the name of the API you want to create the alert for. In our case, it's
mpg-estimator. Also, click on the eye icon to disable the query from being shown on the graph - otherwise, you'll see duplicates.
<SMTP-HOST>varies from provider to provider (e.g. Gmail's is
kubectl edit statefulset grafana(this will open a code editor). Inside the container named
containerssection), add an
envFromsection that will mount the SMTP secret. Here is an example of what it looks like after the addition:
kubectl logs -f grafana-0.