Updated prometheus config to be version 1 compliant (#256)
Updates to Prometheus config Actually updated the version this time
This commit is contained in:
parent
b1f224c4af
commit
c4637677e8
25
templates/Prometheus/2/README.md
Normal file
25
templates/Prometheus/2/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
# Prometheus
|
||||
|
||||
### Info:
|
||||
|
||||
This template deploys a collection of containers based upon the technologies below, once deployed you should have a monitoring platform capable of querying all aspects of your environment with some nice pre-built dashboards.
|
||||
In this deployment the following technologies are utilised to make this as useful as possible.
|
||||
* **Prometheus** - Used to scrape and store metrics from our data sources. (https://github.com/prometheus/prometheus)
|
||||
* **Prometheus Node Exporter** - Gets host level metrics and exposes them to Prometheus. (https://github.com/prometheus/node_exporter)
|
||||
* **Ranch-Eye** - Pre-configured lightwieght haproxy to expose the cadvsior stats used by Rancher's agent container, to Prometheus. (https://github.com/Rucknar/ranch-eye)
|
||||
* **Grafana** - Used to visualise the data from Prometheus and InfluxDB. (https://github.com/grafana/grafana/)
|
||||
* **InfluxDB** - Used as database for storing rancher server metrics that rancher exports via the graphite connector. (https://github.com/influxdata/influxdb)
|
||||
* **rancher-api-integration** - Allows Prometheus to access the Rancher API and return the status of any stack or service in the rancher environment associated with the API key used.(https://github.com/Limilo/prometheus-rancher-exporter/)
|
||||
|
||||
To get the full compliment of metrics available,you need to configure the Rancher `graphite.host` address. This can be done automatically when you deploy the template by choosing the option below, for more information or how to do this change manually,see the following [guide](https://github.com/Rucknar/Guide_Rancher_Monitoring)
|
||||
|
||||
All components in this stack are open source tools available in the community. All this template does is to bound them together in an easy to use package.
|
||||
I expect most people who find this useful will make use of this as a starting point and develop it further around their own needs.
|
||||
|
||||
## Deployment:
|
||||
* Select Prometheus from the community catalog.
|
||||
* Click deploy.
|
||||
|
||||
## Usage
|
||||
* Grafana will now be available on, running on port 3000. I've added a number of dashboards to help get you started. Authentication is with the default `admin/admin`.
|
||||
* Prometheus will now be available, running on port 9090. Have a play around with some of the data. For more information on Prometheus - https://prometheus.io/docs/introduction/overview/
|
77
templates/Prometheus/2/docker-compose.yml
Normal file
77
templates/Prometheus/2/docker-compose.yml
Normal file
@ -0,0 +1,77 @@
|
||||
ranch-eye:
|
||||
ports:
|
||||
- 9104:9104/tcp
|
||||
labels:
|
||||
io.rancher.scheduler.global: 'true'
|
||||
io.rancher.container.dns: true
|
||||
tty: true
|
||||
image: infinityworks/ranch-eye:03
|
||||
stdin_open: true
|
||||
net: "host"
|
||||
|
||||
node-exporter:
|
||||
labels:
|
||||
io.rancher.scheduler.global: 'true'
|
||||
tty: true
|
||||
image: prom/node-exporter:latest
|
||||
stdin_open: true
|
||||
|
||||
prom-conf:
|
||||
tty: true
|
||||
image: infinityworks/prom-conf:14
|
||||
volumes:
|
||||
- /etc/prom-conf/
|
||||
|
||||
prometheus:
|
||||
tty: true
|
||||
image: prom/prometheus:v1.0.2
|
||||
command: -alertmanager.url=http://alertmanager:9093 -config.file=/etc/prom-conf/prometheus.yml -storage.local.path=/prometheus -web.console.libraries=/etc/prometheus/console_libraries -web.console.templates=/etc/prometheus/consoles
|
||||
ports:
|
||||
- 9090:9090
|
||||
labels:
|
||||
io.rancher.sidekicks: prom-conf
|
||||
volumes_from:
|
||||
- prom-conf
|
||||
links:
|
||||
- ranch-eye:ranch-eye
|
||||
- node-exporter:node-exporter
|
||||
- prometheus-rancher-exporter:prometheus-rancher-exporter
|
||||
|
||||
influxdb:
|
||||
image: tutum/influxdb:0.10
|
||||
ports:
|
||||
- 8083:8083
|
||||
- 8086:8086
|
||||
- 8090:8090
|
||||
- 2003:2003
|
||||
environment:
|
||||
- PRE_CREATE_DB=grafana;prometheus;rancher
|
||||
- GRAPHITE_DB=rancher
|
||||
- GRAPHITE_BINDING=:2003
|
||||
|
||||
graf-db:
|
||||
tty: true
|
||||
image: infinityworks/graf-db:08
|
||||
command: cat
|
||||
volumes:
|
||||
- /var/lib/grafana/
|
||||
|
||||
grafana:
|
||||
tty: true
|
||||
image: grafana/grafana:3.0.1
|
||||
ports:
|
||||
- 3000:3000
|
||||
labels:
|
||||
io.rancher.sidekicks: graf-db
|
||||
volumes_from:
|
||||
- graf-db
|
||||
links:
|
||||
- prometheus:prometheus
|
||||
- prometheus-rancher-exporter:prometheus-rancher-exporter
|
||||
|
||||
prometheus-rancher-exporter:
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.create_agent: true
|
||||
io.rancher.container.agent.role: environment
|
||||
image: infinityworks/prometheus-rancher-exporter:04
|
57
templates/Prometheus/2/rancher-compose.yml
Normal file
57
templates/Prometheus/2/rancher-compose.yml
Normal file
@ -0,0 +1,57 @@
|
||||
.catalog:
|
||||
name: "Prometheus"
|
||||
version: "1.3.0"
|
||||
description: "Prometheus Monitoring Solution"
|
||||
uuid: prometheus-2
|
||||
minimum_rancher_version: v0.59.0
|
||||
questions:
|
||||
|
||||
ranch-eye:
|
||||
upgrade_strategy:
|
||||
start_first: true
|
||||
|
||||
node-exporter:
|
||||
upgrade_strategy:
|
||||
start_first: true
|
||||
|
||||
prometheus:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: 9090
|
||||
interval: 5000
|
||||
unhealthy_threshold: 3
|
||||
request_line: ''
|
||||
healthy_threshold: 2
|
||||
response_timeout: 5000
|
||||
|
||||
influxdb:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: 8086
|
||||
interval: 5000
|
||||
unhealthy_threshold: 3
|
||||
request_line: ''
|
||||
healthy_threshold: 2
|
||||
response_timeout: 5000
|
||||
|
||||
grafana:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: 3000
|
||||
interval: 5000
|
||||
unhealthy_threshold: 3
|
||||
request_line: ''
|
||||
healthy_threshold: 2
|
||||
response_timeout: 5000
|
||||
|
||||
prometheus-rancher-exporter:
|
||||
scale: 1
|
||||
upgrade_strategy:
|
||||
start_first: true
|
||||
health_check:
|
||||
port: 9010
|
||||
interval: 5000
|
||||
unhealthy_threshold: 3
|
||||
request_line: ''
|
||||
healthy_threshold: 2
|
||||
response_timeout: 5000
|
@ -1,5 +1,5 @@
|
||||
name: Prometheus
|
||||
description: |
|
||||
Prometheus and friends, auto-discovering monitoring solution for Rancher deployments.
|
||||
version: 1.1.0
|
||||
version: 1.3.0
|
||||
category: Monitoring
|
||||
|
Loading…
x
Reference in New Issue
Block a user