You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**_NOTE:_** You also can use your username if you don't belong to any organization. In this case, use "USERNAME" instead of "ORG_NAME".
26
+
25
27
Run the image:
26
28
```
27
29
$ docker run --env-file .env -it -p 8001:8001 ghcr.io/grafana/github-traffic
@@ -36,3 +38,35 @@ Profit!
36
38
37
39
Now you can collect those metrics as you would do with any other service. To visualize them, we provide an example/template Grafana dashboard: https://grafana.com/grafana/dashboards/15000
38
40
41
+
## Docker compose
42
+
In addition, a docker-compose.yaml file is provided. This file also run Prometheus and Grafana.
43
+
44
+
**_NOTE:_** You've to create the .env file with you configuration.
45
+
46
+
Run compose:
47
+
```zsh
48
+
❯ docker-compose up -d
49
+
Creating network "github-traffic_default" with the default driver
50
+
Creating github-traffic_traffic_1 ... done
51
+
Creating github-traffic_prometheus_1 ... done
52
+
Creating github-traffic_grafana_1 ... done
53
+
```
54
+
55
+
Now, you can access to:
56
+
* Grafana: http://localhost:3000
57
+
* Prometheus: http://localhost:9090
58
+
* Github traffic: http://localhost:8001
59
+
60
+
Once you navigate to Grafana (http://localhost:3000), the user and password are admin/admin you have to configure a datasource to Prometheus (http://prometheus:9090) and import the dashboard with id 15000.
0 commit comments