-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
@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 |
@computate awesome, thanks for trying and creating a poc |
Thanks @computate for running the poc and sharing the info. |
check this for details about referencing secrets |
split |
Setup a new Cluster to handle Metrics, Logging and Observability
timeline: 2023/Q4 - 2024/Q1
right now catching this as an issue for #177
The text was updated successfully, but these errors were encountered: