Help us shape the future of Go! Take the 2026 Go Developer Survey

timing

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 11 Imported by: 0

README

Timing Request

Introduce

Timing Request is used for send http request timing

Quick Start

  • get code

    go get -v github.com/VinkDong/TimingRequest
    
  • build execute file

    go build
    
  • edit config file

    config file is under the yaml format you can use follow keys:

    • url: address you want requested
    • method: request method you need
    • body: request body, if you have 2 or more bodies it will send with difference body
    • range: specail time you want to send request, you can use only hour from now,then you can use gt,lt,gte,lte and eq as condition,they're AND relationship
    • run_every: interval time for wait next request, you can use seconds,minutes,hours and days,if there have 2 or more, they're AND relationship too.
  • start program

    ./TimingRequest --conf path/your/config
    

BTW, your can use --help to display help information

Monitoring with prometheus

you can monitoring this process via prometheus, this is a experimental

  • start with prometheus monitoring

    .TimingRequest --conf path/your/config -enable_metrics --addr :9800
    
  • then your can scape metrics by prometheus

    scrape_configs:
    - job_name: 'TimingRequest'
    static_configs:
    - targets:
        - '127.0.0.1:9800'
    

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