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

feat(falco-exporter): added ability to set the grafana folder annotation name #654

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions charts/falco-exporter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This file documents all notable changes to `falco-exporter` Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).

## v0.10.0

* added ability to set the grafana folder annotation name

## v0.9.11

* fix dead links in README.md
Expand Down
2 changes: 1 addition & 1 deletion charts/falco-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.9.11
version: 0.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
7 changes: 4 additions & 3 deletions charts/falco-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ helm install falco-exporter \

## Configuration

The following table lists the main configurable parameters of the falco-exporter chart v0.9.11 and their default values. Please, refer to [values.yaml](./values.yaml) for the full list of configurable parameters.
The following table lists the main configurable parameters of the falco-exporter chart v0.10.0 and their default values. Please, refer to [values.yaml](./values.yaml) for the full list of configurable parameters.

## Values

Expand All @@ -84,9 +84,10 @@ The following table lists the main configurable parameters of the falco-exporter
| falco.grpcTimeout | string | `"2m"` | grpcTimeout timout value for grpc connection. |
| falco.grpcUnixSocketPath | string | `"unix:///run/falco/falco.sock"` | grpcUnixSocketPath path to the falco's grpc unix socket. |
| fullnameOverride | string | `""` | fullNameOverride same as nameOverride but for the full name. |
| grafanaDashboard | object | `{"enabled":false,"folder":"","namespace":"default","prometheusDatasourceName":"Prometheus"}` | grafanaDashboard contains the configuration related to grafana dashboards. |
| grafanaDashboard | object | `{"enabled":false,"folder":"","folderAnnotation":"grafana_dashboard_folder","namespace":"default","prometheusDatasourceName":"Prometheus"}` | grafanaDashboard contains the configuration related to grafana dashboards. |
| grafanaDashboard.enabled | bool | `false` | enabled specifies whether the dashboard should be deployed. |
| grafanaDashboard.folder | string | `""` | folder where the dashboard is stored by grafana. |
| grafanaDashboard.folder | string | `""` | folder creates and set folderAnnotation to specify where the dashboard is stored in grafana. |
| grafanaDashboard.folderAnnotation | string | `"grafana_dashboard_folder"` | folderAnnotation sets the annotation's name used by folderAnnotation in grafana's helm-chart. |
| grafanaDashboard.namespace | string | `"default"` | namespace specifies the namespace for the configmap. |
| grafanaDashboard.prometheusDatasourceName | string | `"Prometheus"` | prometheusDatasourceName name of the data source. |
| healthChecks | object | `{"livenessProbe":{"initialDelaySeconds":60,"periodSeconds":15,"probesPort":19376,"timeoutSeconds":5},"readinessProbe":{"initialDelaySeconds":30,"periodSeconds":15,"probesPort":19376,"timeoutSeconds":5}}` | healthChecks contains the configuration for liveness and readiness probes. |
Expand Down
2 changes: 1 addition & 1 deletion charts/falco-exporter/templates/grafana-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ metadata:
{{- if .Values.grafanaDashboard.folder }}
annotations:
k8s-sidecar-target-directory: /tmp/dashboards/{{ .Values.grafanaDashboard.folder }}
grafana_dashboard_folder: {{ .Values.grafanaDashboard.folder }}
{{ .Values.grafanaDashboard.folderAnnotation }}: {{ .Values.grafanaDashboard.folder }}
{{- end }}
name: grafana-falco
{{- if .Values.grafanaDashboard.namespace }}
Expand Down
4 changes: 3 additions & 1 deletion charts/falco-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ serviceMonitor:
grafanaDashboard:
# -- enabled specifies whether the dashboard should be deployed.
enabled: false
# -- folder where the dashboard is stored by grafana.
# -- folder creates and set folderAnnotation to specify where the dashboard is stored in grafana.
folder: ""
# -- folderAnnotation sets the annotation's name used by folderAnnotation in grafana's helm-chart.
folderAnnotation: "grafana_dashboard_folder"
# -- namespace specifies the namespace for the configmap.
namespace: default
# -- prometheusDatasourceName name of the data source.
Expand Down
Loading