# Cannot access IPv6 datasource of Prometheus

**URL:** <https://community.grafana.com/t/cannot-access-ipv6-datasource-of-prometheus/114638>\
**Category:** Configuration\
**Created:** [February 16, 2024, 6:12am UTC](https://community.grafana.com/t/cannot-access-ipv6-datasource-of-prometheus/114638 "2024-02-16T06:12:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![judasmile](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@judasmile](https://community.grafana.com/u/judasmile)\
**Post date:** [February 16, 2024, 6:12am UTC](https://community.grafana.com/t/cannot-access-ipv6-datasource-of-prometheus/114638/1 "2024-02-16T06:12:30Z")

</div>

- What Grafana version and what operating system are you using?  
Grafana v10.3.1 (00a22ff8b2)

- **What** are you trying to achieve?  
I have a IPv6 based prometheus service behind nginx and I was trying to add it as datasource in grafana. Prometheus access URL: https:///prometheus/

- **How** are you trying to achieve it?  
I have a grafana container v10.3.1 running and configure a yaml file to grafana’s /etc/grafana/provisioning/datasources/ as a datasource. My yaml file:

```auto
apiVersion: 1
deleteDatasources:
  - name: Prometheus
    orgId: 1
datasources:
  - name: PrometheusDataSource
    type: prometheus
    access: proxy
    orgId: 1
    url: https://[<IPv6 address>]/prometheus/
    isDefault: true
    jsonData:
      tlsSkipVerify: true
    editable: false

```

- What happened?  
Data source added in grafana but cannot access. get error message:

```auto
"Post "https://[<IPv6 address>]/prometheus/api/v1/query": dial tcp [<IPv6 address>]:443: connect: cannot assign requested address - There was an error returned querying the Prometheus API."

```

- What did you **expect** to happen?  
I can add above Prometheus as datasource in grafana and successful fetch data from it

- Can you copy/paste the configuration(s) that you are having problems with?  
post in above questions

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
Yes, post the error message in above questions.

- Did you follow any online instructions? If so, what is the URL?  
tried to google it but nothing useful found.

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [February 16, 2024, 6:36am UTC](https://community.grafana.com/t/cannot-access-ipv6-datasource-of-prometheus/114638/2 "2024-02-16T06:36:43Z")

</div>

Does you container support IPv6?

> **[Enable IPv6 support](https://docs.docker.com/config/daemon/ipv6/)**
>
> How to enable IPv6 support in the Docker daemon
