Skip to content

Commit

Permalink
add CentOS 7 rpms support
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Feb 3, 2017
1 parent 7db9b85 commit 3e4ca78
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 36 deletions.
52 changes: 16 additions & 36 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
user www-data;
worker_processes 4;
pid /run/nginx.pid;
daemon off;

events {
worker_connections 768;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen *:80;
listen 80;
listen 443 ssl;
server_name _;
server_tokens off;
root /opt/landing-page;
root /usr/share/pmm-server/landing-page;

## BEGIN Those lines are managed from entrypoint.sh
#include nginx-ssl.conf;
auth_basic off;
auth_basic_user_file .htpasswd;
auth_basic off;
auth_basic_user_file .htpasswd;
## END

# Grafana
rewrite ^/graph$ /graph/;
location /graph {
Expand All @@ -46,21 +28,21 @@ http {
proxy_pass http://127.0.0.1:9090;
}

# Consul UI
# Consul UI
location /consul/ {
proxy_pass http://127.0.0.1:8500/ui/;
}
proxy_pass http://127.0.0.1:8500/ui/;
}

# Consul API
location /v1/ {
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
location /qan {
alias /opt/qan-app;
alias /usr/share/percona-qan-app;
}

# QAN API
Expand All @@ -69,16 +51,14 @@ http {
proxy_pass http://127.0.0.1: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 $connection_upgrade;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}

# Orchestrator
# Orchestrator
location /orchestrator {
proxy_pass http://127.0.0.1:4000;
}
}
}

1 change: 1 addition & 0 deletions sysconfig/consul
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPTIONS="-server -bootstrap -client=0.0.0.0 -advertise=127.0.0.1 -ui"
1 change: 1 addition & 0 deletions sysconfig/grafana-server
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPTIONS="cfg:default.server.root_url=%(protocol)s://%(domain)s:%(http_port)s/graph"
2 changes: 2 additions & 0 deletions sysconfig/node_exporter
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WEB_LISTEN_ADDRESS="localhost:9100"
COLLECTORS_ENABLED="diskstats,filefd,filesystem,loadavg,meminfo,netdev,netstat,stat,time,uname,vmstat"
1 change: 1 addition & 0 deletions sysconfig/prometheus
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPTIONS="-storage.local.retention=720h -storage.local.memory-chunks=262144 -storage.local.chunk-encoding-version=2 -web.external-url=http://localhost:9090/prometheus/"

0 comments on commit 3e4ca78

Please sign in to comment.