Skip to content

Commit

Permalink
v1.0.2 release changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Jul 21, 2016
1 parent f34aa38 commit 126f9a8
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 43 deletions.
32 changes: 19 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
Percona Monitoring and Management (PMM) Server

unreleased 2016-06-24
v1.0.2 unreleased 2016-07-21

* Prometheus 0.20.0
* Various updates for MongoDB dashboards
* Minor updates to the landing page
* Grafana 3.1.0.
* Prometheus 1.0.0.
* Set default metrics retention to 30 days.
* Eliminated port 9001. Now the container uses only one configurable port, 80 by default.
* Eliminated the need to specify ADDRESS variable when creating docker container.
* Added support to name instances using the new pmm-admin.
* Redesigned query profile table on Query Analytics App.
* Added sparkline charts to Query Analytics App.
* Various updates for MongoDB dashboards.

v1.0.1 released 2016-06-09

* Grafana 3.0.4
* Prometheus 0.19.2
* Added MongoDB dashboards
* Replaced prom-config-api with Consul 0.6.4
* Eliminated most of the ports for PMM server container (now only two: 9001 and configurable 80)
* Added "Server Summary" with aggregated query metrics to QAN app
* MySQL dashboard updates, added "MySQL InnoDB Metrics Advanced" dashboard
* Added options to configure Prometheus memory and retention
* Grafana 3.0.4.
* Prometheus 0.19.2.
* Added MongoDB dashboards.
* Replaced prom-config-api with Consul 0.6.4.
* Eliminated most of the ports for PMM server container (now only two: 9001 and configurable 80).
* Added "Server Summary" with aggregated query metrics to QAN app.
* MySQL dashboard updates, added "MySQL InnoDB Metrics Advanced" dashboard.
* Added options to configure Prometheus memory and retention.

v1.0.0 released 2016-04-17

* First release
* First release.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:latest

EXPOSE 80 9001
EXPOSE 80

WORKDIR /opt

Expand All @@ -22,9 +22,9 @@ RUN apt-get -y update && apt-get install -y \
# Prometheus #
# ########## #

ADD https://github.com/prometheus/prometheus/releases/download/0.20.0/prometheus-0.20.0.linux-amd64.tar.gz /opt/
ADD https://github.com/prometheus/prometheus/releases/download/v1.0.0/prometheus-1.0.0.linux-amd64.tar.gz /opt/
RUN mkdir prometheus && \
tar xfz prometheus-0.20.0.linux-amd64.tar.gz --strip-components=1 -C prometheus
tar xfz prometheus-1.0.0.linux-amd64.tar.gz --strip-components=1 -C prometheus
COPY prometheus.yml /opt/prometheus/

# ####### #
Expand All @@ -51,13 +51,13 @@ RUN chgrp grafana /etc/grafana/grafana.ini && \
# Percona Query Analytics #
# ####################### #

ADD https://www.percona.com/downloads/TESTING/pmm/percona-qan-api-1.0.0-20160607.067b82c-x86_64.tar.gz \
https://www.percona.com/downloads/TESTING/pmm/percona-qan-app-1.0.0-20160610.f450c8e.tar.gz \
ADD https://www.percona.com/downloads/TESTING/pmm/percona-qan-api-1.0.0-20160706.9f5c394-x86_64.tar.gz \
https://www.percona.com/downloads/TESTING/pmm/percona-qan-app-1.0.0-20160706.2df9671.tar.gz \
/opt/
RUN mkdir qan-api && \
tar zxf percona-qan-api-1.0.0-20160607.067b82c-x86_64.tar.gz --strip-components=1 -C qan-api && \
tar zxf percona-qan-api-1.0.0-20160706.9f5c394-x86_64.tar.gz --strip-components=1 -C qan-api && \
mkdir qan-app && \
tar zxf percona-qan-app-1.0.0-20160610.f450c8e.tar.gz --strip-components=1 -C qan-app
tar zxf percona-qan-app-1.0.0-20160706.2df9671.tar.gz --strip-components=1 -C qan-app
COPY install-qan.sh /opt
RUN /opt/install-qan.sh

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ services:
container_name: pmm-server
image: percona/pmm-server
ports:
- "9001:9001"
- "80:80"
volumes_from:
- pmm-data
### EDIT WITH YOUR IP ###
environment:
- ADDRESS=192.168.56.107
#- METRICS_RETENTION=192h
#- METRICS_MEMORY=262144
# environment:
# - METRICS_RETENTION=720h
# - METRICS_MEMORY=262144
4 changes: 3 additions & 1 deletion install-qan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -eu
service mysql start

