Skip to content
Snippets Groups Projects
Commit ef357293 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'compose-stack' into 'main'

Compose stack

See merge request danet/csbi!5
parents 34140a2e 43dd0a5b
No related branches found
No related tags found
No related merge requests found
repository-base-path: "./models" repository-base-path: "./models"
orchestrator-shutown-timeout: "1min" orchestrator-shutown-timeout: "1min"
\ No newline at end of file docker-orchestrator-network: "csbi-dev-net"
\ No newline at end of file
...@@ -126,6 +126,6 @@ func initConfig() { ...@@ -126,6 +126,6 @@ func initConfig() {
} }
viper.SetDefault("repository-base-path", "./models") viper.SetDefault("repository-base-path", "./models")
viper.SetDefault("orchestrator-shutown-timeout", time.Duration(1)*time.Minute) viper.SetDefault("orchestrator-shutown-timeout", time.Duration(1)*time.Minute)
viper.SetDefault("docker-orchestrator-network", "msc-thesis_default") viper.SetDefault("docker-orchestrator-network", "csbi-dev-net")
log.WithFields(viper.AllSettings()).Debug("current viper config") log.WithFields(viper.AllSettings()).Debug("current viper config")
} }
version: "3.9"
services:
gosdn:
image: registry.code.fbi.h-da.de/danet/gosdn:thesis-mk
ports:
- "55055:55055"
- "40000:40000"
security_opt: ["apparmor=unconfined"]
cap_add: [SYS_PTRACE]
environment:
- GOSDN_LOG=trace
command: ["--csbi-orchestrator", "orchestrator:55056"]
gnmi-target:
build:
context: ./gnmi-target
dockerfile: Dockerfile
ports:
- "7030:7030"
orchestrator:
image: registry.code.fbi.h-da.de/danet/csbi:latest
ports:
- "55056:55056"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
command: ["--log-level", "trace"]
prometheus:
image: prom/prometheus:v2.29.1
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:7.5.7
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- grafana-data:/var/lib/grafana
volumes:
prometheus-data:
grafana-data:
networks:
csbi-dev-net:
\ No newline at end of file
datasources:
- name: Prometheus
access: proxy
type: prometheus
url: http://prometheus:9090
isDefault: true
groups:
- name: DemoAlerts
rules:
- alert: InstanceDown
expr: up{job="services"} < 1
for: 5m
global:
scrape_interval: 5s
scrape_timeout: 10s
rule_files:
- alert.yml
scrape_configs:
- job_name: services
metrics_path: /metrics
static_configs:
- targets:
- 'prometheus:9090'
- 'gosdn:8080'
- 'orchestrator:9338'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment