mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Add livestores to jsonnet lib * Update tk example to run complete rhythm setup * Small fixes * Simplify antiaffinity config * chlog * compile!
28 lines
773 B
Jsonnet
28 lines
773 B
Jsonnet
local dashboards = import 'dashboards.libsonnet';
|
|
local datasources = import 'datasources.libsonnet';
|
|
local grafana = import 'grafana/grafana.libsonnet';
|
|
local mixins = import 'mixins.libsonnet';
|
|
|
|
{
|
|
deploy(frontend_url='http://query-frontend'):
|
|
grafana
|
|
+ grafana.withReplicas(1)
|
|
+ grafana.withImage('grafana/grafana:11.4.0')
|
|
+ grafana.withRootUrl('http://grafana')
|
|
+ grafana.withTheme('dark')
|
|
+ grafana.withAnonymous()
|
|
|
|
+ grafana.withGrafanaIniConfig({
|
|
sections+: {
|
|
feature_toggles: {
|
|
enable: 'traceqlEditor',
|
|
},
|
|
},
|
|
})
|
|
|
|
+ grafana.addDatasource('Tempo', datasources.tempo(frontend_url))
|
|
+ grafana.addDatasource('Prometheus', datasources.prometheus)
|
|
|
|
+ grafana.addMixinDashboards(mixins),
|
|
}
|