Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Cloudflare Radar API queries support #50

Merged
merged 1 commit into from
Jul 24, 2023
Merged

add Cloudflare Radar API queries support #50

merged 1 commit into from
Jul 24, 2023

Conversation

digizeph
Copy link
Member

Overview

This PR adds support for querying Cloudflare Radar new BGP routing statistics and prefix-to-origin mapping APIs.

This feature is powered by radar-rs: 0.0.2, an unofficial Cloudflare Radar API Rust SDK. This library is still in very early stage.

Usage

We added a new monocle radar command group in this pull request, which contains the following to subcommands:

  • monocle radar stats [QUERY]: get routing stats (like prefix count, rpki invalid count) for a given country or ASN.
  • monocle radar pfx2as [QUERY] [--rpki-status valid|invalid|unknown]: get prefix to origin mapping for a given prefix or ASN
image image

API Token Required

We do not provide data access in the tool. Users who want to access this data are required to obtain a Cloudflare API token (see this tutorial) and set the environment variable CF_API_TOKEN with the token content. Commands will fail should the token be missing or invalid.

Data License

The use of the Cloudflare Radar data is under CC BY-SA 4.0 license.

This library does not provide any direct access to the API data.

See Cloudflare Radar about page for more details.

@digizeph digizeph changed the title add cloudflare radar API queries support add Cloudflare Radar API queries support Jul 21, 2023
@digizeph digizeph merged commit 87b2d1a into main Jul 24, 2023
1 check passed
@digizeph digizeph deleted the radar branch July 24, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant