Added smartctl_exporter for aya01 and fix for grafana
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
tags:
|
||||
- reload_compose
|
||||
|
||||
- name: Update Docker Images
|
||||
- name: Update docker Images
|
||||
shell:
|
||||
cmd: "docker compose pull"
|
||||
chdir: "{{ docker_compose_dir }}"
|
||||
|
||||
- name: Restart Docker
|
||||
- name: Rebuilding docker images
|
||||
shell:
|
||||
cmd: "docker compose up -d --build"
|
||||
chdir: "{{ docker_compose_dir }}"
|
||||
|
||||
@@ -456,6 +456,7 @@ services:
|
||||
image: grafana/grafana-oss
|
||||
container_name: {{ grafana_host }}
|
||||
restart: unless-stopped
|
||||
user: "0:0"
|
||||
depends_on:
|
||||
- {{ prometheus_host }}
|
||||
networks:
|
||||
@@ -491,7 +492,7 @@ services:
|
||||
ports:
|
||||
- {{ gitlab.ports.ssh.remote }}:{{ gitlab.ports.ssh.local }}
|
||||
- {{ gitlab.ports.http.remote }}:{{ gitlab.ports.http.local }}
|
||||
- {{ gitlab.ports.https.remote }}:{{ gitlab.ports.https.local }}
|
||||
shm_size: '256m'
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.{{ gitlab.host }}.rule=Host(`{{ gitlab.host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
||||
|
||||
@@ -39,3 +39,6 @@ scrape_configs:
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: {{ aya01_ip }}:{{ snmp_exporter_port }} # The SNMP exporter's real hostname:port.
|
||||
- job_name: 'smart'
|
||||
static_configs:
|
||||
- targets: ['{{ aya01_ip }}:{{smart_exporter.port}}']
|
||||
|
||||
Reference in New Issue
Block a user