VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

The data object data is incomplete in case if Live Measurements query is used #174

Closed abezkorovayny closed 1 year ago

abezkorovayny commented 1 year ago

Hello,

I am using Grafana's Live Measurement data source, and I would like to visualize the data with the use of DynamicTextPanel.

I found out there is a difference between the data object itself and the data object, available in the panel - the location tag is unavailable. I can see only the last item from the list and I cannot distinguish the tag for the value:

Raw data sent to stream:

weather,location=us-midwest temperature=82 1465839830100400200
weather,location=west-europe temperature=56 1465839830100400200

in addition, there is a data schema:

  {
    "schema": {
      "meta": {},
      "fields": [
        {
          "name": "time",
          "type": "time",
          "config": {}
        },
        {
          "name": "temperature",
          "type": "number",
          "config": {},
          "labels": {
            "location": "us-midwest"
          }
        },
        {
          "name": "temperature",
          "type": "number",
          "config": {},
          "labels": {
            "location": "west-europe"
          }
        }
      ]
    },

Please suggest a way to obtain all data from the Data Frame. Thank you.

abezkorovayny commented 1 year ago

In addition, the table view mode for the data source: image

mikhail-vl commented 1 year ago

@abezkorovayny Have you tried to use transformations to convert tags (labels) to fields?

Dynamic Text Panel works with fields only.

abezkorovayny commented 1 year ago

@mikhail-vl thank you for the hint. this transformation did the trick and I was finally able to see the series by labels. Thank you for your support.

mikhail-vl commented 1 year ago

@abezkorovayny Great! Let us know if there is anything else.