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

Setup Metrics Gathering on the New Observability Cluster #326

Closed
4 tasks done
schwesig opened this issue Nov 29, 2023 · 6 comments
Closed
4 tasks done

Setup Metrics Gathering on the New Observability Cluster #326

schwesig opened this issue Nov 29, 2023 · 6 comments
Assignees

Comments

@schwesig
Copy link
Member

schwesig commented Nov 29, 2023

timeline: 2023/Q4 - 2024/Q1

right now catching this as an issue for #177

@computate
Copy link
Member

@schwesig @jbasu01 Thanks @harshil-codes for the suggestion to follow the documentation for configuring an external grafana to query metrics with the Observatorium API. After trying out the right secrets this time, I managed to get a temporary Grafana datasource like this working. This will allow us to set up Grafana on the observability cluster, but point it to the observatorium Route on the infra cluster. There is CA Cert validation and TLS Client auth that will allow the observability cluster to connect to the infra cluster. We just need to put the credentials in Vault. Here is how to configure the GrafanaDatasource:

apiVersion: integreatly.org/v1alpha1
kind: GrafanaDataSource
metadata:
  name: observability-metrics
  namespace: grafana
  labels:
    app.kubernetes.io/instance: grafana-infra
spec:
  datasources:
    - access: proxy
      editable: false
      jsonData:
        timeInterval: 5s
        tlsAuth: true
        tlsAuthWithCACert: true
      name: observability-metrics
      secureJsonData:
        tlsClientCert: |-
          # Use `oc --as system:admin -n open-cluster-management-observability get secret/observability-grafana-certs -o jsonpath='{.data.tls\.crt}' | base64 -d`
        tlsClientKey: |-
          # Use `oc --as system:admin -n open-cluster-management-observability get secret/observability-grafana-certs -o jsonpath='{.data.tls\.key}' | base64 -d`
        tlsCACert: |-
          # Use `oc --as system:admin -n open-cluster-management-observability get secret/observability-server-ca-certs -o jsonpath='{.data.ca\.crt}' | base64 -d`
      type: prometheus
      url: >-
        https://observatorium-api-open-cluster-management-observability.apps.nerc-ocp-infra.rc.fas.harvard.edu/api/metrics/v1/default
  name: observability-metrics

@schwesig
Copy link
Member Author

schwesig commented Jan 4, 2024

@computate awesome, thanks for trying and creating a poc

@jbasu01
Copy link

jbasu01 commented Jan 11, 2024

Thanks @computate for running the poc and sharing the info.

@schwesig
Copy link
Member Author

status: regular meetings @schwesig & @jbasu01 working on the PR

@schwesig
Copy link
Member Author

schwesig commented Jan 17, 2024

check this for details about referencing secrets
OCP-on-NERC/nerc-ocp-config#317 (comment)

@schwesig schwesig changed the title Setup Metrics Gathering on the New Observability Cluster Find and define relevant metrics Feb 13, 2024
@schwesig schwesig changed the title Find and define relevant metrics Setup Metrics Gathering on the New Observability Cluster Feb 13, 2024
@schwesig
Copy link
Member Author

split
Personas and use cases in a separate issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants