aboutsummaryrefslogtreecommitdiff
path: root/profiles/monitoring/promtail.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-09 09:15:23 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-09 09:15:23 -0800
commit543fcc38c9c48349d6988b1ace119f0cef2d6efa (patch)
treeae8174b09797fd19e365f60bf25a9d20b222c855 /profiles/monitoring/promtail.nix
parentinstall kind / configure the dock (diff)
downloadinfra-543fcc38c9c48349d6988b1ace119f0cef2d6efa.tar.gz
delete even more unused configurations
Diffstat (limited to 'profiles/monitoring/promtail.nix')
-rw-r--r--profiles/monitoring/promtail.nix54
1 files changed, 0 insertions, 54 deletions
diff --git a/profiles/monitoring/promtail.nix b/profiles/monitoring/promtail.nix
deleted file mode 100644
index a3b95c2..0000000
--- a/profiles/monitoring/promtail.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{ config, lib, pkgs, ... }:
-{
- services.promtail.enable = true;
- services.promtail.configuration = {
- clients = [{ url = "https://loki.${config.homelab.domain}/loki/api/v1/push"; }];
- scrape_configs = [
- {
- job_name = "journal";
- journal = {
- json = true;
- path = "/var/log/journal";
- max_age = "12h";
- labels = {
- host = config.networking.hostName;
- job = "journal";
- "__path__" = "/var/log/journal";
- };
- };
-
- relabel_configs = [
- {
- source_labels = [ "__journal__systemd_unit" ];
- target_label = "unit";
- }
- {
- source_labels = [ "__journal_priority" ];
- target_label = "priority";
- }
- {
- source_labels = [ "__journal_syslog_identifier" ];
- target_label = "syslog_id";
- }
- ];
- }
-
- {
- job_name = "nginx";
- static_configs = [{
- labels = {
- host = config.networking.hostName;
- job = "nginx";
- __path__ = "/var/log/nginx/*";
- };
- }];
- }
- ];
-
- server = {
- http_listen_port = 9832;
- http_path_prefix = "/promtail";
- grpc_listen_port = 0;
- };
- };
-}