返回到文章

采纳

编辑于 4年前

Prometheus之triton_sd_config

Prometheus
配置

Triton SD正在测试中:在将来的版本中配置可能会有实质性的变化

Triton SD配置允许从容器监控发现端点的目标中检索和获取。

在relabeling期间,下面的meta标签在目标上是可用的:

  • __meta_triton_machine_id: 目标容器的UUID
  • __meta_triton_machine_alias: 目标容器的别名
  • __meta_triton_machine_image: 目标容器的镜像类型
  • __meta_triton_machine_server_id: 目标容器的服务UUID
# The information to access the Triton discovery API.

# The account to use for discovering new target containers.
account: <string>

# The DNS suffix which should be applied to target containers.
dns_suffix: <string>

# The Triton discovery endpoint (e.g. 'cmon.us-east-3b.triton.zone'). This is
# often the same value as dns_suffix.
endpoint: <string>

# The port to use for discovery and metric scraping.
[ port: <int> | default = 9163 ]

# The interval which should should be used for refreshing target containers.
[ refresh_interval: <duration> | default = 60s ]

# The Triton discovery API version.
[ version: <int> | default = 1 ]

# TLS configuration.
tls_config:
  [ <tls_config> ]