forked from esanchezv73/lab-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtopo-telemetria.yml
More file actions
108 lines (93 loc) · 3.01 KB
/
Copy pathtopo-telemetria.yml
File metadata and controls
108 lines (93 loc) · 3.01 KB
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
name: lab-telemetria
mgmt:
network: mgmt
ipv4-subnet: 172.80.80.0/24
topology:
nodes:
srlrouter:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux:24.10.1
type: ixr-d3
startup-config: router/srlrouter.cfg
srlswitch:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux:24.10.1
type: ixr-d3
startup-config: switch/srlswitch.cfg
# TELEMETRIA STACK
prometheus:
kind: linux
mgmt-ipv4: 172.80.80.42
image: quay.io/prometheus/prometheus:v2.54.1
binds:
- config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
cmd: --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
kind: linux
mgmt-ipv4: 172.80.80.43
image: grafana/grafana:latest
binds:
- config/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- config/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- config/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
env:
# env vars to enable anonymous access
GF_ORG_ROLE: "Admin"
GF_ORG_NAME: "Main Org"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_AUTH_ANONYMOUS: "true"
GF_AUTH_OAUTH_AUTO_LOGIN: "true"
gNMIc:
kind: linux
image: docker.io/esanchezv/hellt-gnmic:latest
binds:
- config/python_scapy.sh:/root/python_scapy.sh
- config/gnmic/gnmic-cpu-stats.yml:/gnmic-cpu-stats.yml:ro
- config/gnmic/gnmic-stats-metricas.yml:/gnmic-stats-metricas.yml:ro
exec:
- mkdir /data
- chmod +x /data
- chmod +x /root/python_scapy.sh
- bash /root/python_scapy.sh
PC2:
kind: linux
image: wbitt/network-multitool:alpine-extra
exec:
- ip route del default dev eth0
PC3:
kind: linux
image: docker.io/esanchezv/kaliipv6v2.2:latest
exec:
- ip route del default dev eth0
PC4:
kind: linux
image: docker.io/esanchezv/kaliipv6v2.2:latest
exec:
- ip route del default dev eth0
srvweb:
kind: linux
image: docker.io/esanchezv/srvhttps:latest
binds:
- config/iperf3.sh:/root/iperf3.sh
- config/web-server.html:/var/www/localhost/htdocs/index.html
exec:
- chmod +x /root/iperf3.sh
- bash /root/iperf3.sh
- ip -6 addr add 3fff:1::50/64 dev eth1
- ip -6 route add 2001:db8:100::/64 via 3fff:1::1
links:
- endpoints: ["srlrouter:e1-1","srlswitch:e1-1"]
- endpoints: ["srlrouter:e1-2","srvweb:eth1"]
- endpoints: ["gNMIc:eth1","srlswitch:e1-2"]
mtu: 1500
- endpoints: ["PC2:eth1","srlswitch:e1-3"]
mtu: 1500
- endpoints: ["PC3:eth1","srlswitch:e1-4"]
mtu: 1500
- endpoints: ["PC4:eth1","srlswitch:e1-5"]
mtu: 1500