-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodes.example.json
More file actions
28 lines (28 loc) · 902 Bytes
/
Copy pathnodes.example.json
File metadata and controls
28 lines (28 loc) · 902 Bytes
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
{
"comment": "Optional. hopscope draws its map from your logs; this only renames, relabels, re-kinds, pins or regroups what it finds. Run with: hopscope --config examples/nodes.example.json. Maps (rename, labels, kinds, positions, groups, datastores, tallies) merge with the defaults; lists (serviceFields, rules, gateways) replace them.",
"serviceFields": ["k8s.container.name", "service.name", "service_name", "app"],
"rename": {
"api-canary": "api",
"web-blue": "web",
"web-green": "web"
},
"labels": {
"api": "orders api",
"database": "postgres (primary)"
},
"kinds": {
"gateway": "edge",
"payments": "external"
},
"groups": {
"clients": "internet",
"services": "prod · eu-west-1",
"data": "storage & vendors"
},
"tallies": {
"sql": "postgres"
},
"rules": [
{ "node": "db", "service": "^api$", "msg": "^slow query" }
]
}