DumbMonit

集成指标和日志

用 DumbMonit 监控 Grafana Loki

The log server itself: readiness, log lines it refuses and why, chunks that fail to reach storage, write-ahead log disk, request errors.

文档官方网站:Grafana Loki

产品说明为英文,与产品内一致。页面标签使用您的语言。

DumbMonit 监控的内容

The log server itself: whether it is ready, which log lines it refuses and why, whether its chunks reach storage, and whether its write-ahead log still has disk.

典型用途. Log server: readiness, refused lines, flush failures

示例

  • Loki single binary
  • Loki simple scalable

连接方式

您需要准备

  • Username / passwordSent as HTTP basic authentication.
  • Bearer tokenSent as "Authorization: Bearer …" on every request.

无需账户。

需要开放的网络端口

  • 3100/TCPLoki HTTP API (default)
设置步骤: Let DumbMonit read Loki's own health
  1. Nothing to install: check from the DumbMonit host that Loki answers on its HTTP port (3100 by default).

    curl http://loki.lan:3100/ready
  2. Loki has no login of its own: only if a reverse proxy in front asks for one, pick Username / password (or Bearer token) below.

  3. In DumbMonit, enter Loki's address, for example "loki.lan" or "https://logs.lan/loki" behind a reverse proxy.

  4. With Loki split into components (simple scalable or microservices), add at least the write path.

注意. Refused lines are the failure to watch: when Loki refuses a line (too old, over a rate or stream limit, too long), the sender usually drops the batch and Grafana only shows a gap in the logs.