# Advanced View Workloads Role

**URL:** <https://forums.suse.com/t/advanced-view-workloads-role/37032>\
**Category:** SUSE Rancher Prime\
**Created:** [February 18, 2022, 10:30am UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032 "2022-02-18T10:30:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLA](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bla/32/8639_2.png) [@BLA](https://forums.suse.com/u/BLA)\
**Post date:** [February 18, 2022, 10:30am UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032/1 "2022-02-18T10:30:44Z")

</div>

Hi;

I work on Rancher 2.6, I try to put an advanced view in read-only so that users can follow the workloads in a more detailed way in the rancher interface…

For this i created a project role which takes over the already existing roles _View Workloads_ and _View Config Maps_.

 ![custom-role](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/3/3894723accb1370a08cf4a1e737eb051f15b16cb.png)

I added to this role the rights to read events so that the _Recent Events_ tab is visible on the view of a pod

[screenshot](https://drive.google.com/file/d/1rAkUvk4VOcEtYs4zf2GF9qqGCH0nTJEl/view?usp=sharing)

So far no difficulty; where I’m stuck is to display the _workload-metrics_ tab for example on a _deployment_ or a _statefulsets_

[example with the view of an administrator](https://drive.google.com/file/d/1--0tHn5_a85TBuQDb_U6yFEyfwg0WlZ8/view?usp=sharing)

I tried adding the global role _View Rancher 2 Metrics_ and the project role _View Monitoring_ but without success.

Do you have any idea where i am wrong???

Note: monitoring run over rancher-monitoring:100.1.0+up19.0.3

---

<div class="post-metadata">

**Author:** ![BLA](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bla/32/8639_2.png) [@BLA](https://forums.suse.com/u/BLA)\
**Post date:** [February 18, 2022, 2:18pm UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032/2 "2022-02-18T14:18:22Z")

</div>

Some additional elements:  
With Global Permissions: _User-Base_; the _Cluster Owner_ role can see metrics but not the _Cluster Member_ role.

I deduced that it came from

```auto
rules:
- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - '*'

```

But I refuse to put such a privilege

---

<div class="post-metadata">

**Author:** ![BLA](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bla/32/8639_2.png) [@BLA](https://forums.suse.com/u/BLA)\
**Post date:** [February 19, 2022, 10:53am UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032/3 "2022-02-19T10:53:00Z")

</div>

I have refined the rights and I only work at the project level.  
The basic permission remains _User-Base_ (login-access only).

As indicated at the beginning of the topic, I always have a project role inspired by the _View Workloads_ and _View Config Maps_ role and which I apply to the project containing the workloads of my users.

This is complemented by a second role that inherits the _View Monitoring_ and _Project Monitoring View Role_ and which is applied to the _System_ project.

All this allows my users to see the monitoring menu in the sidebar, see the monitoring config, and easily access Grafana. 😀

Now I get stuck on displaying the metrics tab on the workloads page 😔, for example here is what I see with my _cluster owner_ profile:

 ![deployment-metrics](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/f/fccb56aaa0c911fb101d86ec8f233ebe568ea649.png)

After multiple tries I now know that rights to the System project are missing to display this tab, however I always find myself blocked because I only manage by giving more permissions than I want and without knowing really what right is missing

```auto
roleTemplateNames:
- monitoring-ui-view
- project-monitoring-readonly
rules:
- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - list

```

---

<div class="post-metadata">

**Author:** ![BLA](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bla/32/8639_2.png) [@BLA](https://forums.suse.com/u/BLA)\
**Post date:** [February 20, 2022, 9:42am UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032/4 "2022-02-20T09:42:04Z")

</div>

Solves: read [Workload metrics tab not displayed · Issue #36587 · rancher/rancher · GitHub](https://github.com/rancher/rancher/issues/36587#issuecomment-1046199531)

---

<div class="post-metadata">

**Author:** ![Rahul\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rahul\_Kumar1](https://forums.suse.com/u/Rahul_Kumar1)\
**Post date:** [May 24, 2023, 3:39am UTC](https://forums.suse.com/t/advanced-view-workloads-role/37032/5 "2023-05-24T03:39:58Z")

</div>

I am unable to find that option in the System project.

I can just view the Edit Config option in the System Project, where exactly should we add this in the Rancher 2.6, I am struck with the same issue for a week now.

My Role is Cluster Admin and I can view the workload metrics, whereas the Cluster Members are unable to view that option.

@BLA : Can you explain me where this change has to be done exactly.
