Skip to content

Commit 6b63b0c

Browse files
doc: provide configuration example
Part of #206 Part of #207
1 parent d87bcea commit 6b63b0c

File tree

1 file changed

+188
-0
lines changed

1 file changed

+188
-0
lines changed

config.yml

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
# type is 'prometheus' or 'influxdb'
2+
type: prometheus
3+
4+
# title is dashboard artifact title
5+
# default is 'Tarantool dashboard'
6+
title: Tarantool dashboard
7+
8+
# description is dashboard artifact description
9+
# default is 'Dashboard for Tarantool application and database server monitoring, based on grafonnet library.'
10+
description: Dashboard for Tarantool application and database server monitoring, based on grafonnet library.
11+
12+
# grafana_tags are dashboard artifact tags
13+
# They do not related to Prometheus/InfluxDB quieries,
14+
# they are a part of Grafana UI and can be used to search dashboards in the library.
15+
# default is [tarantool]
16+
grafana_tags: [tarantool]
17+
18+
# datasource is the name on metrics datasource
19+
# Use expression like '$prometheus' to work with dynamic datasource set with variable.
20+
# Use string like 'MyDashboard' to set your specific datasource.
21+
# default for prometheus type is '$prometheus', for influxdb type is '$influxdb'
22+
datasource: '$prometheus'
23+
24+
# policy is InfluxDB datasource metrics retention policy
25+
# influxdb type only
26+
# Use expression like '$policy' to work with dynamic policy set with variable.
27+
# Use string like 'MyPolicy' to set your specific policy.
28+
# Use 'default' to work with default InfluxDB datasource policy.
29+
# default is '$policy'
30+
# policy: '$policy'
31+
32+
# measurement is InfluxDB datasource metrics measurement
33+
# influxdb type only
34+
# Use expression like '$measurement' to work with dynamic measurement set with variable.
35+
# Use string like 'MyMeasurement' to set your specific measurement.
36+
# default is '$measurement'
37+
# measurement: '$measurement'
38+
39+
# filters are Prometheus/InfluxQL query filters
40+
# By specifying them, you can filter metrics by Prometheus label conditions
41+
# or InfluxDB tag conditions.
42+
# Use app: ['=', 'myapp'] to display only metrics with 'myapp' app label/tag.
43+
# Use app: ['=~', '/^myapp\d/'] to display only metrics with app label/tag satisfying
44+
# a regular expression. See PromQL/InfluxQL documentation for a regex syntax.
45+
# Use job: ['=~', '$job'] to display only metrics with '$job' variable value job label/tag.
46+
# Beware that only job and alias (label_pairs_alias for InfluxDB) template variables
47+
# would be built automatically, if required.
48+
# default is {}
49+
filters: {
50+
job: ['=~', '$job'],
51+
alias: ['=~', '$alias'],
52+
}
53+
54+
# sections are dashboard panels sections to be included
55+
# The list of supported sections:
56+
# - cluster
57+
# - replication
58+
# - http
59+
# - net
60+
# - slab
61+
# - mvcc
62+
# - space
63+
# - vinyl
64+
# - cpu
65+
# - cpu_extended' # for TDG
66+
# - runtime
67+
# - luajit
68+
# - operations
69+
# - crud
70+
# - expirationd
71+
# - tdg_kafka_common
72+
# - tdg_kafka_brokers
73+
# - tdg_kafka_topics
74+
# - tdg_kafka_consumer
75+
# - tdg_kafka_producer
76+
# - tdg_tuples
77+
# - tdg_file_connectors
78+
# - tdg_graphql
79+
# - tdg_iproto
80+
# - tdg_rest_api
81+
# - tdg_tasks
82+
# default is [cluster, replication, http, net, slab, mvcc, space, vinyl, cpu, runtime, luajit, operations, crud, expirationd]
83+
sections:
84+
- cluster
85+
- replication
86+
- http
87+
- net
88+
- slab
89+
- mvcc
90+
- space
91+
- vinyl
92+
- cpu
93+
- runtime
94+
- luajit
95+
- operations
96+
- crud
97+
- expirationd
98+
99+
# Configuration example: prometheus dashboard with template variables
100+
# type: prometheus
101+
# datasource: '$prometheus'
102+
# filters: {
103+
# job: ['=~', '$job'],
104+
# alias: ['=~', '$alias'],
105+
# }
106+
107+
# Configuration example: prometheus static dashboard
108+
# type: prometheus
109+
# datasource: MyPrometheusWithTarantoolMetrics
110+
# filters: {
111+
# job: ['=', 'MyJobWithTarantoolMetrics'],
112+
# }
113+
114+
# Configuration example: prometheus static dashboard with additional labels
115+
# type: prometheus
116+
# datasource: MyPrometheusWithTarantoolMetrics
117+
# filters: {
118+
# job: ['=', 'MyJobWithTarantoolMetrics'],
119+
# vendor_app_tag: ['=', 'MyCacheApplication'],
120+
# }
121+
122+
# Configuration example: prometheus static dashboard with specific sections
123+
# type: prometheus
124+
# datasource: MyPrometheusWithTarantoolMetrics
125+
# filters: {
126+
# job: ['=', 'MyJobWithTarantoolMetrics'],
127+
# }
128+
# sections:
129+
# - cluster
130+
# - replication
131+
# - http
132+
# - net
133+
# - slab
134+
# - space
135+
# - runtime
136+
# - luajit
137+
# - operations
138+
139+
# Configuration example: prometheus static TDG dashboard
140+
# type: prometheus
141+
# title: Tarantool Data Grid dashboard
142+
# grafana_tags: [tarantool, TDG]
143+
# datasource: MyPrometheusWithTDGMetrics
144+
# filters: {
145+
# job: ['=', 'MyJobWithTDGMetrics'],
146+
# }
147+
# sections:
148+
# - cluster
149+
# - replication
150+
# - http
151+
# - net
152+
# - slab
153+
# - mvcc
154+
# - space
155+
# - vinyl
156+
# - cpu_extended
157+
# - runtime
158+
# - luajit
159+
# - operations
160+
# - crud
161+
# - tdg_kafka_common
162+
# - tdg_kafka_brokers
163+
# - tdg_kafka_topics
164+
# - tdg_kafka_consumer
165+
# - tdg_kafka_producer
166+
# - expirationd
167+
# - tdg_tuples
168+
# - tdg_file_connectors
169+
# - tdg_graphql
170+
# - tdg_iproto
171+
# - tdg_rest_api
172+
# - tdg_tasks
173+
174+
# Configuration example: influxdb dashboard with template variables
175+
# type: influxdb
176+
# datasource: '$influxdb'
177+
# policy: '$policy'
178+
# measurement: '$measurement'
179+
# filters: {
180+
# label_pairs_alias: ['=~', '/^$label_pairs_alias$/'],
181+
# }
182+
183+
# Configuration example: influxdb static dashboard
184+
# type: influxdb
185+
# datasource: MyInfluxDBWithTarantoolMetrics
186+
# policy: default
187+
# measurement: MyMeasurementWithTarantoolMetrics
188+

0 commit comments

Comments
 (0)