From 40725ba9411b3a52a2d5e28863dd31fb45f0cf61 Mon Sep 17 00:00:00 2001 From: Ronny Trommer Date: Thu, 8 Aug 2024 17:30:08 +0200 Subject: [PATCH] fix: Get it back to work with Perses 0.47.0 Update the schemas and default datasource to get it back working with the latest release of Perses. --- charts/perses/Chart.yaml | 4 ++-- charts/perses/values.yaml | 31 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/charts/perses/Chart.yaml b/charts/perses/Chart.yaml index 67e7fd3..5267b82 100644 --- a/charts/perses/Chart.yaml +++ b/charts/perses/Chart.yaml @@ -3,8 +3,8 @@ name: perses description: Perses helm chart icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4 type: application -version: 0.3.0 -appVersion: "0.42.1" +version: 1.0.0 +appVersion: "v0.47.0" sources: - https://github.com/perses/perses annotations: diff --git a/charts/perses/values.yaml b/charts/perses/values.yaml index f82fc0b..09d7beb 100644 --- a/charts/perses/values.yaml +++ b/charts/perses/values.yaml @@ -101,10 +101,11 @@ config: # -- Schemas paths schemas: - panels_path: "/etc/perses/schemas/panels" - queries_path: "/etc/perses/schemas/queries" - datasources_path: "/etc/perses/schemas/datasources" - variables_path: "/etc/perses/schemas/variables" + panels_path: "/etc/perses/cue/schemas/panels" + queries_path: "/etc/perses/cue/schemas/queries" + datasources_path: "/etc/perses/cue/schemas/datasources" + variables_path: "/etc/perses/cue/schemas/variables" + interval: "6h" # -- Important dashboards list important_dashboards: @@ -182,13 +183,15 @@ ingress: # -- Configure datasources # ref: https://github.com/perses/perses/blob/90beed356243208f14cf2249bebb6f6222cb77ae/docs/datasource.md datasources: - [] - # - kind: GlobalDatasource - # metadata: - # name: PrometheusDemoBrowser - # spec: - # default: true - # plugin: - # kind: PrometheusDatasource - # spec: - # directUrl: https://prometheus.demo.do.prometheus.io \ No newline at end of file + - kind: Datasource + metadata: + name: PrometheusLocalhost + project: perses + spec: + default: true + plugin: + kind: PrometheusDatasource + spec: + directUrl: http://localhost:9090 + scrapeInterval: "15s" +