removed alerting sections

This commit is contained in:
Brian Christner 2017-02-21 16:24:53 +01:00
parent 5fc81f6c26
commit 10fe1a52ca
No known key found for this signature in database
GPG key ID: 8453AD0CB29591D1
3 changed files with 0 additions and 50 deletions

View file

@ -51,31 +51,6 @@ Now we need to create the Prometheus Datasource in order to connect Grafana to P
<img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/Add_Data_Source.png" width="400" heighth="400"> <img src="https://github.com/vegasbrianc/github-monitoring/blob/master/images/Add_Data_Source.png" width="400" heighth="400">
## Alerting
Alerting has been added to the stack with Slack integration. 2 Alerts have been added and are managed
Alerts - `prometheus/alert.rules`
Slack configuration - `alertmanager/config.yml`
The Slack configuration requires to build a custom integration.
* Open your slack team in your browser https://<your-slack-team>.slack.com/apps
* Click build in the upper right corner
* Make Custom integration
* Choose Incomming Web Hooks
* Select which channel
* Copy the Webhook URL into the `alertmanager/config.yml` URL section
* Fill in Slack username and channel
View Prometheus alerts `http://<Host IP Address>:9090/alerts`
View Alert Manager `http://<Host IP Address>:9093`
### Test Alerts
A quick test for your alerts is to stop a service. Stop the node_exporter container and you should notice shortly the alert arrive in Slack. Also check the alerts in both the Alert Manager and Prometheus Alerts just to understand how they flow through the system.
High load test alert - `docker run --rm -it busybox sh -c "while true; do :; done"``
Let this run for a few minutes and you will notice the load alert appear.
## Install Dashboard ## Install Dashboard
I created a Dashboard template which is available on [GitHub Stats Dashboard](https://grafana.net/dashboards/1559). Simply download the dashboard and select from the Grafana menu -> Dashboards -> Import I created a Dashboard template which is available on [GitHub Stats Dashboard](https://grafana.net/dashboards/1559). Simply download the dashboard and select from the Grafana menu -> Dashboards -> Import

View file

@ -1,11 +0,0 @@
route:
receiver: 'slack'
repeat_interval: 1m
receivers:
- name: 'slack'
slack_configs:
- send_resolved: true
username: 'vegasbrianc'
channel: '#notifications'
api_url: 'https://hooks.slack.com/services/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'

View file

@ -20,29 +20,15 @@ services:
command: command:
- '-config.file=/etc/prometheus/prometheus.yml' - '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus' - '-storage.local.path=/prometheus'
- '-alertmanager.url=http://alertmanager:9093'
expose: expose:
- 9090 - 9090
ports: ports:
- 9090:9090 - 9090:9090
links: links:
- alertmanager:alertmanager
- metrics:metrics - metrics:metrics
networks: networks:
- back-tier - back-tier
alertmanager:
image: prom/alertmanager
ports:
- 9093:9093
volumes:
- ./alertmanager/:/etc/alertmanager/
networks:
- back-tier
command:
- '-config.file=/etc/alertmanager/config.yml'
- '-storage.path=/alertmanager'
grafana: grafana:
image: grafana/grafana image: grafana/grafana
depends_on: depends_on: