-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_example.json
44 lines (44 loc) · 1.12 KB
/
config_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"metricsPrefix": "graphql_exporter_",
"graphqlURL": "http://localhost:8090/graphql/",
"graphqlAPIToken": "Token SECRET",
"cacheExpire": 0,
"queryTimeout": 60,
"failFast": false,
"extendCacheOnError": false,
"queries":[
{
"query": "query {device_list {name serial custom_fields}} {{NOW \"-1h\"}}",
"metrics": [
{
"description": "Deprecation date",
"placeholder": "device_list",
"labels": [
"name",
"custom_fields,order_contract_id",
"serial"
],
"value": "custom_fields,depreciation_date"
},
{
"description": "Device price",
"placeholder": "device_list",
"labels": [
"name",
"custom_fields,order_contract_id"
],
"value": "custom_fields,price"
},
{
"description": "Device memory total",
"placeholder": "device_list",
"labels": [
"name",
"custom_fields,order_contract_id"
],
"value": "custom_fields,memory_total"
}
]
}
]
}