diff --git a/ansible/inventory/host_vars/london-b.yml b/ansible/inventory/host_vars/london-b.yml index fa7c949..30bf2c0 100644 --- a/ansible/inventory/host_vars/london-b.yml +++ b/ansible/inventory/host_vars/london-b.yml @@ -20,4 +20,3 @@ common_ufw_allowed_ports: - {port: 6881, proto: tcp, comment: "BitTorrent"} - {port: 6881, proto: udp, comment: "BitTorrent"} - {port: 445, proto: tcp, comment: "Samba"} - diff --git a/ansible/services/promtail/config/london-b.yml b/ansible/services/promtail/config/london-b.yml index 4c979b6..33605b2 100644 --- a/ansible/services/promtail/config/london-b.yml +++ b/ansible/services/promtail/config/london-b.yml @@ -1,3 +1,4 @@ +--- server: http_listen_port: 9080 grpc_listen_port: 0 @@ -9,23 +10,23 @@ clients: - url: http://192.168.1.254:3100/loki/api/v1/push scrape_configs: -- job_name: london-b - static_configs: - - targets: - - localhost - labels: - job: varlogs - instance: london-b - __path__: /var/log/*log - - targets: - - localhost - labels: - job: plex - instance: london-b - __path__: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/*log - - targets: - - localhost - labels: - job: jellyfin - instance: london-b - __path__: /var/log/jellyfin/*log + - job_name: london-b + static_configs: + - targets: + - localhost + labels: + job: varlogs + instance: london-b + __path__: /var/log/*log + - targets: + - localhost + labels: + job: plex + instance: london-b + __path__: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/*log + - targets: + - localhost + labels: + job: jellyfin + instance: london-b + __path__: /var/log/jellyfin/*log