# Monitor roles for the user

**URL:** <https://discuss.elastic.co/t/monitor-roles-for-the-user/307272>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 15, 2022, 12:24pm UTC](https://discuss.elastic.co/t/monitor-roles-for-the-user/307272 "2022-06-15T12:24:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)\
**Post date:** [June 15, 2022, 12:24pm UTC](https://discuss.elastic.co/t/monitor-roles-for-the-user/307272/1 "2022-06-15T12:24:41Z")

</div>

Hello,  
I have elastisearch exporter for getting cluster metrics to Prometheus, But we have to add a username and Password in the service file, Which roles will be okay for getting cluster details?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 13, 2022, 12:24pm UTC](https://discuss.elastic.co/t/monitor-roles-for-the-user/307272/2 "2022-07-13T12:24:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
