Skip to content

Commit

Permalink
Renamed job linux>os. Nginx autorestart false.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Jun 2, 2016
1 parent 14a5cb0 commit 379f4c5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
10 changes: 10 additions & 0 deletions docker-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -eu

VER="$(cat VERSION)"
REV="$(git log -n 1 --no-walk --pretty="%h")"
DATE="$(TZ="UTC" date "+%Y%m%d")"

docker tag percona/pmm-server percona/pmm-server:"$VER-dev$DATE.$REV"
docker push percona/pmm-server:"$VER-dev$DATE.$REV"
15 changes: 11 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ http {
error_log /var/log/nginx/error.log;
gzip on;
server {
listen *:80;
server_name _;
server_tokens off;
root /opt/landing-page;
listen *:80;
server_name _;
server_tokens off;
root /opt/landing-page;

# Grafana
rewrite ^/graph$ /graph/;
Expand Down Expand Up @@ -49,6 +49,13 @@ http {
location /qan {
alias /opt/qan-app;
}

# QAN API
rewrite ^/qan-api$ /qan-api/;
location /qan-api {
proxy_pass http://localhost:9001;
rewrite ^/qan-api/(.*) /$1 break;
}
}
}

2 changes: 1 addition & 1 deletion prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ scrape_configs:
- job_name: override
consul_sd_configs:
- server: 'localhost:8500'
services: ['linux', 'mongodb']
services: ['os', 'mongodb']

relabel_configs:
- source_labels: ['__meta_consul_service']
Expand Down
2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ priority = 5
command = nginx
stdout_logfile = /var/log/nginx.log
stderr_logfile = /var/log/nginx.log
autorestart = true
autorestart = false

[program:cron]
priority = 6
Expand Down

0 comments on commit 379f4c5

Please sign in to comment.