master
json 61 lines 1.26 KB
Raw
1 {
2 "update_every": 123,
3 "autodetection_retry": 123,
4 "driver": "postgres",
5 "dsn": "host=localhost port=5432 user=netdata dbname=metrics sslmode=disable",
6 "cloud_auth": {
7 "provider": "none"
8 },
9 "timeout": 5,
10 "static_labels": {
11 "env": "prod",
12 "region": "eu-west"
13 },
14 "queries": [
15 {
16 "id": "get_users",
17 "query": "SELECT id, name FROM users"
18 }
19 ],
20 "metrics": [
21 {
22 "id": "users_metrics",
23 "query_ref": "get_users",
24 "query": "query",
25 "mode": "columns",
26 "kv_mode": {
27 "name_col": "metric_name",
28 "value_col": "metric_value"
29 },
30 "labels_from_row": [
31 {
32 "source": "status",
33 "name": "state"
34 }
35 ],
36 "charts": [
37 {
38 "title": "User Count",
39 "context": "app.users",
40 "family": "users",
41 "type": "line",
42 "units": "count",
43 "algorithm": "absolute",
44 "dims": [
45 {
46 "name": "users_total",
47 "source": "id",
48 "status_when": {
49 "equals": "equals",
50 "in": [
51 "in"
52 ],
53 "match": "match"
54 }
55 }
56 ]
57 }
58 ]
59 }
60 ]
61 }