grafana/devenv/frontend-service
Ashley Harrison 57db26a9bf
Frontend service: Fix geomap assets not loading (#110146)
* attempting to "fix" geomap

* copy gazetteer/maps folders into dockerfile for frontend service

* add TODO comments

* remove unused import

* conditionally use public cdn path

* fix unit tests

* try refactor e2e test for better stability

* Revert "try refactor e2e test for better stability"

This reverts commit d966d68e15.

* safer

* use grafana_public_path
2025-08-29 16:29:57 +01:00
..
configs FS: Add prometheus metrics to dev stack (#109952) 2025-08-28 11:02:09 +00:00
provisioning FS: Add prometheus metrics to dev stack (#109952) 2025-08-28 11:02:09 +00:00
.gitignore FS: Speed up backend build-reload cycle (#108889) 2025-07-31 17:22:29 +01:00
README.md Devenv: Replace testdata UIDs with gdev-testdata (#108997) 2025-08-04 11:20:12 +01:00
Tiltfile Frontend service: Fix geomap assets not loading (#110146) 2025-08-29 16:29:57 +01:00
build-grafana.sh FS: Speed up backend build-reload cycle (#108889) 2025-07-31 17:22:29 +01:00
docker-compose.yaml FS: Add prometheus metrics to dev stack (#109952) 2025-08-28 11:02:09 +00:00
grafana-fs-dev.dockerfile Frontend service: Fix geomap assets not loading (#110146) 2025-08-29 16:29:57 +01:00
local-init.sh FS: Speed up backend build-reload cycle (#108889) 2025-07-31 17:22:29 +01:00
proxy.dockerfile FS: Add tempo tracing to dev stack (#109682) 2025-08-15 10:59:43 +00:00
run.sh FS: Replace frontend-service-up with command that auto shuts down (#109933) 2025-08-20 18:27:04 +01:00

README.md

frontend-service local dev

This directory contains a docker compose + Tilt setup for running a full frontend service stack locally. It contains:

  • frontend-service
  • backend api
  • static asset cdn.

Getting started

On top of the main Grafana development dependencies, you will need installed:

  • Docker
  • Tilt. At the moment we're not using Kubernetes locally, so you shouldn't need to follow the instructions to install kubectl or kind.

To start the stack, from the root of the Grafana project run make frontend-service-up. Tilt will orchestrate the webpack and docker builds, and then run the services with Docker compose. You can monitor it's progress and see logs with the URL to the Tilt console. Once done, you can access Grafana at http://localhost:3000.

Quitting the process will not stop the service from running. Run make frontend-service-down when done to shut down the docker containers.

Bootdata unavailable

To simulate the /bootdata endpoint being available, there are special control URLs you can visit that use cookies to control behaviour:

  • /-/down - Simulates the endpoint being unavailable for 60 seconds.
  • /-/down/:seconds - Simulates the endpoint being unavailable for a custom number of seconds.
  • /-/up - Restores the endpoint to being available.

When unavailable, the API will return HTTP 503 Service Unavailable with a JSON payload.