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

fix(deployment): Get the helm chart working with Perses 0.47.0 #16

Merged
merged 4 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/perses/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: perses
description: Perses helm chart
icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4
type: application
version: 1.0.0
version: 0.4.0
appVersion: "v0.47.0"
sources:
- https://github.com/perses/perses
Expand Down
7 changes: 3 additions & 4 deletions charts/perses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Perses helm chart

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.47.0](https://img.shields.io/badge/AppVersion-v0.47.0-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.47.0](https://img.shields.io/badge/AppVersion-v0.47.0-informational?style=flat-square)

## Installing the Chart

Expand All @@ -29,17 +29,16 @@ helm delete my-release
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| annotations | object | `{}` | Statefulset Annotations |
| config | object | `{"annotations":{},"database":{"file":{"extension":"json","folder":"/perses"},"sql":{}},"important_dashboards":[],"provisioning":{"folders":["/etc/perses/datasources"]},"schemas":{"datasources_path":"/etc/perses/cue/schemas/datasources","interval":"6h","panels_path":"/etc/perses/cue/schemas/panels","queries_path":"/etc/perses/cue/schemas/queries","variables_path":"/etc/perses/cue/schemas/variables"},"security":{"enableAuth":false,"readOnly":false}}` | Perses configuration file ref: https://github.com/perses/perses/blob/main/docs/user-guides/configuration.md |
| config | object | `{"annotations":{},"database":{"file":{"extension":"json","folder":"/perses"},"sql":{}},"important_dashboards":[],"provisioning":{"folders":["/etc/perses/datasources"]},"schemas":{"datasources_path":"/etc/perses/cue/schemas/datasources","interval":"5m","panels_path":"/etc/perses/cue/schemas/panels","queries_path":"/etc/perses/cue/schemas/queries","variables_path":"/etc/perses/cue/schemas/variables"},"security":{"enableAuth":false,"readOnly":false}}` | Perses configuration file ref: https://github.com/perses/perses/blob/main/docs/user-guides/configuration.md |
| config.annotations | object | `{}` | Annotations for config |
| config.database | object | `{"file":{"extension":"json","folder":"/perses"},"sql":{}}` | Database config based on data base type |
| config.database.file | object | `{"extension":"json","folder":"/perses"}` | file system configs |
| config.database.sql | object | `{}` | SQL Config |
| config.important_dashboards | list | `[]` | Important dashboards list |
| config.provisioning | object | `{"folders":["/etc/perses/datasources"]}` | provisioning config |
| config.schemas | object | `{"datasources_path":"/etc/perses/cue/schemas/datasources","interval":"6h","panels_path":"/etc/perses/cue/schemas/panels","queries_path":"/etc/perses/cue/schemas/queries","variables_path":"/etc/perses/cue/schemas/variables"}` | Schemas paths |
| config.schemas | object | `{"datasources_path":"/etc/perses/cue/schemas/datasources","interval":"5m","panels_path":"/etc/perses/cue/schemas/panels","queries_path":"/etc/perses/cue/schemas/queries","variables_path":"/etc/perses/cue/schemas/variables"}` | Schemas paths |
| config.security.enableAuth | bool | `false` | Enable Authentication |
| config.security.readOnly | bool | `false` | Configure Perses instance as readonly |
| datasources | list | `[{"kind":"Datasource","metadata":{"name":"PrometheusLocalhost","project":"perses"},"spec":{"default":true,"plugin":{"kind":"PrometheusDatasource","spec":{"directUrl":"http://localhost:9090","scrapeInterval":"15s"}}}}]` | Configure datasources ref: https://github.com/perses/perses/blob/90beed356243208f14cf2249bebb6f6222cb77ae/docs/datasource.md |
| fullnameOverride | string | `""` | Override fully qualified app name |
| image.name | string | `"persesdev/perses"` | Perses image repository and name |
| image.pullPolicy | string | `"IfNotPresent"` | Default image pull policy |
Expand Down
24 changes: 11 additions & 13 deletions charts/perses/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ config:
queries_path: "/etc/perses/cue/schemas/queries"
datasources_path: "/etc/perses/cue/schemas/datasources"
variables_path: "/etc/perses/cue/schemas/variables"
interval: "6h"
interval: "5m"

# -- Important dashboards list
important_dashboards:
Expand Down Expand Up @@ -183,15 +183,13 @@ ingress:
# -- Configure datasources
# ref: https://github.com/perses/perses/blob/90beed356243208f14cf2249bebb6f6222cb77ae/docs/datasource.md
datasources:
- kind: Datasource
metadata:
name: PrometheusLocalhost
project: perses
spec:
default: true
plugin:
kind: PrometheusDatasource
spec:
directUrl: http://localhost:9090
scrapeInterval: "15s"

[]
# - kind: GlobalDatasource
# metadata:
# name: PrometheusDemoBrowser
# spec:
# default: true
# plugin:
# kind: PrometheusDatasource
# spec:
# directUrl: https://prometheus.demo.do.prometheus.io
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nexucis I've changed this back to the original content to introduce fewer changes with the PR.

Loading