forked from percona/pmm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New tool: Orchestrator - a MySQL replication topology management and visualization tool. Available by /orchestrator URL. * Added ProxySQL metrics and dashboard. * Prometheus 1.1.3. * Consul 0.7.0. * Grafana data can be stored on data container to preserve your custom dashboards and settings. The predefined dashboards are still the subject of upgrade on new versions. * Changed metric storage encoding to achieve less disk space usage by 50-70%. * Re-use MySQL instance with saved data on Query Analytics when re-added through pmm-admin with the same name. * Various dashboard improvements. * Fixed rare issue when nginx tries to use IPv6 for localhost connections. * Improvements and fixes to Query Analytics.
- Loading branch information
1 parent
bce944d
commit 8fda1fb
Showing
14 changed files
with
387 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.4 | ||
1.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
#!/bin/bash | ||
|
||
replace 1s ${METRICS_RESOLUTION:-1s} -- /opt/prometheus/prometheus.yml | ||
set -e | ||
|
||
# Prometheus | ||
if [[ ! "${METRICS_RESOLUTION:-1s}" =~ ^[1-5]s$ ]]; then | ||
echo "METRICS_RESOLUTION takes only values from 1s to 5s." | ||
exit 1 | ||
fi | ||
sed -i "s/1s/${METRICS_RESOLUTION:-1s}/" /opt/prometheus/prometheus.yml | ||
sed -i "s/ENV_METRICS_RETENTION/${METRICS_RETENTION:-720h}/" /etc/supervisor/supervisord.conf | ||
sed -i "s/ENV_METRICS_MEMORY/${METRICS_MEMORY:-262144}/" /etc/supervisor/supervisord.conf | ||
|
||
# Orchestrator | ||
sed -i "s/orc_client_user/${ORCHESTRATOR_USER:-orc_client_user}/" /etc/orchestrator.conf.json | ||
sed -i "s/orc_client_password/${ORCHESTRATOR_PASSWORD:-orc_client_password}/" /etc/orchestrator.conf.json | ||
|
||
# SSL | ||
if [ -e /etc/nginx/ssl/server.crt ] && [ -e /etc/nginx/ssl/server.key ]; then | ||
sed -i 's/#include nginx-ssl.conf/include nginx-ssl.conf/' /etc/nginx/nginx.conf | ||
if [ -e /etc/nginx/ssl/dhparam.pem ]; then | ||
sed -i 's/#ssl_dhparam/ssl_dhparam/' /etc/nginx/nginx-ssl.conf | ||
fi | ||
fi | ||
|
||
# HTTP basic auth | ||
if [ -n "$SERVER_PASSWORD" ]; then | ||
echo "${SERVER_USER:-pmm}:$(openssl passwd -apr1 $SERVER_PASSWORD)" > /etc/nginx/.htpasswd | ||
sed -i 's/auth_basic off/auth_basic "PMM Server"/' /etc/nginx/nginx.conf | ||
|
||
# Disable Grafana HTTP auth | ||
sed -i '/\[auth.basic\]/ a enabled=false' /etc/grafana/grafana.ini | ||
ENV_AUTH_BASIC="cfg:default.auth.basic.enabled=false" | ||
fi | ||
sed -i "s/ENV_AUTH_BASIC/${ENV_AUTH_BASIC}/" /etc/supervisor/supervisord.conf | ||
|
||
supervisord -c /etc/supervisor/supervisord.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
service grafana-server start | ||
|
||
python /opt/import-dashboards.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.