# Adding json datasource

**URL:** <https://community.grafana.com/t/adding-json-datasource/69376>\
**Category:** Configuration\
**Tags:** json, json-api-datasource\
**Created:** [July 26, 2022, 1:41am UTC](https://community.grafana.com/t/adding-json-datasource/69376 "2022-07-26T01:41:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevindecker](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kevindecker](https://community.grafana.com/u/kevindecker)\
**Post date:** [July 26, 2022, 1:41am UTC](https://community.grafana.com/t/adding-json-datasource/69376/1 "2022-07-26T01:41:36Z")

</div>

Hoping to get some better direction here. I have a JSON datasource that I’m working on configuring on our instance, all it needs to do is read a file on the filesystem and we’ll setup the query/alerting. The file is a json file living on the filesystem however I can’t determine how the URL should be configured on the datasource so it can access the file on the local system. Any help would be greatly appreciated.

---

<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:** [July 26, 2022, 1:43am UTC](https://community.grafana.com/t/adding-json-datasource/69376/2 "2022-07-26T01:43:10Z")

</div>

Welcome

none of the plugins can access file on disk for obvious reasons. what is the source of this json file? How is it generated?

---

<div class="post-metadata">

**Author:** ![kevindecker](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kevindecker](https://community.grafana.com/u/kevindecker)\
**Post date:** [July 26, 2022, 1:55am UTC](https://community.grafana.com/t/adding-json-datasource/69376/3 "2022-07-26T01:55:32Z")

</div>

The json is created by a constantly updating service to show its current status in a date/time format, I was attempting to pull in the json so we could monitor the status because if we reach a certain threshold say 15 minutes or so behind present date/time then we need to take action.

---

<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:** [July 26, 2022, 1:57am UTC](https://community.grafana.com/t/adding-json-datasource/69376/4 "2022-07-26T01:57:48Z")

</div>

And this service you speak of is what service. Maybe you can directly plugin the end point of that service so that grafana can consume it. If you can share what service it is we might point you in the right direction otherwise it would be shooting in the dark.

again you cant read a json file directly from grafana unless you somehow serve it using nodejs for example.
