Webhook as a datasource for visualization

Is it possible to use a webhook as a datasource on Grafana Cloud either natively or via a plugin for visualization? I’m trying to display data emitted from an API on some dashboards. I’ve seen plugins that can poll an endpoint like Infinity and the webhook feature for alerting, but neither of those would allow me to use a webhook datasource directly on a dashboard.

welcome @jberi

does the webhook provide a rest api endpoint? if so what does one sample data look like and how would you access the webhook api?

Glad to be here! The platform is Golioth and you are able to register webhook destinations. The data is unstructured JSON, so it can be customized as needed.

If it was supported I would expect that Grafana Cloud or the plugin would generate a unique endpoint for my datasource and than use that at the source (Golioth in this case.) You can see an example of how Zapier supports webhooks here.

1 Like

I see this as an output

{
  "temp": 32
}

so if the webhook can be accessed by a specific endpoint, infinity should work

Maybe I’m missing something but I don’t see where the Infinity plugin provides a webhook endpoint that I can register with Golioth. It seems to only support polling a REST API, which is not what I’m trying to accomplish.

1 Like

Correct, Infinity or Grafana doesn’t support webhooks.

You can write own plugin which will create a webbook, but then you will have a problem in Grafana cloud - I don’t believe that anyone will allow that kind if plugin due to security.
I would say you are asking for wrong approach: generally, save your data in some time series database and then connect Grafana to that time series database.