# New Data Source: Wild GraphQL Data Source

**URL:** <https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748>\
**Category:** Share & showcase\
**Created:** [April 6, 2024, 10:16pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748 "2024-04-06T22:16:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![retrodaredevil](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@retrodaredevil](https://community.grafana.com/u/retrodaredevil)\
**Post date:** [April 6, 2024, 10:16pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/1 "2024-04-06T22:16:59Z")

</div>

Hello,

I’ve been working on a new GraphQL plugin over the last few months: [Wild GraphQL Data Source](https://github.com/wildmountainfarms/wild-graphql-datasource)

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/3/b36aa6c0693b3ffd38322095a8cc498890877406.png)

This plugin aims to make the experience of writing GraphQL queries easy, as it has a built-in GraphiQL editor with autocompletion. Partitioning by fields is done implicitly when labels are specified, which causes multiple data frames to be emitting, resulting in multiple data points on a graph.

This is similar to [GraphQL Data Source (fifemon-graphql-datasource)](https://grafana.com/grafana/plugins/fifemon-graphql-datasource/), but that has [not been updated](https://github.com/fifemon/graphql-datasource/issues/89) in some time. Please note the two plugins are not compatible, and manual migration is required if you are using fifemon-graphql-datasource and wish to migrate.

I recently submitted the plugin for review and will post updates here as I iron out any final changes I need to make before the plugin can be officially published. I have already released v1.0.0, and any additional releases can be found under [releases](https://github.com/wildmountainfarms/wild-graphql-datasource/releases).

If you wish to test the plugin now, you may do so by allowing unsigned plugins for `retrodaredevil-wildgraphql-datasource`. Edit your `grafana.ini` like so:

```ini
[plugins]
allow_loading_unsigned_plugins = retrodaredevil-wildgraphql-datasource

```

After that, install this plugin:

```auto
grafana cli --pluginUrl https://github.com/wildmountainfarms/wild-graphql-datasource/releases/download/v1.0.1/retrodaredevil-wildgraphql-datasource-1.0.1.zip plugins install retrodaredevil-wildgraphql-datasource

```

Please realize that this plugin is not yet approved by Grafana.

The [readme](https://github.com/wildmountainfarms/wild-graphql-datasource?tab=readme-ov-file#wild-graphql-data-source) best describes the features of this plugin in depth, but I’ll give some highlights here:

- This is a backend plugin, so alerts are supported
- Variables are passed as native GraphQL variables - this makes queries portable outside of Grafana and allows for the query to be checked for correctness even with variables included inside of it
- Multiple parsing options, so you can query many different things at once in a single query and specify multiple data paths
- Configure specific fields as labels for use in Standard Options \> Display Name

Please let me know if you have any questions, and feel free to [open an issue](https://github.com/wildmountainfarms/wild-graphql-datasource/issues) if you have problems.

---

<div class="post-metadata">

**Author:** ![hawarkoy](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hawarkoy](https://community.grafana.com/u/hawarkoy)\
**Post date:** [April 6, 2024, 10:42pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/2 "2024-04-06T22:42:48Z")

</div>

Hi

Thanks for sharing and updating.

We hope that Grafana approve it ASAP so we can starting migration our Dashboard to [Wild GraphQL Data Source](https://github.com/wildmountainfarms/wild-graphql-datasource)

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 6, 2024, 10:55pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/3 "2024-04-06T22:55:56Z")

</div>

> [@retrodaredevil](#):
>
> If you wish to test the plugin now

Congrats!

I am not seeing any tests in your github repo. Is that something to come in near future?

---

<div class="post-metadata">

**Author:** ![retrodaredevil](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@retrodaredevil](https://community.grafana.com/u/retrodaredevil)\
**Post date:** [April 6, 2024, 11:20pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/4 "2024-04-06T23:20:43Z")

</div>

> [@yosiasz](#):
>
> I am not seeing any tests in your github repo. Is that something to come in near future?

I have a couple of dashboards in provisioned dashboards: [wild-graphql-datasource/provisioned-dashboards at main · wildmountainfarms/wild-graphql-datasource · GitHub](https://github.com/wildmountainfarms/wild-graphql-datasource/tree/main/provisioned-dashboards)

One of those dashboards works out of the box if you were to run `npm run dev` in one terminal and `mage -v build:linux && npm run server` in another. The star wars dashboard is fully configured and is one of the dashboards I use to make sure my changes work as expected. I also use the SolarThing dashboard to test changes, but its datasource is not fully configured because there are no public SolarThing GraphQL APIs for others to test on.

Besides the default CI/CD provided by Grafana, it does not currently have any tests. This might change at some point, but with the provisioned dashboards, I find it easy to make sure everything I expect to work stays functional after I make changes.

If others are willing, I would love for others to test this plugin with their own GraphQL API, and report any difficulties they had when trying to integrate with Wild GraphQL Data Source. There are a couple of things that people might have trouble with

- The date provided by `$from` and `$to` are both numbers representing epoch milliseconds. I imagine some people’s GraphQL APIs don’t support epoch millis as input, so I want feedback on how to improve upon that
- The data source only parses time values as epoch milliseconds or as RFC339 formatted date strings

I’m expecting that there is other stuff that might make integrating this difficult.

---

<div class="post-metadata">

**Author:** ![hawarkoy](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hawarkoy](https://community.grafana.com/u/hawarkoy)\
**Post date:** [April 7, 2024, 1:00pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/5 "2024-04-07T13:00:09Z")

</div>

> [@retrodaredevil](#):
>
> If others are willing, I would love for others to test this plugin with their own GraphQL API,

I can test it if possible on Grafana Cloud.

---

<div class="post-metadata">

**Author:** ![retrodaredevil](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@retrodaredevil](https://community.grafana.com/u/retrodaredevil)\
**Post date:** [April 7, 2024, 8:04pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/6 "2024-04-07T20:04:00Z")

</div>

Yeah you can absolutely give it a shot! I don’t really know anything about installing unsigned plugins to Grafana Cloud instances, so that’ll be up to you to figure out if you go down that route. It might be as easy as editing `grafana.ini` and running that command like I described.

---

<div class="post-metadata">

**Author:** ![retrodaredevil](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@retrodaredevil](https://community.grafana.com/u/retrodaredevil)\
**Post date:** [April 17, 2024, 4:14pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/7 "2024-04-17T16:14:08Z")

</div>

This data source is officially released now! [Wild GraphQL Data Source plugin for Grafana | Grafana Labs](https://grafana.com/grafana/plugins/retrodaredevil-wildgraphql-datasource/)

---

<div class="post-metadata">

**Author:** ![hawarkoy](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hawarkoy](https://community.grafana.com/u/hawarkoy)\
**Post date:** [April 21, 2024, 7:14pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/8 "2024-04-21T19:14:35Z")

</div>

@retrodaredevil Ain’t beautiful 😉  
Converted and working as fine.

 ![tibber-new](https://us1.discourse-cdn.com/grafana/original/3X/4/2/42b048dd28712beb0e821be3bc9335e2b84b7d83.jpeg)  
[17008 Tibber](https://grafana.com/grafana/dashboards/17008-tibber/)

---

<div class="post-metadata">

**Author:** ![retrodaredevil](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@retrodaredevil](https://community.grafana.com/u/retrodaredevil)\
**Post date:** [April 21, 2024, 10:58pm UTC](https://community.grafana.com/t/new-data-source-wild-graphql-data-source/118748/9 "2024-04-21T22:58:43Z")

</div>

Really glad to hear that it’s working well for you! Let me know if you have any feedback to make the data source better.
