[Fluentd] 8. Prometheus 연동

2021. 5. 11. 14:51·Infrastructure/Fluentd
반응형

Prometheus 연동

https://github.com/fluent/fluent-plugin-prometheus

Prometheus 플러그인은 총 6개를 제공

연동전 설치

CentOS 라 td-agent
$ td-agent-gem install fluent-plugin-prometheus

샘플

input plugin 은 promethues 사용해서
server_ip:24231/metrics 를 리스닝 상태로 두고

output plugin은 prometheus_output_monitor 사용해서
10 초마다 promethues 에서 pull 해가도록 한다.

<source>
  @type prometheus
  bind 0.0.0.0
  port 24231
  metrics_path /metrics
</source>

<source>
  @type prometheus_output_monitor
  interval 10
  <labels>
    hostname ${hostname}
  </labels>
</source>

728x90
반응형
저작자표시 비영리 (새창열림)
'Infrastructure/Fluentd' 카테고리의 다른 글
  • [Fluentd] Php 연동
  • [Fluentd] Python 연동
  • [Fluentd] 7. Nginx 연동
  • [Fluentd] 6. 서버간 연동
상쾌한기분
상쾌한기분
  • 상쾌한기분
    상쾌한기분
    상쾌한기분
  • 전체
    오늘
    어제
    • 분류 전체보기 (251)
      • Python (44)
        • Python (26)
        • Django (6)
        • Flask (4)
        • Open Source (6)
      • Kotlin & Java (5)
        • Spring (2)
        • 프로젝트 (1)
      • Go (11)
      • Database (24)
        • MySQL (21)
        • Redis (3)
      • Infrastructure (2)
        • CDC (4)
        • Kafka (5)
        • Prometheus (2)
        • Fluentd (11)
        • Docker (1)
        • Airflow (2)
        • VPN (2)
      • IT (26)
        • AI (9)
        • Langchain (8)
        • Web (18)
        • Git (8)
        • 리팩토링 (9)
        • Micro Service Architecture (8)
        • Clean Code (16)
        • Design Pattern (0)
        • 수학 (1)
        • 알고리즘 (14)
      • OS (14)
        • Centos (10)
        • Ubuntu (3)
        • Mac (1)
      • Search Engine (2)
        • ElasticSearch (1)
        • Lucene Solr (1)
      • PHP (2)
        • Laravel (1)
        • Codeigniter (1)
  • 블로그 메뉴

    • Github 방문
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    docker
    오블완
    performance
    Kafka
    http
    Langchain
    git
    python
    ollama
    백준
    fluentd
    파이썬
    prompt
    MYSQL
    Redis
    LLM
    Golang
    CDC
    티스토리챌린지
    go
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
상쾌한기분
[Fluentd] 8. Prometheus 연동
상단으로

티스토리툴바