User Tools

Site Tools


сервис_opentelemetry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_opentelemetry [2026/11/04 08:32]
val [OpenTelemetry Collector]
сервис_opentelemetry [2026/11/05 15:10] (current)
val [OpenTelemetry Collector]
Line 8: Line 8:
  
 # dpkg -i otelcol-contrib_0.162.0_linux_amd64.deb # dpkg -i otelcol-contrib_0.162.0_linux_amd64.deb
-</​code>​ +</​code><​code>​
- +
-  * [[Регистрация событий в Linux#​Сервис rsyslog]] +
-  * [[Поиск важных событий в syslog]] (Вариант 1) +
- +
-<​code>​+
 # cat /​etc/​otelcol-contrib/​config.yaml # cat /​etc/​otelcol-contrib/​config.yaml
 </​code><​code>​ </​code><​code>​
Line 20: Line 15:
     convert_to_semantic_conventions:​ true     convert_to_semantic_conventions:​ true
     resource:     resource:
-      service.name:​ ИМЯ_СИСТЕМЫ-journald+      service.name:​ ИМЯ_СИСТЕМЫ-journald ​   
 +      #Можно и просто journald , так как ниже добавляется и индексируется host_name
  
 #  filelog/​roundcube:​ #  filelog/​roundcube:​
Line 42: Line 38:
 processors: processors:
   batch:   batch:
-  ​filter/​exclude_unimportant:​ +#  ​filter/​exclude_unimportant:​ 
-    error_mode: ignore +#    ​error_mode:​ ignore 
-    logs: +#    ​logs:​ 
-      log_record:​ +#      ​log_record:​ 
-        - '​IsMatch(body,​ "​(?​i)cron"​)'​+#        - '​IsMatch(body,​ "​(?​i)cron"​)'​
   transform:   transform:
     error_mode: ignore     error_mode: ignore
Line 70: Line 66:
       receivers: [journald]       receivers: [journald]
 #      receivers: [journald, filelog/​roundcube] #      receivers: [journald, filelog/​roundcube]
-      processors: [filter/​exclude_unimportant,​ transform, batch]+      ​processors: [transform, batch] 
 +#      ​processors: [filter/​exclude_unimportant,​ transform, batch]
       exporters: [otlphttp/​loki]       exporters: [otlphttp/​loki]
 #      exporters: [otlphttp/​loki,​ debug] #      exporters: [otlphttp/​loki,​ debug]
сервис_opentelemetry.1793770368.txt.gz · Last modified: 2026/11/04 08:32 by val