Collect all metrics (again)
@@ -49,12 +49,11 @@ func main() {
log.Fatalf("Cannot create Buildkite client: %v", err)
}
- /*
gcs, err := clients.CreateGcsClient()
if err != nil {
log.Fatalf("Cannot create GCS client: %v", err)
}
- */
+
/*
stackdriverClient, err := clients.CreateStackdriverClient()
if err != nil {
@@ -64,17 +63,17 @@ func main() {
stackdriver := publishers.CreateStackdriverPublisher(stackdriverClient, *projectID)
*/
- /*
cloudSql, err := publishers.CreateCloudSqlPublisher(settings.CloudSqlUser, settings.CloudSqlPassword, settings.CloudSqlInstance, settings.CloudSqlDatabase, settings.CloudSqlLocalPort)
if err != nil {
log.Fatalf("Failed to set up Cloud SQL publisher: %v", err)
}
- */
+
+ /*
stdout := publishers.CreateStdoutPublisher(publishers.Csv)
+ */
srv := service.CreateService(handleError)
- /*
buildsPerChange := metrics.CreateBuildsPerChange(bk, 500, pipelines...)
srv.AddMetric(buildsPerChange, 60, cloudSql)
@@ -90,10 +89,8 @@ func main() {
pipelinePerformance := metrics.CreatePipelinePerformance(bk, 20, pipelines...)
srv.AddMetric(pipelinePerformance, 60, cloudSql)
- */
platformLoad := metrics.CreatePlatformLoad(bk, 100, settings.BuildkiteOrgs...)
- srv.AddMetric(platformLoad, 60, stdout)
- /*
+ srv.AddMetric(platformLoad, 60, cloudSql)
platformSignificance := metrics.CreatePlatformSignificance(bk, 100, pipelines...)
srv.AddMetric(platformSignificance, 24*60, cloudSql)
@@ -108,7 +105,6 @@ func main() {
workerAvailability := metrics.CreateWorkerAvailability(bk, settings.BuildkiteOrgs...)
srv.AddMetric(workerAvailability, 60, cloudSql)
- */
if *testMode {
log.Println("[Test mode] Running all jobs exactly once...")
