Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

add -y to yum update #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ MySQL monitoring example using docker-compose to orchestrate a monitoring soluti
* cd to monitor and run: `docker-compose up -d`
* To install an example db node with associated collectors, cd to example_dbnode and run: `docker-compose up -d`
* To install only the collecters using docker (not required for the example dbnode), cd to collecters and run: `docker-compose up -d`
* Manually create external network (monitor_dbnode) which required by collectors and example_dbnode. Using the following command:`docker network create monitor_dbnode`

If you want to monitor other hosts edit the prometheus config file `./prometheus/config/prometheus.yml` add additional targets or your service discovery of choice, and restart prometheus, cd to monitor and run: `docker-compose restart prometheus`

Expand Down
2 changes: 1 addition & 1 deletion example_dbnode/sysbench/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM centos:latest
MAINTAINER Ben Mildren

RUN yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm && \
yum update && \
yum -y update && \
sed -i 's/tsflags=nodocs//g' /etc/yum.conf && \
yum install -y sysbench nmap && \
yum clean all && \
Expand Down
12 changes: 6 additions & 6 deletions monitor/prometheus/config/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@ global:

scrape_configs:
- job_name: prometheus
target_groups:
static_configs:
- targets: ['localhost:9090']

- job_name: linux
target_groups:
static_configs:
- targets: ['db1_node_exporter:9100']
labels:
alias: db1

- job_name: docker
target_groups:
static_configs:
- targets: ['db1_cadvisor:8080']
labels:
alias: db1

- job_name: mysql-hres
target_groups:
static_configs:
- targets: ['db1_mysqld_exporter_hres:9104']
labels:
alias: db1

- job_name: mysql-mres
scrape_interval: 5s
scrape_timeout: 1s
target_groups:
static_configs:
- targets: ['db1_mysqld_exporter_mres:9105']
labels:
alias: db1

- job_name: mysql-lres
scrape_interval: 60s
scrape_timeout: 5s
target_groups:
static_configs:
- targets: ['db1_mysqld_exporter_lres:9106']
labels:
alias: db1