Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update monitoring docs to use Prometheus and Grafana Operator #21805

Closed
Tracked by #21925 ...
dkwon17 opened this issue Nov 4, 2022 · 2 comments
Closed
Tracked by #21925 ...

Update monitoring docs to use Prometheus and Grafana Operator #21805

dkwon17 opened this issue Nov 4, 2022 · 2 comments
Labels
area/doc Issues related to documentation kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@dkwon17
Copy link
Contributor

dkwon17 commented Nov 4, 2022

Is your enhancement related to a problem? Please describe

In the current monitoring docs, there are instructions to set up Prometheus and Grafana with Deployments and ConfigMaps.

Describe the solution you'd like

However, setting up the monitoring with the Prometheus Operator is a bit different because it requires using ServiceMonitor CRs to specify the metrics targets. It would be great if there were documentation for this.

For reference, the ServiceMonitors look similar to the following:

For monitoring Che Server:

- apiVersion: monitoring.coreos.com/v1
  kind: ServiceMonitor
  metadata:
    name: che-host
  spec:
    endpoints:
    - interval: 30s
      port: metrics
      scheme: http
    selector:
      matchLabels:
        app.kubernetes.io/name: devspaces

For monitoring the DWO:

- apiVersion: monitoring.coreos.com/v1
  kind: ServiceMonitor
  metadata:
    name: devworkspace-controller
  spec:
    endpoints:
    - interval: 30s
      port: metrics
      scheme: https
      bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
      tlsConfig:
        insecureSkipVerify: true
    selector:
      matchLabels:
        app.kubernetes.io/name: devworkspace-controller

Describe alternatives you've considered

No response

Additional context

No response

@dkwon17 dkwon17 added kind/enhancement A feature request - must adhere to the feature request template. area/doc Issues related to documentation severity/P2 Has a minor but important impact to the usage or development of the system. labels Nov 4, 2022
@max-cx
Copy link

max-cx commented Nov 14, 2022

The docs team's downstream issue is https://issues.redhat.com/browse/RHDEVDOCS-4731.

@che-bot
Copy link
Contributor

che-bot commented Jun 7, 2023

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 7, 2023
@che-bot che-bot closed this as completed Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/doc Issues related to documentation kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

4 participants