+ Setting up Grafana service (metrics.lablad)
+ Reverse proxy entry for nginx routing This is the first step for establishing a goal for the server's logging stack
This commit is contained in:
parent
0f392dec09
commit
30ee715264
@ -1,10 +1,6 @@
|
||||
# this file pertains to the gitea service which is served under the fqdn:
|
||||
# git.lablad
|
||||
# the default port is listed under /vars/main.yml as 3000 as gitea_pub_port
|
||||
|
||||
server {
|
||||
server_name files.lablad;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
10
docker-host/setup/files/metrics.lablad
Normal file
10
docker-host/setup/files/metrics.lablad
Normal file
@ -0,0 +1,10 @@
|
||||
# metrics.lablad
|
||||
|
||||
server {
|
||||
server_name metrics.lablad;
|
||||
proxy_set_header Host $http_host;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:6000;
|
||||
}
|
||||
}
|
||||
|
26
docker-host/setup/tasks/grafana.yml
Normal file
26
docker-host/setup/tasks/grafana.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- hosts: leftcoastlab
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Include Vars
|
||||
include_vars:
|
||||
dir: ../vars
|
||||
|
||||
- name: Create Grafana Volume
|
||||
community.docker.docker_volume:
|
||||
name: grafana-volume
|
||||
|
||||
- name: Setup Grafana Container(latest)
|
||||
community.docker.docker_container:
|
||||
name: grafana
|
||||
image: grafana/grafana-oss:latest
|
||||
pull: yes
|
||||
restart_policy: always
|
||||
recreate: yes
|
||||
timeout: 120
|
||||
ports:
|
||||
- "{{GRAFANA_PORT}}:3000"
|
||||
volumes:
|
||||
- "grafana-volume:/var/lib/grafana/"
|
||||
|
||||
|
@ -43,6 +43,7 @@
|
||||
- ../files/git.lablad
|
||||
- ../files/music.lablad
|
||||
- ../files/files.lablad
|
||||
- ../files/metrics.lablad
|
||||
|
||||
- name: Enable Sites
|
||||
file:
|
||||
@ -53,6 +54,7 @@
|
||||
- git.lablad
|
||||
- music.lablad
|
||||
- files.lablad
|
||||
- metrics.lablad
|
||||
notify:
|
||||
- restart-nginx
|
||||
|
||||
|
@ -4,3 +4,4 @@ DEBIAN_CODENAME: sid
|
||||
GITEA_PUB_PORT: 3000
|
||||
GITEA_SSH_PORT: 2222
|
||||
FILEBROWSER_PORT: 8080
|
||||
GRAFANA_PORT: 6000
|
||||
|
Loading…
Reference in New Issue
Block a user