File tree 5 files changed +69
-3
lines changed
5 files changed +69
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ services:
14
14
privileged : true
15
15
environment :
16
16
DELVE_PORT : 5000
17
+ OTEL_SERVICE_NAME : buildkitd
17
18
OTEL_EXPORTER_OTLP_ENDPOINT : http://otel-collector:4317
18
19
configs :
19
20
- source : buildkit_config
@@ -36,15 +37,51 @@ services:
36
37
target : /etc/otelcol-contrib/config.yaml
37
38
ports :
38
39
- 127.0.0.1:4317:4317
40
+ - 127.0.0.1:8000:8000
39
41
depends_on :
40
42
- jaeger
41
43
44
+ prometheus :
45
+ image : prom/prometheus:v2.48.1
46
+ configs :
47
+ - source : prometheus_config
48
+ target : /etc/prometheus/prometheus.yml
49
+ volumes :
50
+ - prometheus:/prometheus
51
+ depends_on :
52
+ - buildkit
53
+
54
+ grafana :
55
+ image : grafana/grafana-oss:10.2.3
56
+ configs :
57
+ - source : grafana_config
58
+ target : /etc/grafana/grafana.ini
59
+ - source : grafana_datasources_config
60
+ target : /etc/grafana/provisioning/datasources/datasources.yaml
61
+ ports :
62
+ - 127.0.0.1:3000:3000
63
+ volumes :
64
+ - grafana:/var/lib/grafana
65
+ depends_on :
66
+ - prometheus
67
+
42
68
volumes :
43
69
buildkit :
70
+ prometheus :
71
+ grafana :
44
72
45
73
configs :
46
74
buildkit_config :
47
75
file : ./buildkitd.toml
48
76
49
77
otelcol_config :
50
78
file : ./otelcol.yaml
79
+
80
+ prometheus_config :
81
+ file : ./prometheus.yml
82
+
83
+ grafana_config :
84
+ file : ./grafana.ini
85
+
86
+ grafana_datasources_config :
87
+ file : ./datasources.yaml
Original file line number Diff line number Diff line change
1
+ apiVersion : 1
2
+ datasources :
3
+ - name : Prometheus
4
+ type : prometheus
5
+ access : proxy
6
+ url : http://prometheus:9090
7
+ isDefault : true
8
+ jsonData :
9
+ httpMethod : POST
10
+ manageAlerts : false
11
+ prometheusType : Prometheus
12
+ prometheusVersion : 2.48.1
13
+ # cacheLevel set to none because this is primarily used for development
14
+ # where caching is detrimental to the experience and there's not enough
15
+ # data where caching is helpful.
16
+ cacheLevel : ' None'
17
+ disableRecordingRules : false
18
+ incrementalQueryOverlapWindow : 10m
19
+ exemplarTraceIdDestinations : []
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ configs:
15
15
metrics::metric:
16
16
- 'instrumentation_scope.name != "github.com/docker/buildx"'
17
17
exporters::debug::verbosity: detailed
18
- service::pipelines::metrics::receivers: [otlp]
19
- service::pipelines::metrics::processors: [filter/buildx]
20
- service::pipelines::metrics::exporters: [debug]
18
+ service::pipelines::metrics/buildx:
19
+ receivers: [otlp]
20
+ processors: [filter/buildx]
21
+ exporters: [debug]
Original file line number Diff line number Diff line change
1
+ [security]
2
+ admin_user = moby
3
+ admin_password = moby
Original file line number Diff line number Diff line change
1
+ scrape_configs :
2
+ - job_name : buildkit
3
+ scrape_interval : 1m
4
+ static_configs :
5
+ - targets :
6
+ - " buildkit:6060"
You can’t perform that action at this time.
0 commit comments