diff --git a/conf/grafana_data_source.yml b/conf/grafana_data_source.yml new file mode 100644 index 0000000..88728e0 --- /dev/null +++ b/conf/grafana_data_source.yml @@ -0,0 +1,8 @@ +datasources: + - name: Loki + type: loki + access: proxy + url: http://loki:3100 + isDefault: true + jsonData: + httpMethod: POST \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 3970ca7..01aa662 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,19 @@ services: - "3100:3100" networks: - scheduler + grafana: + image: 'grafana/grafana' + container_name: grafana + ports: + - '3000:3000' + networks: + - scheduler + volumes: + - ./conf/grafana_data_source.yml:/etc/grafana/provisioning/datasources/datasource.yml + environment: + - GF_SECURITY_ADMIN_PASSWORD=pfnirt # Change this to anything but admin to not have a password change page at startup + - GF_SECURITY_ADMIN_USER=admin + - GF_SECURITY_DISABLE_INITIAL_ADMIN_PASSWORD_CHANGE=true networks: scheduler: