# Can a backend app plugin talk to Prometheus Datasource?

**URL:** <https://community.grafana.com/t/can-a-backend-app-plugin-talk-to-prometheus-datasource/145893>\
**Category:** Grafana Plugin Development\
**Tags:** plugins\
**Created:** [March 9, 2025, 5:42am UTC](https://community.grafana.com/t/can-a-backend-app-plugin-talk-to-prometheus-datasource/145893 "2025-03-09T05:42:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibgy](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@vibgy](https://community.grafana.com/u/vibgy)\
**Post date:** [March 9, 2025, 5:42am UTC](https://community.grafana.com/t/can-a-backend-app-plugin-talk-to-prometheus-datasource/145893/1 "2025-03-09T05:42:45Z")

</div>

I am creating an app plugin that creates out of the box monitoring page leveraging Prometheus metrics. This app plugin has both frontend and backend components.  
Is it possible for my backend plugin to communicate with Prometheus datasource that is already configured in Grafana?

---

<div class="post-metadata">

**Author:** ![academo](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@academo](https://community.grafana.com/u/academo)\
**Post date:** [March 11, 2025, 2:45pm UTC](https://community.grafana.com/t/can-a-backend-app-plugin-talk-to-prometheus-datasource/145893/2 "2025-03-11T14:45:44Z")

</div>

You can call the query method of configured datasources from an app plugin and pass a query but you need to know the datasource uuid.

For this you can use the [DatasourcePicker](https://github.com/grafana/grafana/blob/main/packages/grafana-runtime/src/components/DataSourcePicker.tsx) component from `@grafana/runtime` to let the user select a datasource.

notice there’s no way to “push” data. you will only be able to query.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 11, 2026, 2:46pm UTC](https://community.grafana.com/t/can-a-backend-app-plugin-talk-to-prometheus-datasource/145893/3 "2026-03-11T14:46:17Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
