Skip to content

Commit

Permalink
PMM-12593 Fix grafana renderer for PMM 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Oct 25, 2024
1 parent a0db063 commit 0c718e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
- DBAAS_DBAAS_OP_CHANNEL=${DBAAS_DBAAS_OP_CHANNEL}
- DBAAS_ALLOW_UNSUPPORTED_OPERATORS=${DBAAS_ALLOW_UNSUPPORTED_OPERATORS:-0}
- PERCONA_TEST_DBAAS_PMM_CLIENT=${PERCONA_TEST_DBAAS_PMM_CLIENT}
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
- GF_RENDERING_CALLBACK_URL=https://pmm-server:8443/graph/
# - PERCONA_TEST_PLATFORM_ADDRESS=https://check.localhost
# - PERCONA_TEST_PLATFORM_INSECURE=1
# - PERCONA_TEST_PLATFORM_PUBLIC_KEY=<public key>
Expand Down Expand Up @@ -101,6 +103,13 @@ services:
# /opt/entrypoint.sh
# "

renderer:
image: grafana/grafana-image-renderer:latest
networks:
- ${NETWORK:-default}
ports:
- 8081:8081

# PMM with external DBs
ch:
profiles:
Expand Down
2 changes: 2 additions & 0 deletions update/ansible/playbook/tasks/roles/grafana/files/grafana.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ format = console
enable_gzip = true
# The full public facing url
root_url = https://%(domain)s/graph
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to false for compatibility reasons.
serve_from_sub_path = true

#################################### Snapshots ###########################
[snapshots]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
location /graph {
proxy_cookie_path / "/;";
proxy_pass http://127.0.0.1:3000;
rewrite ^/graph/(.*) /$1 break;
proxy_read_timeout 600;
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
Expand Down

0 comments on commit 0c718e6

Please sign in to comment.