Skip to content
Snippets Groups Projects
Commit 380b7e1f authored by Florian Sesser's avatar Florian Sesser
Browse files

Promtail: Add host label

parent 8f2c0a06
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,12 @@
# exporters, but it is very similar in what it is doing -
# preparing local data and sending it off to a TSDB.
{
{ config, ... }:
let
hostName = config.networking.hostName;
in {
config.services.promtail.enable = true;
config.networking.firewall.interfaces.monitoringvpn.allowedTCPPorts = [ 9080 ];
config.services.promtail.configuration = {
......@@ -25,6 +30,7 @@
journal = {
labels = {
job = "systemd-journal";
host = hostName;
};
};
relabel_configs = [{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment