prosa-fetcher

Crates.ioprosa-fetcher
lib.rsprosa-fetcher
version0.3.0
created_at2025-05-13 17:21:48.236127+00
updated_at2025-09-02 18:29:56.149766+00
descriptionProSA processor to fetch information from remote systems
homepage
repositoryhttps://github.com/reneca/ProSA-Fetcher
max_upload_size
id1672238
size96,616
Jérémy HERGAULT (reneca)

documentation

README

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

If you want to exclude a time range, you can use the active_time_range option to only fetch during a specif hour time range. From the start to the end hour of the day.

fetcher:
  <...>
  active_time_range:
    start: "06:00:00"
    end: "23:00:00"
Commit count: 5

cargo fmt