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 up grafana for new ES #13

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
KIBANA_BASIC_AUTH=$(echo 'MYUSER:MYPASS' | base64 -i -)
# replace with $(echo 'reporting-proxy:PASSWORD' | base64 -i -)
KIBANA_BASIC_AUTH=CHANGE_THIS_VALUE
GF_DATABASE_TYPE=sqlite3
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vscode:
extensions:
- ms-azuretools.vscode-docker
2 changes: 1 addition & 1 deletion Dockerfile.grafana
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM grafana/grafana:11.1.1
FROM grafana/grafana:11.2.0

RUN grafana cli plugins install petrslavotinek-carpetplot-panel && \
grafana cli plugins install grafana-googlesheets-datasource && \
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.override.yml.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
proxy:
ports:
Expand Down
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
version: "3.8"

services:
proxy:
image: nginx:1.19
image: nginx:1.27
environment:
- KIBANA_ENDPOINT=https://5bc3d4f7330a4459881197a85659caf5.us-west-2.aws.found.io:9243
- KIBANA_ENDPOINT=https://my-deployment-c3fead.kb.us-west-2.aws.found.io:9243
- KIBANA_BASIC_AUTH
ports:
- 80:80
Expand All @@ -31,7 +29,7 @@ services:
- GF_SERVER_ROOT_URL

renderer:
image: grafana/grafana-image-renderer:3.3.0
image: grafana/grafana-image-renderer:3.11.4

library:
image: safecast/library:latest
Expand Down
3 changes: 1 addition & 2 deletions grafana/grafana.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ auth_url = https://github.com/login/oauth/authorize
token_url = https://github.com/login/oauth/access_token
allow_sign_up = true
allowed_organizations = Safecast
role_attribute_path = contains(info.roles[*], 'admin') && 'GrafanaAdmin' || 'Viewer'
role_attribute_path = contains(groups[*], '@safecast/teamdata') && 'Admin' || 'Viewer'
allow_assign_grafana_admin = true


[external_image_storage]
provider = s3

Expand Down
2 changes: 2 additions & 0 deletions proxy/templates/grafana.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ server {
server_name grafana.* grafana-dev.*;

location / {
proxy_set_header Host grafana;
proxy_set_header Origin http://grafana:3000;
proxy_pass http://grafana:3000;
}
}
Loading