Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1054)

Unified Diff: fuzzer/go/fuzzer-fe/main.go

Issue 1682363003: Migrate fuzzer to use shiny new metrics2 package (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: one last _ to - Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fuzzer/go/fuzzer-be/main.go ('k') | fuzzer/go/generator/afl_generation.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzer/go/fuzzer-fe/main.go
diff --git a/fuzzer/go/fuzzer-fe/main.go b/fuzzer/go/fuzzer-fe/main.go
index 1e5c1bdf327468401aa0f39643d3dc4f3429d153..65790ca4dcf27914112f91a4b80f178cca8959f4 100644
--- a/fuzzer/go/fuzzer-fe/main.go
+++ b/fuzzer/go/fuzzer-fe/main.go
@@ -31,6 +31,7 @@ import (
"go.skia.org/infra/go/common"
"go.skia.org/infra/go/fileutil"
"go.skia.org/infra/go/gs"
+ "go.skia.org/infra/go/influxdb"
"go.skia.org/infra/go/login"
"go.skia.org/infra/go/skiaversion"
"go.skia.org/infra/go/util"
@@ -60,12 +61,16 @@ var (
var (
// web server params
- graphiteServer = flag.String("graphite_server", "localhost:2003", "Where is Graphite metrics ingestion server running.")
- host = flag.String("host", "localhost", "HTTP service host")
- port = flag.String("port", ":8001", "HTTP service port (e.g., ':8002')")
- local = flag.Bool("local", false, "Running locally if true. As opposed to in production.")
- resourcesDir = flag.String("resources_dir", "", "The directory to find templates, JS, and CSS files. If blank the current directory will be used.")
- boltDBPath = flag.String("bolt_db_path", "fuzzer-db", "The path to the bolt db to be used as a local cache.")
+ influxHost = flag.String("influxdb_host", influxdb.DEFAULT_HOST, "The InfluxDB hostname.")
+ influxUser = flag.String("influxdb_name", influxdb.DEFAULT_USER, "The InfluxDB username.")
+ influxPassword = flag.String("influxdb_password", influxdb.DEFAULT_PASSWORD, "The InfluxDB password.")
+ influxDatabase = flag.String("influxdb_database", influxdb.DEFAULT_DATABASE, "The InfluxDB database.")
+
+ host = flag.String("host", "localhost", "HTTP service host")
+ port = flag.String("port", ":8001", "HTTP service port (e.g., ':8002')")
+ local = flag.Bool("local", false, "Running locally if true. As opposed to in production.")
+ resourcesDir = flag.String("resources_dir", "", "The directory to find templates, JS, and CSS files. If blank the current directory will be used.")
+ boltDBPath = flag.String("bolt_db_path", "fuzzer-db", "The path to the bolt db to be used as a local cache.")
// OAUTH params
authWhiteList = flag.String("auth_whitelist", login.DEFAULT_DOMAIN_WHITELIST, "White space separated list of domains and email addresses that are allowed to login.")
@@ -108,7 +113,7 @@ func reloadTemplates() {
func main() {
defer common.LogPanic()
// Calls flag.Parse()
- common.InitWithMetrics("fuzzer", graphiteServer)
+ common.InitWithMetrics2("fuzzer-fe", influxHost, influxUser, influxPassword, influxDatabase, local)
if err := writeFlagsToConfig(); err != nil {
glog.Fatalf("Problem with configuration: %s", err)
« no previous file with comments | « fuzzer/go/fuzzer-be/main.go ('k') | fuzzer/go/generator/afl_generation.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698