# Opensearch Dashboard - Data source creation failed

**URL:** <https://forum.opensearch.org/t/opensearch-dashboard-data-source-creation-failed/20920>\
**Category:** OpenSearch\
**Created:** [August 20, 2024, 5:52pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-data-source-creation-failed/20920 "2024-08-20T17:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaianand\_m](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jaianand\_m](https://forum.opensearch.org/u/jaianand_m)\
**Post date:** [August 20, 2024, 5:52pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-data-source-creation-failed/20920/1 "2024-08-20T17:52:31Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): Opensearch Dashboard 2.14

**Describe the issue** :  
I am gathering metrics data from OTEL, which is then ingested into DataPrepper. I use the following Metric Pipeline in DataPrepper to feed the data into Opensearch. However, when creating the DataSource in the Opensearch Dashboard, I encounter an error, even though the connection test is successful.

Also please help me how we can create a metric Visualization for the metrics that are collected from Otel

metrics-pipeline:  
source:  
otel\_metrics\_source:  
health\_check\_service: true  
ssl: false  
buffer:  
bounded\_blocking:  
buffer\_size: 1024 # max number of records the buffer accepts  
batch\_size: 1024 # max number of records the buffer drains after each read  
processor:  
- otel\_metrics:  
calculate\_histogram\_buckets: true  
calculate\_exponential\_histogram\_buckets: true  
exponential\_histogram\_max\_allowed\_scale: 10  
flatten\_attributes: false  
sink:  
- opensearch:  
hosts: [“https://:9200”]  
insecure: true  
username: “admin”  
password: “XXXXXXXX”  
index\_type: custom  
tempalte\_file: “templates/ss4o\_metrics.json”  
index: ss4o\_metrics-otel-%{yyyy.MM.dd}  
- file:  
path: /tmp/otel\_metric\_data.log

**Configuration** :

**Relevant Logs or Screenshots** :  
I am using opensearch IP:9200 in the endpoint URL filed

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/2/23ee4452da18efbf74f56398ce973eb1e5faa0bd.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/7/74a105ac45928d98146848080625615c184b6528.png)
