1 datasource consist metrics from 2 elastic instances - separation

  • What Grafana version and what operating system are you using?
    grafana v8.5.13
    elastic 8.9.1
  • What are you trying to achieve?
    separate data per environments
    Choose environment which I want from combo box
  • What happened?
    metrics are sum up. I want divide metrics per enviroment
  • What did you expect to happen?
    I have one elasticsearch datasource → logging. I sent to this instance metrics from prod, and staging elasticsearch instance.

How is the data differentiated in elastic?