-
Notifications
You must be signed in to change notification settings - Fork 0
/
loki.clab.yml
126 lines (115 loc) · 3.24 KB
/
loki.clab.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Copyright 2020 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
name: loki
#prefix: ""
mgmt:
network: loki
ipv4-subnet: 172.80.80.0/24
topology:
defaults:
kind: nokia_srlinux
kinds:
nokia_srlinux:
image: registry.srlinux.dev/pub/srlinux:24.3.1
type: ixrd2l
linux:
image: ghcr.io/hellt/network-multitool
nodes:
### SPINES ###
spine1:
type: ixrd3l
group: spine
startup-config: configs/fabric/spine1.cfg
mgmt-ipv4: 172.80.80.21
spine2:
type: ixrd3l
group: spine
startup-config: configs/fabric/spine2.cfg
mgmt-ipv4: 172.80.80.22
### LEAFS ###
leaf1:
startup-config: configs/fabric/leaf1.cfg
mgmt-ipv4: 172.80.80.11
group: leaf
leaf2:
startup-config: configs/fabric/leaf2.cfg
mgmt-ipv4: 172.80.80.12
group: leaf
leaf3:
startup-config: configs/fabric/leaf3.cfg
mgmt-ipv4: 172.80.80.13
group: leaf
### CLIENTS ###
client1:
kind: linux
mgmt-ipv4: 172.80.80.31
exec:
- ip address add 172.17.0.1/24 dev eth1
- ip -6 address add 2002::172:17:0:1/96 dev eth1
- iperf3 -s -p 5201 -D > iperf3_1.log
- iperf3 -s -p 5202 -D > iperf3_2.log
group: server
client2:
kind: linux
mgmt-ipv4: 172.80.80.32
binds:
- configs/client2:/config
exec:
- ip address add 172.17.0.2/24 dev eth1
- ip -6 address add 2002::172:17:0:2/96 dev eth1
group: server
client3:
kind: linux
mgmt-ipv4: 172.80.80.33
binds:
- configs/client3:/config
exec:
- ip address add 172.17.0.3/24 dev eth1
- ip -6 address add 2002::172:17:0:3/96 dev eth1
group: server
### LOGGING STACK ###
grafana:
kind: linux
mgmt-ipv4: 172.80.80.43
image: grafana/grafana:10.2.1
binds:
- configs/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- configs/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- configs/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 8000:3000
env:
GF_ORG_ROLE: "Admin"
GF_ORG_NAME: "Main Org"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS: "true"
group: "10"
promtail:
kind: linux
mgmt-ipv4: 172.80.80.45
image: grafana/promtail:2.9.2
binds:
- configs/promtail:/etc/promtail
cmd: --config.file=/etc/promtail/promtail-config.yml
ports:
- 9080:9080
loki:
kind: linux
mgmt-ipv4: 172.80.80.46
image: grafana/loki:2.9.2
binds:
- configs/loki:/etc/loki
cmd: --config.file=/etc/loki/loki-config.yml
ports:
- 3100:3100
links:
- endpoints: ["spine1:e1-1", "leaf1:e1-49"]
- endpoints: ["spine1:e1-2", "leaf2:e1-49"]
- endpoints: ["spine1:e1-3", "leaf3:e1-49"]
- endpoints: ["spine2:e1-1", "leaf1:e1-50"]
- endpoints: ["spine2:e1-2", "leaf2:e1-50"]
- endpoints: ["spine2:e1-3", "leaf3:e1-50"]
- endpoints: ["leaf1:e1-1", "client1:eth1"]
- endpoints: ["leaf2:e1-1", "client2:eth1"]
- endpoints: ["leaf3:e1-1", "client3:eth1"]