# How to configure Grafana data source

**URL:** <https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217>\
**Category:** crowdsec\
**Created:** [July 9, 2021, 6:15pm UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217 "2021-07-09T18:15:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenroh](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/stevenroh/32/126_2.png) [@stevenroh](https://discourse.crowdsec.net/u/stevenroh)\
**Post date:** [July 9, 2021, 6:15pm UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217/1 "2021-07-09T18:15:22Z")

</div>

Hello,

I’m trying to configure the Grafana data source. I tried many URLs but none of them are working.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/crowdsec/original/1X/2550a9cdf6943f756a8e0a786c7ed758a926d040.png) → **HTTP error Not Found**

Has anyone set it up correctly?

Does prometheus expose only /metrics or others endpoints ?

Thanks,  
Regards

---

<div class="post-metadata">

**Author:** ![he2ss](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/he2ss/32/95_2.png) [@he2ss](https://discourse.crowdsec.net/u/he2ss)\
**Post date:** [July 12, 2021, 8:40am UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217/2 "2021-07-12T08:40:49Z")

</div>

Hi @stevenroh,

Crowdsec doesn’t expose prometheus server but prometheus exporter. So you need to have a prometheus server that will scrape crowdsec exporter and then connect grafana to your prometheus server.

---

<div class="post-metadata">

**Author:** ![stevenroh](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/stevenroh/32/126_2.png) [@stevenroh](https://discourse.crowdsec.net/u/stevenroh)\
**Post date:** [July 12, 2021, 9:02am UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217/3 "2021-07-12T09:02:14Z")

</div>

Hi @he2ss  
Thanks for the clarification, this makes sense now ! I misunderstood

---

<div class="post-metadata">

**Author:** ![elmor](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@elmor](https://discourse.crowdsec.net/u/elmor)\
**Post date:** [July 1, 2022, 3:52pm UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217/4 "2022-07-01T15:52:52Z")

</div>

i don’t clearly understand what configurations i have to do on crowdsec and on graphana. Can i have more details?

---

<div class="post-metadata">

**Author:** ![thibault](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/thibault/32/2_2.png) [@thibault](https://discourse.crowdsec.net/u/thibault)\
**Post date:** [July 4, 2022, 7:34am UTC](https://discourse.crowdsec.net/t/how-to-configure-grafana-data-source/217/5 "2022-07-04T07:34:37Z")

</div>

Here you go : [Prometheus | CrowdSec](https://doc.crowdsec.net/docs/next/observability/prometheus/#exploitation-with-prometheus-server--grafana)
