Skip to content

Releases: Uptimedog/Prober

0.12.8

01 Sep 13:17
Compare
Choose a tag to compare

0.11.2

20 May 14:57
9aceeda
Compare
Choose a tag to compare

Without Docker

$ curl -sL https://github.com/uptimedog/prober/releases/download/0.11.2/cloudprober_v0.11.2_Darwin_x86_64.tar.gz | tar xz

$ echo 'probe {
  name: "httpbin_server_endpoint_status_01"
  type: HTTP

  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000

  http_probe {
    protocol: HTTPS
    relative_url: "/status/200"
  }
}

probe {
  name: "httpbin_server_endpoint_status_02"
  type: HTTP

  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000

  http_probe {
    # HTTPS or HTTP
    protocol: HTTPS
    relative_url: "/status/500"
  }
}

probe {
  name: "httpbin_server_ping_1"
  type: PING
  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000
}

surfacer {
  type: PROMETHEUS
}' > cloudprober.cfg

# URLs
# http://127.0.0.1:9313/metrics
# http://127.0.0.1:9313/status
$ ./cloudprober --config_file cloudprober.cfg -logtostderr

With Docker

$ echo 'probe {
  name: "httpbin_server_endpoint_status_01"
  type: HTTP

  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000

  http_probe {
    protocol: HTTPS
    relative_url: "/status/200"
  }
}

probe {
  name: "httpbin_server_endpoint_status_02"
  type: HTTP

  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000

  http_probe {
    # HTTPS or HTTP
    protocol: HTTPS
    relative_url: "/status/500"
  }
}

probe {
  name: "httpbin_server_ping_1"
  type: PING
  targets {
    host_names: "httpbin.org"
  }

  interval_msec: 10000
  timeout_msec: 1000
}

surfacer {
  type: PROMETHEUS
}' > cloudprober.cfg

# URLs
# http://127.0.0.1:9313/metrics
# http://127.0.0.1:9313/status
$ docker run -d --rm \
   --network host \
   -v $PWD/cloudprober.cfg:/etc/cloudprober.cfg \
   --name prober \
   clivern/prober:0.11.2