promtail_config.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. server:
  2. http_listen_port: 9080
  3. grpc_listen_port: 0
  4. positions:
  5. filename: /tmp/positions.yaml
  6. clients:
  7. - url: http://localhost:3100/loki/api/v1/push
  8. scrape_configs:
  9. - job_name: varlogs
  10. static_configs:
  11. - targets:
  12. - localhost
  13. labels:
  14. job: varlogs
  15. __path__: /var/log/*log
  16. - job_name: Directory Server Utilization
  17. static_configs:
  18. - targets:
  19. - localhost
  20. labels:
  21. job: Directory Server Utilization
  22. __path__: /var/log/dirsrv/slapd-OMNIA-TEST/access
  23. - job_name: Directory Server Errors
  24. static_configs:
  25. - targets:
  26. - localhost
  27. labels:
  28. job: Directory Server Errors
  29. __path__: /var/log/dirsrv/slapd-OMNIA-TEST/errors
  30. - job_name: Directory Server Utilization for Leap
  31. static_configs:
  32. - targets:
  33. - localhost
  34. labels:
  35. job: Directory Server Utilization
  36. __path__: /var/log/dirsrv/slapd-ldap1/access
  37. - job_name: Directory Server Errors for Leap
  38. static_configs:
  39. - targets:
  40. - localhost
  41. labels:
  42. job: Directory Server Errors
  43. __path__: /var/log/dirsrv/slapd-ldap1/errors
  44. - job_name: PKI Transactions
  45. static_configs:
  46. - targets:
  47. - localhost
  48. labels:
  49. job: PKI Transactions
  50. __path__: /var/log/pki/pki-tomcat/ca/transactions
  51. - job_name: KDC Utilization
  52. static_configs:
  53. - targets:
  54. - localhost
  55. labels:
  56. job: KDC Utilization
  57. __path__: /var/log/krb5kdc.log
  58. - job_name: FreeIPA API Call
  59. static_configs:
  60. - targets:
  61. - localhost
  62. labels:
  63. job: FreeIPA API Call
  64. __path__: /var/log/httpd/*
  65. - job_name: audit
  66. static_configs:
  67. - targets:
  68. - localhost
  69. labels:
  70. job: audit
  71. __path__: /var/log/audit/*log
  72. - job_name: SSSD
  73. static_configs:
  74. - targets:
  75. - localhost
  76. labels:
  77. job: SSSD
  78. __path__: /var/log/sssd/*log
  79. - job_name: secure
  80. static_configs:
  81. - targets:
  82. - localhost
  83. labels:
  84. job: secure
  85. __path__: /var/log/secure
  86. - job_name: Omnia
  87. static_configs:
  88. - targets:
  89. - localhost
  90. labels:
  91. job: Omnia
  92. __path__: /var/log/omnia.log
  93. - job_name: syslog
  94. static_configs:
  95. - targets:
  96. - localhost
  97. labels:
  98. job: syslog
  99. __path__: /var/log/messages
  100. - job_name: cron
  101. static_configs:
  102. - targets:
  103. - localhost
  104. labels:
  105. job: cron
  106. __path__: /var/log/cron
  107. - job_name: IPA Server and Client
  108. static_configs:
  109. - targets:
  110. - localhost
  111. labels:
  112. job: IPA Server and Client
  113. __path__: /var/log/ipa*log
  114. - job_name: Package Rocky
  115. static_configs:
  116. - targets:
  117. - localhost
  118. labels:
  119. job: Package Rocky
  120. __path__: /var/log/dnf.log
  121. - job_name: Package Leap
  122. static_configs:
  123. - targets:
  124. - localhost
  125. labels:
  126. job: Package Leap
  127. __path__: /var/log/zypper.log
  128. - job_name: k8s pods
  129. static_configs:
  130. - targets:
  131. - localhost
  132. labels:
  133. job: k8s pods
  134. __path__: /var/log/pods/*/*/*log