prometheus-http-discovery

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

README

prometheus-http-discovery

prometheus-http-discovery is a Prometheus sidecar for dicovering scrape targets by calling HTTP endpoints.

HTTP services are expected to return json in the same format as file_sd_config

Example Configuration
discover_configs:
  - url: http://my-service:8080/discover
    file: /configs/test.json
    refresh_interval: 5m

Will do an HTTP GET to http://my-service:8080/discover every 5 minutes, verify the json is valid, and write it to /configs/test.json

Each discover_configs item may include:

  • url: target url - required.
  • file: output file - required.
  • timeout: request timeout as a duration
  • tls_config: See tls_config
  • refresh_internal: a duration
  • bearer_token: Optional bearer token authentication information.
  • proxy_url: Optional proxy URL.
  • basic_auth:
basic_auth:
  [ username: <string> ]
  [ password: <string> ]
  [ password_file: <string> ]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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