Replies: 2 comments 1 reply
-
The feature is supported. You can use local g = import "github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet"
local table = g.panel.table.new("Title")
+ g.panel.table.withTransformations(
g.panel.table.queryOptions.transformations. ...
)
|
Beta Was this translation helpful? Give feedback.
1 reply
-
You could create a Dashboard in Grafana UI with all the transformations you need and then at the JSON model from the Grafana UI.
The JSON model will have the identifier for the transformer and other details
…________________________________
From: Shoma Kokuryo ***@***.***>
Sent: Wednesday, May 8, 2024 6:09:17 AM
To: grafana/grafonnet ***@***.***>
Cc: ragul balaji ravichandran ***@***.***>; Comment ***@***.***>
Subject: Re: [grafana/grafonnet] Is the 'Transform data' feature supported? (Discussion #198)
Thank you for your reply.
I am still unsure of the identifier of the transformer and the schema of the corresponding options.
The Grafana documentation assumes a GUI and does not seem to mention anything about representation as JSON.
It would be nice to know the documentation on these, code to refer to, etc. ......
—
Reply to this email directly, view it on GitHub<#198 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC73LN5GD5IOWHKDRUDX633ZBFX3LAVCNFSM6AAAAABG5QGLKKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGNBYGI4DE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Grafana provides powerfull way to manipulate data before visualizing it, called 'Transform data'.
https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/
I use this feature a lot in my dashboards (especially when using tables).
I found a PR in the grafonnet-lib that would support this.
grafana/grafonnet-lib#265
And
withTransformations
seems to be available in Grafonnet.https://grafana.github.io/grafonnet/API/panel/table/index.html#fn-queryoptionswithtransformations
However, I have not found any examples or documentation of its use.
Is this feature what I am looking for? And how would I use it?
Beta Was this translation helpful? Give feedback.
All reactions