Skip to content

Commit

Permalink
#73 upgrade Docker images to latest versions and fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed May 28, 2018
1 parent 6f836f4 commit 6906b59
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 30 deletions.
2 changes: 1 addition & 1 deletion services/geoserver/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.1'

services:
geoserver:
image: smartemission/se-geoserver:2.12.1-1
image: smartemission/se-geoserver:2.12.1-2

container_name: geoserver

Expand Down
2 changes: 1 addition & 1 deletion services/grafana/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
container_name: grafana

environment:
- GF_INFLUX_URL=http://influxdb:8086
- SE_INFLUX_URL=http://influxdb:8086
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana

env_file:
Expand Down
2 changes: 1 addition & 1 deletion services/monitoring/cadvisor/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export GOPATH="/opt/cadvisor/src/github.com/google/cadvisor"
export PATH="${GOPATH}:${GOROOT}/bin:${PATH}"

cd ${GOPATH}
./cadvisor -listen_ip ${PARENT_HOST} -port 8080
./cadvisor -listen_ip ${PARENT_HOST} -port 8081
52 changes: 27 additions & 25 deletions services/monitoring/docker-compose-14.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,10 @@ volumes:

services:

grafana:
image: grafana/grafana:4.6.3
labels:
- "traefik.backend=grafanamon"
- "traefik.enable=true"
- "traefik.frontend.priority=600"
- "traefik.frontend.rule=Method:GET"
- "traefik.frontend.rule=PathPrefixStrip:/adm/grafanamon"
# - "traefik.frontend.auth.basic=sadmin:$$apr1$$gVo/HcPx$$2AudzGfyX7Xxg7aD/b1zf."
- "traefik.docker.network=se_back"

depends_on:
- prometheus
links:
- prometheus:prometheus
# ports:
# - 3000:3000
volumes:
- grafana_data:/var/lib/grafana
env_file:
- grafana/grafana.conf
networks:
# Visible in SE backend and frontend Docker network
- se_back

prometheus:
# image: prom/prometheus:v2.0.0
image: prom/prometheus:latest
container_name: prometheus
labels:
- "traefik.backend=prometheus"
- "traefik.enable=true"
Expand Down Expand Up @@ -88,6 +64,32 @@ services:
# constraints:
# - node.hostname == moby

grafana:
image: grafana/grafana:4.6.3
container_name: grafanamon
labels:
- "traefik.backend=grafanamon"
- "traefik.enable=true"
- "traefik.frontend.priority=600"
- "traefik.frontend.rule=Method:GET"
- "traefik.frontend.rule=PathPrefixStrip:/adm/grafanamon"
# - "traefik.frontend.auth.basic=sadmin:$$apr1$$gVo/HcPx$$2AudzGfyX7Xxg7aD/b1zf."
- "traefik.docker.network=se_back"

depends_on:
- prometheus
links:
- prometheus:prometheus
# ports:
# - 3000:3000
volumes:
- grafana_data:/var/lib/grafana
env_file:
- grafana/grafana.conf
networks:
# Visible in SE backend and frontend Docker network
- se_back

alertmanager:
image: prom/alertmanager
# ports:
Expand Down
2 changes: 1 addition & 1 deletion services/monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ scrape_configs:
# scheme defaults to 'http'.

static_configs:
- targets: ['$CADVISOR_HOST:8080','$NODE_EXPORTER_HOST:9100']
- targets: ['$CADVISOR_HOST:8081','$NODE_EXPORTER_HOST:9100']
2 changes: 1 addition & 1 deletion services/sos52n/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.1'

services:
sos52n:
image: smartemission/se-sos52n:4.3.7-4
image: smartemission/se-sos52n:4.3.7-3

container_name: sos52n

Expand Down

0 comments on commit 6906b59

Please sign in to comment.