grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
24.1k stars 3.47k forks source link

promtail as kafka consumer to loki #7518

Open ly123-liu opened 2 years ago

ly123-liu commented 2 years ago

loki version:2.6.1 promtail version : main release

we test promtail used as kafka consumer to loki, shows one promtail only to 4k/s speed(while use logstash can be 1w/s), promtail just can't impove speed anymore ,is my configuration not correct?

monitoring image:

WeChatWorkScreenshot_6f7c0735-a259-49a7-b840-66f68045a666

promtail configuration: server: http_listen_address: 0.0.0.0 http_listen_port: 9080 grpc_server_max_recv_msg_size: 104857600 grpc_server_max_send_msg_size: 104857600

positions: filename: /promtail/positions.yaml

clients:

scrape_configs:

limits_config: readline_rate: 4000 readline_burst: 8000 readline_rate_enabled: true readline_rate_drop: false max_streams: 0

liguozhong commented 2 years ago
limits_config:
  readline_rate: 4000
  readline_burst: 8000
  readline_rate_enabled: true
  readline_rate_drop: false

->

limits_config:
  readline_rate: 10000
  readline_burst: 20000
  readline_rate_enabled: true
  readline_rate_drop: false
liguozhong commented 2 years ago

join slack channel https://slack.grafana.com/

ly123-liu commented 2 years ago

sorry for so long , thanks, tests above those config helps, but still show some problems:

when promtail consumer one topic, promtail speed can to 19k/s

image

while promtail consumer many many topic , speed can only to 12k/s, when i scale promtail to above 12 or 24 pod , sped can only to 13w/s(while promtail consume specific kafka topic can be 30w/s), seems increase prometail can not up speed, why is that?

WeChatWorkScreenshot_bde1abf5-9f7b-4418-a325-a0a3d003f9d1