Where to change response and reply format of grafana calls to backend server

I’m trying to develop a custom datasource plug in for grafana, however I’m finding the overall way information flows through the all the files in a datasource plug in difficult to understand. It would be great if someone could give a brief explanation about which functions/classes in which files of the simple json datasource need to be edited so that I can

  1. Set the format of the query from grafana to the backend server and the format of the reply from the server to grafana
  2. Whether any other changes are required to display data and graphs from the custom datasource to grafana
    I know these questions may require a little explaining, but it’s been really hard to find out what I really need to do to connect grafana to my server and the docs aren’t as helpful as I’d hoped they would be

Hi,

Have you read the documentation? Are you trying to build a complete new datasource or use the simple json datasource?

Marcus

Thanks for the reply but I already finished building it : )

2 Likes

Hello. I’m looking for the answer to the same question :frowning:
I wish to change the request format that grafana sends to the backend. It would be really helpful to me and the Grafana community if you could share the source code/snippets with a short explanation of where the changes need to be done. Thank you in advance.

I’ll probably write a blog post on this soon. I’ll share it here.

1 Like

Thank you so much for your response. Look forward to your blog post. I’m already at my wit’s end trying to figure it out.

Hi abhinavred,

Have published the blog yet? I would like to have a look at it.
Thanks.