Skip to content

Commit ce1708a

Browse files
author
Jonathan Chauncey
committed
chore: Update monitoring to follow current best practices
Updates makefiles to follow current standards Updates manifests to follow what will ship in workflow-* Updates READMEs with new make targets Removes chronograf as we are not shipping that dashboard
1 parent 1ec8c66 commit ce1708a

33 files changed

Lines changed: 284 additions & 351 deletions

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ This Deis component is currently in beta status, and we welcome your input! If y
1313

1414

1515
# About
16-
This repository aims to contain all the necessary components for a production quality monitoring solution that runs on top of the kubernetes cluster scheduler. It provides the [TICK](https://influxdata.com/time-series-platform/) stack which is produced by the influxdata team.
16+
This repository aims to contain all the necessary components for a production quality monitoring solution that runs on top of the kubernetes cluster scheduler. It provides part of the [TICK](https://influxdata.com/time-series-platform/) stack which is produced by the influxdata team.
1717

1818
## Current State
19-
Currently this repo provides only 2 components (influxdb and telegraf). Telegraf is the metrics collection agent that runs using the daemon set API. For more infomation please read [this](telegraf/README.md).
19+
Currently this repo provides only 3 components (Influxdb, Telegraf, and Grafana). Telegraf is the metrics collection agent that runs using the daemon set API. For more infomation please read [this](telegraf/README.md).
2020

21-
Also provided is an influxdb container which only runs 1 instance of the database. It also does not write any data to the host filesystem so it is not a durable system right now. For more information please read [this](influxdb/README.md)
21+
Also provided is an Influxdb container which only runs 1 instance of the database. It also does not write any data to the host filesystem so it is not a durable system right now. For more information please read [this](influxdb/README.md)
22+
23+
Lastly, Grafana is a stand alone graphing application. It natively supports Influxdb as a datasource and provides a robust engine for creating dashboards on top of timeseries data. We provide a few out of the box dashboards for monitoring Deis Workflow and Kubernetes but please feel free to use them as a starting point for creating your own dashboards.
2224

2325
## License
2426
Copyright 2013, 2014, 2015, 2016 Engine Yard, Inc.

chronograf/.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

chronograf/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

chronograf/Makefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

chronograf/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

chronograf/config.toml

Lines changed: 0 additions & 21 deletions
This file was deleted.

chronograf/manifests/deis-monitor-chronograf-proxy-pod.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

chronograf/manifests/deis-monitor-chronograf-rc.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

chronograf/manifests/deis-monitor-chronograf-svc.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

grafana/Makefile

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1-
SHORT_NAME ?= grafana
1+
SHELL = /bin/bash
2+
3+
DOCKER_HOST = $(shell echo $$DOCKER_HOST)
24
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
5+
SHORT_NAME ?= grafana
36
DEIS_REGISTRY ?= ${DEV_REGISTRY}
47
IMAGE_PREFIX ?= deis
5-
IMAGE_LATEST := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:latest
6-
IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${BUILD_TAG}
78

8-
info:
9-
@echo "Build tag: ${BUILD_TAG}"
10-
@echo "Registry: ${DEIS_REGISTRY}"
11-
@echo "Image: ${IMAGE}"
9+
include versioning.mk
1210

11+
build: docker-build
12+
push: docker-push
13+
install: kube-install
14+
uninstall: kube-delete
15+
upgrade: kube-update
16+
1317
docker-build:
14-
docker build -t $(IMAGE_LATEST) rootfs
15-
docker tag -f $(IMAGE_LATEST) $(IMAGE)
18+
docker build -t ${IMAGE} rootfs
19+
docker tag ${IMAGE} ${MUTABLE_IMAGE}
1620

17-
docker-push:
18-
docker push ${IMAGE}
21+
clean: check-docker
22+
docker rmi $(IMAGE)
1923

20-
kube-delete: update-manifests
21-
-kubectl delete -f manifests/deis-monitor-grafana-svc.yaml
22-
-kubectl delete -f manifests/deis-monitor-grafana-proxy-pod.yaml
23-
-kubectl delete -f manifests/deis-monitor-grafana-rc.tmp.yaml
24+
update-manifests:
25+
sed 's#\(image:\) .*#\1 $(IMAGE)#' manifests/deis-monitor-grafana-rc.yaml > manifests/deis-monitor-grafana-rc.tmp.yaml
2426

25-
kube-create: update-manifests
27+
kube-install: update-manifests
2628
kubectl create -f manifests/deis-monitor-grafana-svc.yaml
27-
kubectl create -f manifests/deis-monitor-grafana-rc.tmp.yaml
28-
kubectl create -f manifests/deis-monitor-grafana-proxy-pod.yaml
29+
kubectl create -f manifests/deis-monitor-grafana-rc.yaml
30+
31+
kube-delete:
32+
kubectl delete -f manifests/deis-monitor-grafana-svc.yaml
33+
kubectl delete -f manifests/deis-monitor-grafana-rc.yaml
2934

3035
kube-update: update-manifests
3136
kubectl delete -f manifests/deis-monitor-grafana-rc.tmp.yaml
32-
kubectl create -f manifests/deis-monitor-grafana-rc.tmp.yaml
33-
34-
update-manifests:
35-
sed 's#\(image:\) .*#\1 $(IMAGE)#' manifests/deis-monitor-grafana-rc.yaml > manifests/deis-monitor-grafana-rc.tmp.yaml
37+
kubectl create -f manifests/deis-monitor-grafana-rc.tmp.yaml

0 commit comments

Comments
 (0)