Files
buildkit/hack/composefiles/datasources.yaml
Jonathan A. Sternberg 5bcbe47657 hack: add prometheus and grafana to hack/compose
Starts a prometheus server that automatically scrapes buildkit for
metrics using the `/metrics` endpoint. Also configures a grafana
instance to use prometheus as the default connection.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-05-16 11:57:47 -05:00

20 lines
601 B
YAML

apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
jsonData:
httpMethod: POST
manageAlerts: false
prometheusType: Prometheus
prometheusVersion: 2.48.1
# cacheLevel set to none because this is primarily used for development
# where caching is detrimental to the experience and there's not enough
# data where caching is helpful.
cacheLevel: 'None'
disableRecordingRules: false
incrementalQueryOverlapWindow: 10m
exemplarTraceIdDestinations: []