Targetfull bug in json data?

Hello,

I’m having some troubles in a behaviour graafana has concerning the json data ( same behaviour in web “json export” or in API requests of json data).

targetfull ( field should contain the complete metric without #
I show you the content of json panel, take a look at the #A, #B, #C and finally the targetfull of #A,#B:

  "targets": [
    {
      "hide": true,
      "refId": "A",
      "target": "aliasByNode(peakflow.tmobile.uk.tx, 3)",
      "textEditor": false
    },
    {
      "hide": true,
      "refId": "C",
      "target": "alias(timeShift(peakflow.tmobile.uk.tx, '2d'), 'tx 2d')",
      "textEditor": false
    },
    {
      "hide": true,
      "refId": "B",
      "target": "aliasByNode(peakflow.tmobile.uk.rx, 3)",
      "textEditor": false
    },
    {
      "hide": true,
      "refId": "D",
      "target": "alias(timeShift(peakflow.tmobile.uk.rx, '2d'), 'rx 2d')",
      "textEditor": false
    },
    {
      "hide": true,
      "refId": "E",
      "target": "diffSeries(#A, #C)",
      "targetFull": "diffSeries(aliasByNode(peakflow.orange.francia.tx, 3), alias(timeShift(peakflow.orange.francia.tx, '2d'), 'tx 2d'))"
    },

Summing up;
#A metric:“target”: “aliasByNode(peakflow.tmobile.uk.tx, 3)”
#C metric:“target”: “alias(timeShift(peakflow.tmobile.uk.tx, ‘2d’), ‘tx 2d’)”,
#E metric:
“target”: “diffSeries(#A, #C)”,
“targetFull”: “diffSeries(aliasByNode(peakflow.orange.francia.tx, 3), alias(timeShift(peakflow.orange.francia.tx, ‘2d’), ‘tx 2d’))”

It takes the targetfull of diffSeries(#A, #C) of the First panel always. I duplicated the first panel and changed the operator ( orange-francia by tmobile).
As you can see, it works, the graphs are working, but the targetfull field is incoherent.

It happens aalso duplicating 3-4 times the panel. It seems that the targetfull instantiantion always takes the targets of first panel instead os using the ones of his own panel.

It happens with grafana 4.1 to 4.4 at least ( tested on all versions).

thanks in advance.

Can you describe the steps you took to get this error. I could not recreate this.

I tested by:

  1. duplicating a panel with subqueries by clicking on the “Duplicate” button in the panel menu.
  2. Changing the query for query “A” in the duplicated panel.
  3. Duplicating the duplicated panel.
  4. Checked the json before and after saving the dashboard. TargetFull looked correct.