Documentation
¶
Overview ¶
* scrape-elasticsearch is a HTTP Agent scraping Prometheus endpoints, which forwards the elements to Elasticsearch. Usage:
scrape-elasticsearch [options]
Available options:
-config PATH Path to configuraiton file -username NAME username to grant access token to connect firehose -password PASS password to grant access token to connect firehose -worker NUM Number of producer worker. Default is number of CPU core -debug Output event to stdout instead of producing message to kafka -log-level LEVEL Log level. Default level is INFO (DEBUG|INFO|ERROR)
Index ¶
Constants ¶
View Source
const ( ExitCodeOK int = 0 ExitCodeError int = 1 + iota )
Exit codes are int values that represent an exit code for a particular error.
View Source
const ( // DefaultCfgPath is default config file path DefaultCfgPath = "example/scrape-elasticsearch.toml" // DefaultStatsInterval is default interval of displaying // stats info to console DefaultStatsInterval = 10 * time.Second // DefaultUsername to grant access token for firehose DefaultUsername = "admin" // DefaultIdleTimeout is the default timeout for receiving a single message // from the firehose DefaultIdleTimeout = 60 * time.Second )
View Source
const Name string = "osb-scrape-elasticsearch"
Name is command name
View Source
const Version string = "0.0.1-dev"
Version is command version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.