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
Copy file name to clipboardExpand all lines: main.go
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import (
9
9
"strconv"
10
10
"time"
11
11
"errors"
12
+
"context"
12
13
13
14
"github.com/BurntSushi/toml"
14
15
@@ -25,6 +26,7 @@ var (
25
26
metricPath=flag.String("web.telemetry-path", "/metrics", "Path under which to expose metrics.")
26
27
landingPage= []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>")
27
28
customMetrics=flag.String("custom.metrics", os.Getenv("CUSTOM_METRICS"), "File that may contain various custom metrics in a TOML file.")
29
+
queryTimeout=flag.String("query.timeout", "5", "Query timeout (in seconds).")
0 commit comments