#system #fetcher #prosa-fetcher

prosa-fetcher

ProSA processor to fetch information from remote systems

1 unstable release

Uses new Rust 2024

new 0.1.0 May 13, 2025

#3 in #fetcher

LGPL-3.0-or-later

25KB
442 lines

ProSA Fetcher

ProSA processor to fetch information from remote systems.

The main goal of this processor is to retrieve metrics periodically from remote systems.

Configuration

For configuration, you can set either the target, or the service_name (or both), depending on your fetcher type.

The target uses ProSA's TargetSetting to define all connection information. If you need to authenticate, you will have to set the user and password in the url.

If you want to fetch an internal service, you only have to specify its name with service_name.

An auth_method can also be set (not present in the following example), but generally, the auth method is known by the adaptor and will be set by it.

The last two parameters, period and timeout, configure the interval between fetches and the timeout for each fetch, respectively. The timeout should be less than the period to ensure that only one fetch runs at a time.

fetcher:
  target:
    url: "http://localhost"
  service_name: "output_service"
  period:
    secs: 60
    nanos: 0
  timeout:
    secs: 10
    nanos: 0

Dependencies

~24–38MB
~622K SLoC