algenty / grafana-flowcharting

Flowcharting, plugin for Grafana to create complexe visio's draws style like technical architectures, floorplan, diagrams, hierarchical schema based on draw.io
Apache License 2.0
980 stars 149 forks source link

[Issue] "apply to metrics" field is "blank" after saving with "undefined" after performing the transformation such as "Merge" and "Group By" #308

Open takhyun-ko opened 3 years ago

takhyun-ko commented 3 years ago

I performed transformations such as "Merge" and "Group By". But I can only select "undefined" on "apply to metrics" menu of flowcharting.

It seems to work well when I select "undefined" and procced. But, When reloading the page after saving, it encounters "Blank" on "apply to metrics" field and does not work.

If you know a solution to this issue, please share it.

■ Json File Information when saving . . . "rulesData": { "rulesData": [ { "order": 1, "pattern": "/.*/", "unit": "short", "type": "number", "metricType": "table", "alias": "AAA", "column": "spent-time(reassigned)", "hidden": false, "aggregation": "avg", "decimals": 2, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "reduce": false, "dateFormat": "YYYY-MM-DD HH:mm:ss", "thresholds": [ 50, 80 ], . . .

■ Json File Information when reloading --> Unexpected "refId information" was added ("refId": "A") after reolading and "reduce" value changed from false to true . . . "rulesData": { "rulesData": [ { "order": 1, "pattern": "/.*/", "unit": "short", "type": "number", "metricType": "table", "alias": "AAA", "refId": "A", "column": "spent-time(reassigned)", "hidden": false, "aggregation": "avg", "decimals": 2, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "reduce": true, "dateFormat": "YYYY-MM-DD HH:mm:ss", "thresholds": [ 50, 80 ], . . .


My Grafana v7.3.7 (1e261642f4) Flowcharting version - 0.9.0 Datasource - Json API

ronansalmon commented 3 years ago

Grafana 8.1.2 Plugin 0.9.1 or [1.0.0b SNAPSHOT] Firefox 78-esr

Same here. I'm getting a lot of this in FF's console : GF ERROR : Metric => getName : Name is null

the datasource output is a table, not a timeseries.

ronansalmon commented 3 years ago

probably a duplicate of https://github.com/algenty/grafana-flowcharting/issues/283