You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
* Fix parsing kingpin flags according to exporter-toolkit v0.8.2
Fixes#275
Signed-off-by: Nikolay Pelov <npelov@gmail.com>
* Update README file to reflect the changed options from exporter-toolkit.
* Update release version to 0.4.1
---------
Signed-off-by: Nikolay Pelov <npelov@gmail.com>
listenAddress=kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry. (env: LISTEN_ADDRESS)").Default(getEnv("LISTEN_ADDRESS", ":9161")).String()
40
40
metricPath=kingpin.Flag("web.telemetry-path", "Path under which to expose metrics. (env: TELEMETRY_PATH)").Default(getEnv("TELEMETRY_PATH", "/metrics")).String()
41
41
defaultFileMetrics=kingpin.Flag("default.metrics", "File with default metrics in a TOML file. (env: DEFAULT_METRICS)").Default(getEnv("DEFAULT_METRICS", "default-metrics.toml")).String()
42
42
customMetrics=kingpin.Flag("custom.metrics", "File that may contain various custom metrics in a TOML file. (env: CUSTOM_METRICS)").Default(getEnv("CUSTOM_METRICS", "")).String()
43
43
queryTimeout=kingpin.Flag("query.timeout", "Query timeout (in seconds). (env: QUERY_TIMEOUT)").Default(getEnv("QUERY_TIMEOUT", "5")).String()
44
44
maxIdleConns=kingpin.Flag("database.maxIdleConns", "Number of maximum idle connections in the connection pool. (env: DATABASE_MAXIDLECONNS)").Default(getEnv("DATABASE_MAXIDLECONNS", "0")).Int()
45
45
maxOpenConns=kingpin.Flag("database.maxOpenConns", "Number of maximum open connections in the connection pool. (env: DATABASE_MAXOPENCONNS)").Default(getEnv("DATABASE_MAXOPENCONNS", "10")).Int()
46
-
tlsconfigFile=kingpin.Flag("web.config", "Path to config yaml file that can enable TLS or authentication.").Default("").String()
47
46
scrapeInterval=kingpin.Flag("scrape.interval", "Interval between each scrape. Default is to scrape on collect requests").Default("0s").Duration()
w.Write([]byte("<html><head><title>Oracle DB Exporter "+Version+"</title></head><body><h1>Oracle DB Exporter "+Version+"</h1><p><a href='"+*metricPath+"'>Metrics</a></p></body></html>"))
0 commit comments