# How to use postgresql as backend?

**URL:** <https://community.netdata.cloud/t/how-to-use-postgresql-as-backend/758>\
**Category:** Help\
**Tags:** agent\
**Created:** [January 12, 2021, 1:03am UTC](https://community.netdata.cloud/t/how-to-use-postgresql-as-backend/758 "2021-01-12T01:03:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleotiger](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/oleotiger/32/313_2.png) [@oleotiger](https://community.netdata.cloud/u/oleotiger)\
**Post date:** [January 12, 2021, 1:03am UTC](https://community.netdata.cloud/t/how-to-use-postgresql-as-backend/758/1 "2021-01-12T01:03:42Z")

</div>

I have tried postgresql as backend for storing metrics with `Prometheus remote write providers`. But there is no data shown in my database. Here is my question:

Prometheus remote write API with storage providers. Here storage providers list all available database including [PostgreSQL/TimescaleDB](https://github.com/timescale/promscale). I go into this link but find that this provider is supported for TimescaleDB, not native postgresql.

But in this link [Export metrics to external time-series databases | Learn Netdata](https://learn.netdata.cloud/docs/export/external-databases#supported-databases), it shows that postgresql is supported.

Which storage provider should I use if I wanna export netdata metrics to native postgresql?

---

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [January 12, 2021, 2:34pm UTC](https://community.netdata.cloud/t/how-to-use-postgresql-as-backend/758/2 "2021-01-12T14:34:18Z")

</div>

@oleotiger asked the same question on GitHub, so I am posting here the discussion for posterity.

> <https://github.com/netdata/netdata/issues/10485>
>
> \##### Bug report summary
> https://learn.netdata.cloud/docs/export/external-datab…ases lists all supported database through connectors, including postgresql ( with Prometheus remote write).
> 
> But the \[storage providers\](https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage) show that only 
> PostgreSQL/TimescaleDB is supported. Here PostgreSQL/TimescaleDB is not the native postgresql but a time-series database with a plugin on postgresql.
> 
> So, the conclusion is that native is not supported to be the backend of netdata?
> 
> If yes, please update the document.
> If no, the \[adapter\](https://github.com/timescale/promscale) shows that it only supported timescaledb not native postgresql. How could I use native postgresql as backend of netdata?
