Unified alerting - Need a way to restrict alerts by context

  • What is your Grafana version?
    8.3.6
  • Are you using Grafana Cloud or self-hosted Grafana?
    Grafana OSS on Openshift cluster
  • Are you using legacy alerting or Unified Alerting?
    Unified Alerting
  • What are you trying to achieve?
    Trying to restrict/filter alerts by context from datasource yaml configs
  • How are you trying to achieve it?
    Tried to use customQueryParameters in jsonData section
  • What happened?
    Solution above didn’t work for me still showing all the alerts from all contexts
  • What did you expect to happen?
    To find a way of filtering alerts by context in provisioned alertmanager datasource if it is supported