목록DevOps/Promtail (3)
나의 잡다한 노트 및 메모
compressed file을 ingest하는 것도 지원을 한다. 하지만 속도가 느린듯하다. 압축된 파일을 laze하게 압축 해제한다고 강조를 하는 걸 보니 말이다. scrape_configs: - job_name: system decompression: enabled:trueinitial_delay: 10s format: gz It relies on the \n character to separate the data into different log lines.The max expected log line is 2MB within the compressed file.The data is decompressed in blocks of 4096 bytes. i.e: it first fe..
promtail.yaml에 작성되는 내용을 의미하는 것이다. 주요 설정 요소a. scrape_configs어떤 로그 파일(혹은 소스)들을 어떻게 수집할지 정의하는 핵심 섹션입니다.예시:scrape_configs: - job_name: system_logs static_configs: - targets: ['localhost'] labels: job: system_logs __path__: /var/log/syslog b. pipeline_stages수집한 로그 한 줄(Line)에 대해 추가 파이프라인 처리를 수행합니다.regex로 라벨 추출, json 파싱, timestamp 추출, replace/drop 등 다양한 스테이지를 통해 로그를 가..

Grafana Loki와 함께 사용되는 log 수집 에이전트이다. 시스템에서 생성되는 로그를 모니터링하고, 이를 Loki로 전송하는 역할을 한다.프로메테우스가 시계열 메트릭을 스크랩하듯, promtail은 로그 파일을 스크랩해 loki에 저장하는 구조를 갖는다. 참고 -> 2025년 2월 13일부터 deprecated 된 듯… grafana alloy로 갈아타라는 문구가 있다. ㅠ 주요 특징가벼운(log lightweight) 설계Promtail은 Loki의 디자인 철학에 맞춰 개발되어, Elastic Stack(예: Logstash, Beats)처럼 복잡한 파이프라인보다는 간단하고 확장성 있는 방식을 지향합니다.대부분의 로그 파싱/처리는 Loki가 아닌 Promtail에서 미리 수행할 수 있도록 설계..