curl

command
v0.0.0-...-5002849 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Curl Test

Does a curl on an url, then prints out the result, can also export the metrics to prometheus. The outputOptions correspond to the --write-out options in curl command. More info

Test Details map

Populates the prometheus metrics that prometheus plugin supports

Example Configuration

    config: |
      url: https://google.com
      outputOptions:
      - name: time_namelookup
        prometheusMetric: true  # time_namelookup will be posted to prometheus as a Gauge
      - name: remote_ip
        prometheusLabel: true   # remote_ip will be added as label to all metrics posted

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL