-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathprometheus.clab.yaml
More file actions
79 lines (69 loc) · 2.21 KB
/
prometheus.clab.yaml
File metadata and controls
79 lines (69 loc) · 2.21 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
# © 2022 Nokia.
#
# This code is a Contribution to the gNMIc project (“Work”) made under the Google Software Grant and Corporate Contributor License Agreement (“CLA”) and governed by the Apache License 2.0.
# No other rights or licenses in or to any of Nokia’s intellectual property are granted for any other purpose.
# This code is provided on an “as is” basis without any warranties of any kind.
#
# SPDX-License-Identifier: Apache-2.0
name: lab14
mgmt:
ipv4-subnet: 192.168.1.0/24
topology:
defaults:
kind: nokia_srlinux
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux
nodes:
spine1:
spine2:
leaf1:
leaf2:
leaf3:
leaf4:
gnmic:
kind: linux
image: ghcr.io/openconfig/gnmic
binds:
- ./gnmic.yaml:/app/gnmic.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
cmd: "--config /app/gnmic.yaml --log subscribe"
consul-agent:
kind: linux
image: hashicorp/consul:latest
ports:
- 8500:8500
- 8600:8600/udp
cmd: "agent -server -ui -bind=127.0.0.1 -node=server-1 -bootstrap-expect=1 -client=0.0.0.0"
prometheus:
kind: linux
image: prom/prometheus:latest
user: 65534:65534
ports:
- 9090:9090
binds:
- ./prometheus/:/etc/prometheus/
cmd: |
--config.file=/etc/prometheus/prometheus.yaml
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
--log.level=debug
grafana:
kind: linux
image: grafana/grafana:latest
binds:
- grafana/datasources/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
#- grafana/dashboards/:/var/lib/grafana/dashboards
ports:
- 3000:3000
links:
# spine1 links
- endpoints: ["spine1:e1-1", "leaf1:e1-1"]
- endpoints: ["spine1:e1-2", "leaf2:e1-1"]
- endpoints: ["spine1:e1-3", "leaf3:e1-1"]
- endpoints: ["spine1:e1-4", "leaf4:e1-1"]
# spine2 links
- endpoints: ["spine2:e1-1", "leaf1:e1-2"]
- endpoints: ["spine2:e1-2", "leaf2:e1-2"]
- endpoints: ["spine2:e1-3", "leaf3:e1-2"]
- endpoints: ["spine2:e1-4", "leaf4:e1-2"]