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

Add Perses Plugin #539

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Add Perses Plugin #539

wants to merge 22 commits into from

Conversation

ibakshay
Copy link
Contributor

@ibakshay ibakshay commented Dec 9, 2024

This Pull request resolves #491

Signed-off-by: IB Akshay [email protected]

Signed-off-by: IB Akshay <[email protected]>
Signed-off-by: IB Akshay <[email protected]>
… URLs, and refine sidecar configuration options

Signed-off-by: IB Akshay <[email protected]>
…ard config instructions; add plugin.yaml for perses

Signed-off-by: IB Akshay <[email protected]>
@ibakshay ibakshay requested review from a team as code owners December 9, 2024 16:18
Copy link

github-actions bot commented Dec 9, 2024

⚠️ Chart oci://ghcr.io/cloudoperators/greenhouse-extensions/charts/kube-monitoring:0.19.2 already exists in OCI registry. Please increment the chart version.

@ibakshay ibakshay marked this pull request as draft December 9, 2024 16:28
@ibakshay ibakshay added the dashboard visualisation Plutono/Perses + Dashboards label Dec 10, 2024
@ibakshay ibakshay marked this pull request as ready for review December 10, 2024 09:15
@ibakshay ibakshay requested a review from richardtief December 10, 2024 09:22
… spelling in kube-monitoring values

Signed-off-by: IB Akshay <[email protected]>
@ibakshay ibakshay requested a review from a team as a code owner December 10, 2024 09:25
Copy link
Contributor

@viennaa viennaa left a comment

Choose a reason for hiding this comment

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

Thanks for providing the Perses Plugin, really looking forward to see it in action.

Some smaller nits inline.

kube-monitoring/charts/values.yaml Outdated Show resolved Hide resolved
perses/img/perses-arch.png Outdated Show resolved Hide resolved
perses/plugindefinition.yaml Outdated Show resolved Hide resolved
perses/plugindefinition.yaml Outdated Show resolved Hide resolved
@viennaa
Copy link
Contributor

viennaa commented Dec 10, 2024

Also, add some tests please :).

@ibakshay ibakshay self-assigned this Dec 10, 2024
@ibakshay
Copy link
Contributor Author

Also, add some tests please :).

Created a PR in upstream helm chart to add tests. perses/helm-charts#42

@ibakshay
Copy link
Contributor Author

Also, add some tests please :).

Tests are added to the upstream Perses helm repo now :)

Screenshot of the tests that are run in this PR

image

Copy link
Contributor

@viennaa viennaa left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@richardtief richardtief left a comment

Choose a reason for hiding this comment

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

Fantastic! I never thought we would get Perses in this condition in 2024. Now we have it almost ready for us to use, and I am happy to follow your efforts that you are also committed to bringing to the community! Keep up the good work!

Some small comments below

@@ -0,0 +1,22 @@
apiVersion: v2
name: perses-plugin
Copy link
Member

Choose a reason for hiding this comment

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

The suffix -plugin is not required.

Suggested change
name: perses-plugin
name: perses

Comment on lines +5 to +7
commonLabels:
perses:
# Default values for perses.
Copy link
Member

Choose a reason for hiding this comment

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

Enter an empty dict here to indicate the expected data type.

Suggested change
commonLabels:
perses:
# Default values for perses.
commonLabels: {}
perses:
# Default values for perses.

Comment on lines +2 to +20
kind: PluginDefinition
metadata:
name: perses
spec:
version: 0.1.0
displayName: Perses
description: "Perses is a dashboard tooling to visualize metrics and traces produced by observability tools such as Prometheus/Thanos/Jaeger"
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/README.md
icon: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/logo.png
helmChart:
name: perses
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: '0.7.4'
options:
- default: true
description: "Deploys a sidecar container to watch all configmaps in the cluster and filters out the ones with a label `perses.dev/resource: true`. The files defined in those configmaps are written to a folder and this folder is accessed by Perses. Changes to the configmaps are continuously monitored and reflected in Perses within 10 seconds"
name: perses.sidecar.enabled
required: true
type: bool
Copy link
Member

Choose a reason for hiding this comment

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

The indentation of yaml looks a bit off.

Suggested change
kind: PluginDefinition
metadata:
name: perses
spec:
version: 0.1.0
displayName: Perses
description: "Perses is a dashboard tooling to visualize metrics and traces produced by observability tools such as Prometheus/Thanos/Jaeger"
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/README.md
icon: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/logo.png
helmChart:
name: perses
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: '0.7.4'
options:
- default: true
description: "Deploys a sidecar container to watch all configmaps in the cluster and filters out the ones with a label `perses.dev/resource: true`. The files defined in those configmaps are written to a folder and this folder is accessed by Perses. Changes to the configmaps are continuously monitored and reflected in Perses within 10 seconds"
name: perses.sidecar.enabled
required: true
type: bool
kind: PluginDefinition
metadata:
name: perses
spec:
version: 0.1.0
displayName: Perses
description: "Perses is a dashboard tooling to visualize metrics and traces produced by observability tools such as Prometheus/Thanos/Jaeger"
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/README.md
icon: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/perses/logo.png
helmChart:
name: perses
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: '0.7.4'
options:
- default: true
description: "Deploys a sidecar container to watch all configmaps in the cluster and filters out the ones with a label `perses.dev/resource: true`. The files defined in those configmaps are written to a folder and this folder is accessed by Perses. Changes to the configmaps are continuously monitored and reflected in Perses within 10 seconds"
name: perses.sidecar.enabled
required: true
type: bool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard visualisation Plutono/Perses + Dashboards
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

[perses] Create an Beta plugin
3 participants