
czerwonk/atlas_exporter用于RIPE Atlas测量结果的指标导出器,可将DNS、Ping、Traceroute等多种类型的测量数据转换为Prometheus兼容指标,支持实时更新和性能指标分析。
自0.8版本起,atlas_exporter支持通过RIPE Atlas流式API([***]-streaming.timeout参数配置。配置文件模式默认启用流式API,可通过设置-streaming=false禁用。
自1.0版本起,atlas_exporter提供以下测量类型的往返时间(RTT)直方图:
桶可在配置文件中自定义(见下文)。该功能依赖获取每个测量的更新,因此必须使用流式API模式。直方图指标允许计算特定指标的百分位数(如RTT),便于监控服务级别目标(例如基于90%请求的Ping RTT阈值)。
更多信息:[***]
bashdocker run -d --restart unless-stopped -p 9400:9400 czerwonk/atlas_exporter
bashdocker run -d -e CONFIG=/tmp/config.yml -v /tmp/config.yml:/tmp/config.yml --restart unless-stopped -p 9400:9400 czerwonk/atlas_exporter
bash./atlas_exporter
bash./atlas_exporter -config.file config.yml
以下示例配置用于获取测量ID为8772164的结果:
yamlmeasurements: - id: 8772164 # 测量ID timeout: 120s # 超时时间 histogram_buckets: # 直方图桶配置 ping: rtt: - 5.0 - 10.0 - 25.0 - 50.0 - 100.0 filter_invalid_results: true # 过滤无效结果
bashcurl [***]
bashcurl [***]
返回结果示例(部分):
# HELP atlas_traceroute_hops 跳数 # TYPE atlas_traceroute_hops gauge atlas_traceroute_hops{asn="1101",dst_addr="8.8.8.8",dst_name="8.8.8.8",ip_version="4",measurement="8772164",probe="6031"} 9 atlas_traceroute_hops{asn="***",dst_addr="8.8.8.8",dst_name="8.8.8.8",ip_version="4",measurement="8772164",probe="***"} 8 ...
yaml- job_name: 'atlas_exporter' scrape_interval: 5m static_configs: - targets: - 7924888 # 测量ID - 7924886 # 测量ID relabel_configs: - source_labels: [__address__] regex: (.*)(:80)? target_label: __param_measurement_id replacement: ${1} - source_labels: [__param_measurement_id] regex: (.*) target_label: instance replacement: ${1} - source_labels: [] regex: .* target_label: __address__ replacement: atlas-exporter.mytld:9400 # atlas_exporter地址
yaml- job_name: 'atlas_exporter' scrape_interval: 5m static_configs: - targets: - atlas-exporter.mytld:9400 # atlas_exporter地址
本软件使用以下项目的组件:
(c) Daniel Czerwonk, 2017。基于LGPL3许可协议。



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务