forked from eclipse-che/che-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: splitting the Collecting Dev Workspace Operator metrics procedur…
…e into upstream and downstream versions (eclipse-che#2599) * typo (eclipse-che#2582) * Revert "typo (eclipse-che#2582)" This reverts commit 01a4cb0. * fix: replicating changes from PR 2595 due to a committer's signature issue --------- Co-authored-by: Jose Manuel <elmanytas@gmail.com>
- Loading branch information
Showing
4 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...ples/snip_che-create-a-role-and-rolebinding-for-prometheus-to-view-metrics.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
. Create a Role and RoleBinding to allow Prometheus to view the metrics. | ||
|
||
+ | ||
.Role | ||
==== | ||
[source,yaml,subs="+quotes,+attributes,+macros"] | ||
---- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: prometheus-k8s | ||
namespace: openshift-operators | ||
rules: | ||
- verbs: | ||
- get | ||
- list | ||
- watch | ||
apiGroups: | ||
- '' | ||
resources: | ||
- services | ||
- endpoints | ||
- pods | ||
---- | ||
==== | ||
|
||
+ | ||
.RoleBinding | ||
==== | ||
[source,yaml,subs="+quotes,+attributes,+macros"] | ||
---- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: view-che-openshift-monitoring-prometheus-k8s | ||
namespace: openshift-operators | ||
subjects: | ||
- kind: ServiceAccount | ||
name: prometheus-k8s | ||
namespace: openshift-monitoring | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: prometheus-k8s | ||
---- | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters