百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

atlas_exporter

> 云原生
开源

用于 RIPE Atlas 测量结果的度量值导出器

99 stars0 点赞5 次浏览
访问官网GitHub

工具介绍

用于 RIPE Atlas 测量结果的度量值导出器

atlas_exporter

Metric exporter for RIPE Atlas measurement results

Remarks

  • this is an early version, more features will be added step by step
  • at the moment only the last result of an measurement is used
  • the required Go version is 1.19+

Streaming API

Since version 0.8 atlas_exporter also supports retrieving measurement results by RIPE Atlas Streaming API (https://atlas.ripe.net/docs/result-streaming/). Using this feature requires config file mode. All configured measurements are subscribed on start so the latest result for each probe is updated continuously and scrape time is reduced significantly. When a socket.io connection fails or times out a reconnect is initiated. The timeout can be configured using the -streaming.timeout parameter. Streaming API is the default for config file mode, it can be disabled by setting -streaming to false.

Histograms

Since version 1.0 atlas_exporter provides you with histograms of round trip times of the following measurement types:

  • DNS
  • Ping
  • Traceroute
  • HTTP

The buckets can be configured in the config file (see below).

Since this feature relies strongly on getting each update for a measurement, the Stream API mode has to be used. Histogram metrics enables you to calculate percentiles for a specifiv indicator (in our case round trip time). This allows better monitoring of defined service level objectives (e.g. Ping RTT of a specific measurement should be under a specific threshold based on 90% of the requests disregarding the highest 10% -> p90).

For more information: https://prometheus.io/docs/practices/histograms/

Install

go get -u github.com/czerwonk/atlas_exporter

Docker

To start the server:

bash
docker run -d --restart unless-stopped -p 9400:9400 czerwonk/atlas_exporter

To run in config file mode:

bash
docker run -d -e CONFIG=/tmp/config.yml -v /tmp/config.yml:/tmp/config.yml --restart unless-stopped -p 9400:9400 czerwonk/atlas_exporter

Usage

Start server

./atlas_exporter

or using config file mode:

./atlas_exporter -config.file config.yml

Config file

for this example we want to retrieve results for measurement 8772164

yaml
measurements:
  - id: 8772164
    timeout: 120s
histogram_buckets:
  ping:
    rtt:
      - 5.0
      - 10.0
      - 25.0
      - 50.0
      - 100.0
filter_invalid_results: true

Call metrics URI

when using config file mode:

bash
curl http://127.0.0.1:9400/metrics

or ad hoc for measuremnt 8772164:

bash
curl http://127.0.0.1:9400/metrics?measurement_id=8772164

in both cases the result should look similar to this one:

…

Features

  • ping measurements (success, min/max/avg latency, dups, size)
  • traceroute measurements (success, hop count, rtt)
  • ntp (delay, derivation, ntp version)
  • dns (succress, rtt)
  • http (return code, rtt, http version, header size, body size)
  • sslcert (alert, rtt)

Prometheus configuration

Ad-Hoc Mode

yaml
- job_name: "atlas_exporter"
  scrape_interval: 5m
  static_configs:
    - targets:
        - 7924888
        - 7924886
  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

Config Mode

yaml
- job_name: "atlas_exporter"
  scrape_interval: 5m
  static_configs:
    - targets:
        - atlas-exporter.mytld:9400

Third Party Components

This software uses components of the following projects

  • Go bindings for RIPE Atlas API (https://github.com/DNS-OARC/ripeatlas)
  • Prometheus Go client library (https://github.com/prometheus/client_golang)

License

(c) Daniel Czerwonk, 2017. Licensed under LGPL3 license.

Prometheus

see https://prometheus.io/

The RIPE Atlas Project

see http://atlas.ripe.net

Further reading

I wrote an article about atlas_exporter for RIPE Labs. It covers version 0.5. https://labs.ripe.net/Members/daniel_czerwonk/using-ripe-atlas-measurement-results-in-prometheus-with-atlas_exporter

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goexportermetricsprometheusripe-atlas

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,