Commit 93197227 authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

feat: added grafana dashboard config

parent 64f9d793
Loading
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
# Openslice Pod Metrics Dashboard (Grafana)

To visualize Kubernetes pod metrics for Openslice, you have two options:

## Option 1: Use Grafana Dashboard ID

1. Open your Grafana instance.
2. Go to **"Import"**.
3. Enter dashboard ID `14350`.
4. Select your Prometheus data source.
5. In the **"namespace"** dropdown, select `openslice`.

## Option 2: Use the Predefined JSON Dashboard

1. Locate the file:  
   `kubernetes/helm/openslice/files/observability/grafana_osl_dashboard.json`
2. In Grafana, go to **"Import"**.
3. Upload or paste the JSON content.
4. This version has the `openslice` namespace already hardcoded — no dropdown selection is needed.
 No newline at end of file
+1084 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ spec:
        {{- include "openslice.selectorLabels" . | nindent 8 }}
      annotations:
        {{- with .Values.artemis.podAnnotations }}
        {{- toYaml . | nindent 4 }}
        {{- toYaml . | nindent 8 }}
        {{- end }}
    spec:
      containers:
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ spec:
        {{- include "openslice.selectorLabels" . | nindent 8 }}
      annotations:
        {{- with .Values.manoclient.podAnnotations }}
        {{- toYaml . | nindent 4 }}
        {{- toYaml . | nindent 8 }}
        {{- end }}
    spec:
      containers:
+1 −25
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ spring:
  oauthClientSecret: secret

mysql:
  storage: 10Gi
  storage: 100Mi

metrico:
  enabled: true
@@ -302,7 +302,6 @@ prometheus:
  server:
    prefixURL: "/prometheus"


    ingress:
      enabled: false

@@ -314,29 +313,6 @@ prometheus:
      prometheus.io/path: /metrics
      prometheus.io/port: "9090"

  serverFiles:
    prometheus.yml:
      scrape_configs:
        - job_name: 'openslice-apps'
          kubernetes_sd_configs:
            - role: pod
          relabel_configs:
            - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
              action: keep
              regex: "true"
            - source_labels: [__meta_kubernetes_pod_label_app]
              action: keep
              regex: openslice
            - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
              action: replace
              target_label: __metrics_path__
              regex: (.+)
            - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
              action: replace
              regex: (.+):(?:\d+);(\d+)
              replacement: ${1}:${2}
              target_label: __address__

## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
##
grafana: