Skip to content

Commit

Permalink
add a public yaml config
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Jul 31, 2024
1 parent ccf65a1 commit 422773a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 20 deletions.
21 changes: 1 addition & 20 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,7 @@ services:
image: "docker.io/persesdev/perses:v0.47.0-rc0-distroless"
ports:
- "5000:8080"
command: "--config=/etc/perses/config/secret.yaml"
environment:
PERSES_DATABASE_FILE_EXTENSION: "json"
PERSES_DATABASE_FILE_FOLDER: "/perses"
PERSES_SECURITY_ENABLE_AUTH: true
PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_0_ACTIONS_0: "read"
PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_0_SCOPES_0: "*"
PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_1_ACTIONS_0: "create"
PERSES_SECURITY_AUTHORIZATION_GUEST_PERMISSIONS_1_SCOPES_0: "Project"
PERSES_SECURITY_AUTHENTICATION_PROVIDERS_ENABLE_NATIVE: true
PERSES_PROVISIONING_INTERVAL: "12h"
PERSES_PROVISIONING_FOLDERS_0: "/etc/perses/provisioning"
PERSES_FRONTEND_IMPORTANT_DASHBOARDS_0_PROJECT: "perses"
PERSES_FRONTEND_IMPORTANT_DASHBOARDS_0_DASHBOARD: "NodeExporterFull"
PERSES_FRONTEND_INFORMATION: |-
# Welcome to the Demo instance of Perses!
This public demo instance is here to show you what Perses looks like
and what's possible to do with it. You can have a look at the example
dashboards, or create your own ones!
command: "--config=/etc/perses/config/config.yaml"
volumes:
- ./provisioning:/etc/perses/provisioning
- ./secret:/etc/perses/config
Expand Down
46 changes: 46 additions & 0 deletions perses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
database:
file:
extension: "json"
folder: "/perses"
case_sensitive: false
security:
enable_auth: true
cookie:
secure: true
authorization:
guest_permissions:
- actions:
- read
scopes:
- "*"
- actions:
- create
scopes:
- Project
schemas:
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: "5m"


provisioning:
interval: "12h"
folders:
- "/etc/perses/provisioning"

frontend:
explorer:
enable: true

important_dashboards:
- project: "perses"
dashboard: "NodeExporterFull"

information: |-
# Welcome to the Demo instance of Perses!

Check failure on line 43 in perses.yaml

View workflow job for this annotation

GitHub Actions / validate-yaml

43:1 [trailing-spaces] trailing spaces
This public demo instance is here to show you what Perses looks like
and what's possible to do with it. You can have a look at the example
dashboards, or create your own ones!

0 comments on commit 422773a

Please sign in to comment.