Text format #1200
Unanswered
tadicmarina85
asked this question in
Q&A
Text format
#1200
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use Infinity data source and https://githubtest.me.com/api/graphql within Grafana to make table dashboard.
With GraphQL query I read content of .gitmodules file for git branches.
Table have two columns: BranchName and DependentBranches
In DependentBranches column I have this value:
[submodule "Product"] path = Product url = ../Product.git branch = Release/3.7.2/Mainline/Master [submodule "Base"] path = Projects/Base url = ../Base.git branch = Release/3.7.2/Mainline/Master [submodule "ProjectBalanced"] path = Projects/ProjectBalanced url = ../ProjectBalanced.git branch = Release/3.7.2/Mainline/Master
I want to transform text to get this:
["Product"] Release/3.7.2/Mainline/Master
["Base"] Release/3.7.2/Mainline/Master
["ProjectBalanced"] Release/3.7.2/Mainline/Master
I try with 'Extract fields' transformation and 'Value Mappings' for DependentBranches column but I couldn't get what I wanted.
Is there a way I can do that somehow?
Beta Was this translation helpful? Give feedback.
All reactions