Not able to get the metrics from eks cluster

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

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.