Skip to content

Commit

Permalink
bump perses to latest version + add resources to readonly instance
Browse files Browse the repository at this point in the history
Signed-off-by: Ubuntu <[email protected]>
  • Loading branch information
Ubuntu committed Sep 22, 2023
1 parent 71cf0c3 commit 78b69ef
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 19 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: '3.9'
services:
demo:
image: "docker.io/persesdev/perses:v0.39.0"
image: "docker.io/persesdev/perses:v0.40.0"
ports:
- "5000:8080"
environment:
PERSES_DATABASE_FILE_EXTENSION: "yaml"
PERSES_DATABASE_FILE_EXTENSION: "json"
PERSES_READONLY: true
volumes:
- "./local_db_demo:/perses"
- "./local_db:/perses"
restart: unless-stopped
labels:
- "traefik.enable=true"
Expand All @@ -17,7 +17,7 @@ services:
- "traefik.http.routers.demo.tls.certresolver=myresolver"

sandbox:
image: "docker.io/persesdev/perses:v0.39.0"
image: "docker.io/persesdev/perses:v0.40.0"
ports:
- "5001:8080"
environment:
Expand Down
24 changes: 24 additions & 0 deletions local_db/datasources/perses/PrometheusDemo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"kind": "Datasource",
"metadata": {
"name": "PrometheusDemo"
},
"spec": {
"display": {
"name": "Prometheus Demo instance",
"description": "Prometheus demo instance specific to the perses project"
},
"default": true,
"plugin": {
"kind": "PrometheusDatasource",
"spec": {
"proxy": {
"kind": "HTTPProxy",
"spec": {
"url": "https://prometheus.demo.do.prometheus.io"
}
}
}
}
}
}
24 changes: 24 additions & 0 deletions local_db/globaldatasources/PrometheusDemo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"kind": "GlobalDatasource",
"metadata": {
"name": "PrometheusDemo"
},
"spec": {
"display": {
"name": "Prometheus Demo instance",
"description": "Base Prometheus demo instance"
},
"default": true,
"plugin": {
"kind": "PrometheusDatasource",
"spec": {
"proxy": {
"kind": "HTTPProxy",
"spec": {
"url": "https://prometheus.demo.do.prometheus.io"
}
}
}
}
}
}
6 changes: 6 additions & 0 deletions local_db/projects/perses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"kind": "Project",
"metadata": {
"name": "perses"
}
}
12 changes: 0 additions & 12 deletions local_db_demo/globaldatasources/PrometheusDemo.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions local_db_demo/projects/perses.yaml

This file was deleted.

0 comments on commit 78b69ef

Please sign in to comment.