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 optional bitrate HTTP parameter #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

v-zhuravlev
Copy link

This allows to additionally set --bitrate iperf3 flag that can limit bitrate used for testing. This can be particularly helpful for testing channels for minimally accepted real bandwidth on regular basis to avoid real users interference:

iperf3 --help
...
-b, --bitrate #[KMG][/#] target bitrate in bits/sec (0 for unlimited)
(default 1 Mbit/sec for UDP, unlimited for TCP)
(optional slash and packet count for burst mode)
...

It can be set like this:

    - name: iperf3_exporter
      scrape_configs:
        - job_name: 'iperf3'
          metrics_path: /probe
          scrape_interval: 15m
          static_configs:
            - targets:
                 - xyz.example
          params:
            bitrate: 10M
            port: ['5201']
          relabel_configs:
            - source_labels: [__address__]
              target_label: __param_target
            - source_labels: [__param_target]
              target_label: instance
            - target_label: __address__
              replacement: "localhost:9579"

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