# Not able to get the metrics from eks cluster

**URL:** <https://discuss.prometheus.io/t/not-able-to-get-the-metrics-from-eks-cluster/1393>\
**Category:** General Help/Support\
**Created:** [January 12, 2023, 9:59am UTC](https://discuss.prometheus.io/t/not-able-to-get-the-metrics-from-eks-cluster/1393 "2023-01-12T09:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reddy2018](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/reddy2018/32/601_2.png) [@reddy2018](https://discuss.prometheus.io/u/reddy2018)\
**Post date:** [January 12, 2023, 9:59am UTC](https://discuss.prometheus.io/t/not-able-to-get-the-metrics-from-eks-cluster/1393/1 "2023-01-12T09:59:48Z")

</div>

i have updated the servicemonitor to get the metrics for my application, i can able to see the target of my app in the prometheus but it is in the down state. and in the error :server returned HTTP status 401

---

<div class="post-metadata">

**Author:** ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)\
**Post date:** [January 12, 2023, 11:24pm UTC](https://discuss.prometheus.io/t/not-able-to-get-the-metrics-from-eks-cluster/1393/2 "2023-01-12T23:24:24Z")

</div>

401 suggests the application is expecting some form of authentication. You either need to adjust the application to not require authentication for the metrics endpoint, or update the Prometheus config to include some authentication credentials.
