Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Use cases and examples of probing the searchable metrics archive API

Here are some examples how the Onionoo-like API (See its documentation here) can be used.

Get summary information about relays

Atlas, Globe and others use the Onionoo protocol and backend for getting information about relays that have or had been recently running (present in the consensus.) This system provides a scalable solution to query and get information about relays in the more distant past, too; all within the framework of an Onionoo-derived protocol. It extends the API as well.

This archive can be queried to return the Onionoo-derived Relay Summary and Details documents (bridges are not included, at least not for now), as well as Network Status documents (a new addition.)

The results are always sorted by the date of the network status (associated with each result entry) in which each relay was present (i.e., the consensus valid-after field), in descending order.

We call this kind of usage "Onionoo-like": the types of queries that are run on Onionoo Summary and Details documents can be run on this system.

Search for relays

Like with Onionoo, one can query the system to search for specific relays using various search criteria.

Generally speaking, the API is flexible enough to support both "look up a specific relay" as well as "have a vague idea / characteristics of relay(s)" searches. A narrowing-down type of search/browse is intended and supported use.

ExoneraTor-type relay participation lookup

Network statuses

One can look up a specific relay to see a list of consensuses that it has been present in (i.e., a list of network statuses for that relay), as well as the IP addresses and nicknames at the time of that consensus.