Annotations not shown if the end time is not in current time range

  • What Grafana version and what operating system are you using?
    Grafana 10.4.1 on Ubuntu 22.04 5.15.0-88-generic

  • What are you trying to achieve?
    Show time regions in panel so we can highlight cirtical working hours.

  • How are you trying to achieve it?


    I refer to this doc : Annotate visualizations | Grafana documentation

  • What happened?


  • What did you expect to happen?
    Is it possible to display the highlighted time regions normally regardless of the current dashboard time range? Just like the sample in user guide :

  • Can you copy/paste the configuration(s) that you are having problems with?

      "list": [
        {
          "builtIn": 1,
          "datasource": {
            "type": "grafana",
            "uid": "-- Grafana --"
          },
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "type": "dashboard"
        },
        {
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "enable": true,
          "iconColor": "red",
          "name": "working hours",
          "target": {
            "application": {
              "filter": ""
            },
            "fromAnnotations": true,
            "group": {
              "filter": ""
            },
            "host": {
              "filter": ""
            },
            "options": {
              "hideAcknowledged": false,
              "minSeverity": 0,
              "showHostname": false,
              "showOkEvents": false
            },
            "queryType": "timeRegions",
            "timeRegion": {
              "from": "09:00",
              "timezone": "browser",
              "to": "15:30"
            },
            "trigger": {
              "filter": ""
            }
          }
        }
      ]
    },```
    
    
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No

  • Did you follow any online instructions? If so, what is the URL?
    Annotate visualizations | Grafana documentation