# START=no SYSINT=no because Supervisor starts and manages these processes.

cd /opt/qan-api
START="no" SYSINT="no" ./install

# Define /qan-api path for QAN app
sed -i "s/':9001',/':' + window.location.port + '\/qan-api',/" /opt/qan-app/client/app/app.js
2 changes: 1 addition & 1 deletion landing-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h3>Percona Monitoring and Management</h3>
<p>Percona Monitoring and Management (PMM) is a free and open-source solution for managing and monitoring MySQL performance, and provides thorough time-based analysis of MySQL performance to ensure that your data works as efficiently as possible.</p>
<p>Percona Monitoring and Management (PMM) is a free and open-source solution for managing and monitoring performance on MySQL and MongoDB, and provides time-based analysis of performance to ensure that your data works as efficiently as possible.</p>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ http {
location /qan-api {
proxy_pass http://localhost:9001;
rewrite ^/qan-api/(.*) /$1 break;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}
}
Expand Down
24 changes: 12 additions & 12 deletions prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ global:
scrape_configs:
- job_name: prometheus
metrics_path: /prometheus/metrics
target_groups:
static_configs:
- targets: ['localhost:9090']


Expand All @@ -20,20 +20,20 @@ scrape_configs:
regex: '(.*)'
target_label: 'job'
replacement: '$1'
- source_labels: ['__meta_consul_node']
regex: '(.*)'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([\w-:\.]+),.*'
target_label: 'alias'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,replset_([\w-]+),.*'
regex: '.*,replset_([\w-\.]+),.*'
target_label: 'replset'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,cluster_([\w-]+),.*'
regex: '.*,cluster_([\w-\.]+),.*'
target_label: 'cluster'
replacement: '$1'
- source_labels: ['__meta_consul_tags']
regex: '.*,nodetype_([\w-]+),.*'
regex: '.*,nodetype_([\w-\.]+),.*'
target_label: 'nodetype'
replacement: '$1'

Expand All @@ -46,8 +46,8 @@ scrape_configs:
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_node']
regex: '(.*)'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([\w-:\.]+),.*'
target_label: 'alias'
replacement: '$1'

Expand All @@ -62,8 +62,8 @@ scrape_configs:
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_node']
regex: '(.*)'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([\w-:\.]+),.*'
target_label: 'alias'
replacement: '$1'

Expand All @@ -79,8 +79,8 @@ scrape_configs:
relabel_configs:
- target_label: 'job'
replacement: 'mysql'
- source_labels: ['__meta_consul_node']
regex: '(.*)'
- source_labels: ['__meta_consul_tags']
regex: '.*,alias_([\w-:\.]+),.*'
target_label: 'alias'
replacement: '$1'

4 changes: 2 additions & 2 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ autorestart = true

[program:qan-api]
priority = 4
environment = BG=no,ADDRESS=%(ENV_ADDRESS)s
environment = BG=no,BASE_PATH=/qan-api
command = /usr/local/percona/qan-api/start
stdout_logfile = /var/log/qan-api.log
stderr_logfile = /var/log/qan-api.log
Expand All @@ -46,7 +46,7 @@ autorestart = true

[program:prometheus]
priority = 7
command = bash -c "sleep 5 && /opt/prometheus/prometheus -config.file=/opt/prometheus/prometheus.yml -storage.local.path=/opt/prometheus/data -web.listen-address=:9090 -storage.local.retention=${METRICS_RETENTION:-192h} -storage.local.memory-chunks=${METRICS_MEMORY:-262144} -web.console.libraries=/opt/prometheus/console_libraries -web.console.templates=/opt/prometheus/consoles -web.external-url=http://localhost:9090/prometheus/"
command = bash -c "sleep 5 && /opt/prometheus/prometheus -config.file=/opt/prometheus/prometheus.yml -storage.local.path=/opt/prometheus/data -web.listen-address=:9090 -storage.local.retention=${METRICS_RETENTION:-720h} -storage.local.memory-chunks=${METRICS_MEMORY:-262144} -web.console.libraries=/opt/prometheus/console_libraries -web.console.templates=/opt/prometheus/consoles -web.external-url=http://localhost:9090/prometheus/"
stdout_logfile = /var/log/prometheus.log
stderr_logfile = /var/log/prometheus.log
autorestart = true
Expand Down

0 comments on commit 126f9a8

Please sign in to comment.