Skip to content

Commit

Permalink
Prometheus 1.2.2, new QAN app, added X-Server-Time to nginx.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Nov 1, 2016
1 parent bbbb96a commit 406f63b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Percona Monitoring and Management (PMM) Server

v1.0.6 unreleased 2016-10-28
v1.0.6 released 2016-11-03

* Prometheus 1.2.1.
* Prometheus 1.2.2.
* Added "Amazon RDS OS Metrics" dashboard and CloudWatch datasource.
* Added PMM Server to metrics monitoring: the underlying host appears on system and disk dashboards as "pmm-server".
* Query analytics data is now purged correctly: it was broken in 1.0.5 and keeping retention 1 day in 1.0.4.
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ RUN apt-get -y update && \
# ########## #
# Prometheus #
# ########## #
RUN curl -s -LO https://github.com/prometheus/prometheus/releases/download/v1.2.1/prometheus-1.2.1.linux-amd64.tar.gz && \
RUN curl -s -LO https://github.com/prometheus/prometheus/releases/download/v1.2.2/prometheus-1.2.2.linux-amd64.tar.gz && \
mkdir -p prometheus/data node_exporter && \
chown -R pmm:pmm /opt/prometheus/data && \
tar zxf prometheus-1.2.1.linux-amd64.tar.gz --strip-components=1 -C prometheus && \
tar zxf prometheus-1.2.2.linux-amd64.tar.gz --strip-components=1 -C prometheus && \
curl -s -LO https://github.com/prometheus/node_exporter/releases/download/0.12.0/node_exporter-0.12.0.linux-amd64.tar.gz && \
tar zxf node_exporter-0.12.0.linux-amd64.tar.gz --strip-components=1 -C node_exporter && \
rm -f prometheus-1.2.1.linux-amd64.tar.gz node_exporter-0.12.0.linux-amd64.tar.gz
rm -f prometheus-1.2.2.linux-amd64.tar.gz node_exporter-0.12.0.linux-amd64.tar.gz
COPY prometheus.yml /opt/prometheus/

# ###################### #
Expand Down Expand Up @@ -73,15 +73,15 @@ COPY landing-page/ /opt/landing-page/
COPY purge-qan-data /etc/cron.daily/
COPY qan-install.sh /opt/
ADD https://www.percona.com/downloads/TESTING/pmm/percona-qan-api-1.0.6-20161024.2cbdd01-x86_64.tar.gz \
https://www.percona.com/downloads/TESTING/pmm/percona-qan-app-1.0.6-20161024.6d92a38.tar.gz \
https://www.percona.com/downloads/TESTING/pmm/percona-qan-app-1.0.6.tar.gz \
/opt/
RUN curl -s -L -o /usr/bin/pt-archiver https://raw.githubusercontent.com/percona/percona-toolkit/2.2/bin/pt-archiver && \
chmod 755 /usr/bin/pt-archiver && \
mkdir qan-api qan-app && \
tar zxf percona-qan-api-1.0.6-20161024.2cbdd01-x86_64.tar.gz --strip-components=1 -C qan-api && \
tar zxf percona-qan-app-1.0.6-20161024.6d92a38.tar.gz --strip-components=1 -C qan-app && \
tar zxf percona-qan-app-1.0.6.tar.gz --strip-components=1 -C qan-app && \
/opt/qan-install.sh && \
rm -rf percona-qan-api-1.0.6-20161024.2cbdd01-x86_64.tar.gz percona-qan-app-1.0.6-20161024.6d92a38.tar.gz qan-api
rm -rf percona-qan-api-1.0.6-20161024.2cbdd01-x86_64.tar.gz percona-qan-app-1.0.6.tar.gz qan-api

# ##### #
# Start #
Expand Down
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ http {
location /v1/ {
proxy_pass http://127.0.0.1:8500/v1/;
add_header X-Remote-IP $remote_addr;
add_header X-Server-Time $date_gmt;
}

# QAN App
Expand Down

0 comments on commit 406f63b

Please sign in to comment.