# Prometheus Remote Write - Opensearch

**URL:** <https://discuss.prometheus.io/t/prometheus-remote-write-opensearch/2283>\
**Category:** General Help/Support\
**Created:** [May 27, 2024, 7:44am UTC](https://discuss.prometheus.io/t/prometheus-remote-write-opensearch/2283 "2024-05-27T07:44:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastus11](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/bastus11/32/971_2.png) [@bastus11](https://discuss.prometheus.io/u/bastus11)\
**Post date:** [May 27, 2024, 7:44am UTC](https://discuss.prometheus.io/t/prometheus-remote-write-opensearch/2283/1 "2024-05-27T07:44:00Z")

</div>

Hello everyone, I want to send my prometheus data to opensearh using the prometheus remote write feature.  
My **prometheus configuration** is as follows;

```auto
 remoteWrite: 
    - url: "https://domain/write"
    remote_timeout: 30s
    queue_config:
      capacity: 10000
      max_shards: 10
      min_shards: 2
      max_samples_per_send: 5000
      batch_send_deadline: 30m
      min_backoff: 50ms
      max_backoff: 1s
    basic_auth:
      username: 'admin'
      password: 'admin'
    tls_config:
      insecure_skip_verify: true

```

But I get the following **error**

```auto
msg="non-recoverable error" count=2000 exemplarCount=0 err="server returned HTTP status 405 Method Not Allowed: {\"error\":\"Incorrect HTTP method for uri [/write] and method [POST], allowed: [DELETE, HEAD, GET, PUT]\",\"status\":405}"

```

Can anyone help or have any ideas?
