Skip to content

Commit 30f3c78

Browse files
committed
fundermentals: add login details
1 parent 8a31e20 commit 30f3c78

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,24 @@ You will need to have the following installed locally to complete this workshop:
99
- [Docker](https://docs.docker.com/install/)
1010
- [Docker Compose](https://docs.docker.com/compose/install/)
1111

12-
If you're running Docker for Desktop for macOS or Windows, Docker Compose is already included in your installation.
12+
NOTE: If you're running Docker for Desktop for macOS or Windows, Docker Compose is already included in your installation.
13+
14+
## Login
15+
16+
To log in browse to [localhost:3000](http://localhost:3000).
17+
18+
NOTE:
19+
To facilitate the demo, **login has been disabled**, and anonymous access is granted admin privileges. For security reasons, we advise keeping login enabled in your Grafana instance.
20+
21+
If you want to follow the tutorial with login enabled, you can comment the following lines of the [docker-compose file](docker-compose.yml)
22+
23+
24+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
25+
- GF_AUTH_ANONYMOUS_ENABLED=true
26+
- GF_AUTH_BASIC_ENABLED=false
27+
28+
29+
Once login is enabled, the default username and password is `admin:admin`
1330

1431
## Running
1532

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ services:
4343
environment:
4444
- "GF_DEFAULT_APP_MODE=development"
4545
- "GF_LOG_LEVEL=debug"
46-
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
47-
- GF_AUTH_ANONYMOUS_ENABLED=true
48-
- GF_AUTH_BASIC_ENABLED=false
46+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin # grants admin role to anonymous access
47+
- GF_AUTH_ANONYMOUS_ENABLED=true # removes login 1/2
48+
- GF_AUTH_BASIC_ENABLED=false # removes login 2/2
4949
- GF_FEATURE_TOGGLES_ENABLE=alertingSimplifiedRouting
5050
volumes:
5151
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources

0 commit comments

Comments
 (0)