@@ -210,7 +210,7 @@ func (n *NDTParser) IsParsable(testName string, data []byte) (string, bool) {
210210 return info .Suffix , false
211211 }
212212 // All other cases.
213- metrics .TestCount .WithLabelValues (
213+ metrics .TestTotal .WithLabelValues (
214214 n .TableName (), "unknown" , "unknown suffix" ).Inc ()
215215 return "unknown" , false
216216}
@@ -226,7 +226,7 @@ func (n *NDTParser) ParseAndInsert(taskInfo map[string]bigquery.Value, testName
226226 // TODO(prod) Ensure that archive files are also date sorted.
227227 info , err := ParseNDTFileName (testName )
228228 if err != nil {
229- metrics .TestCount .WithLabelValues (
229+ metrics .TestTotal .WithLabelValues (
230230 n .TableName (), "unknown" , "bad filename" ).Inc ()
231231 log .Println (err )
232232 return nil
@@ -251,7 +251,7 @@ func (n *NDTParser) ParseAndInsert(taskInfo map[string]bigquery.Value, testName
251251 } else {
252252 // Within a group of tests, we expect consistent taskInfo.
253253 if n .taskFileName != taskInfo ["filename" ].(string ) {
254- metrics .TestCount .WithLabelValues (
254+ metrics .TestTotal .WithLabelValues (
255255 n .TableName (), "any" , "inconsistent taskFileName" ).Inc ()
256256 }
257257 }
@@ -309,7 +309,7 @@ func (n *NDTParser) ParseAndInsert(taskInfo map[string]bigquery.Value, testName
309309 n .metaFile = ProcessMetaFile (
310310 n .TableName (), n .TableSuffix (), testName , content )
311311 default :
312- metrics .TestCount .WithLabelValues (
312+ metrics .TestTotal .WithLabelValues (
313313 n .TableName (), "unknown" , "unparsable file" ).Inc ()
314314 return errors .New ("Unknown test suffix: " + info .Suffix )
315315 }
@@ -407,7 +407,7 @@ func (n *NDTParser) getDeltas(snaplog *web100.SnapLog, testType string) ([]schem
407407 snap , err := snaplog .Snapshot (count )
408408 if err != nil {
409409 // TODO - refine label and maybe write a log?
410- metrics .TestCount .WithLabelValues (
410+ metrics .TestTotal .WithLabelValues (
411411 n .TableName (), testType , "snapshot failure" ).Inc ()
412412 return nil , 0
413413 }
@@ -506,7 +506,7 @@ func (n *NDTParser) getAndInsertValues(test *fileInfoAndData, testType string) {
506506 if err != nil {
507507 metrics .ErrorCount .WithLabelValues (
508508 n .TableName (), testType , "final snapshot failure" ).Inc ()
509- metrics .TestCount .WithLabelValues (
509+ metrics .TestTotal .WithLabelValues (
510510 n .TableName (), testType , "final snapshot failure" ).Inc ()
511511 return
512512 }
@@ -515,7 +515,7 @@ func (n *NDTParser) getAndInsertValues(test *fileInfoAndData, testType string) {
515515 if err != nil {
516516 metrics .ErrorCount .WithLabelValues (
517517 n .TableName (), testType , "final snapValues failure" ).Inc ()
518- metrics .TestCount .WithLabelValues (
518+ metrics .TestTotal .WithLabelValues (
519519 n .TableName (), testType , "final snapValues failure" ).Inc ()
520520 log .Printf ("Error calling SnapshotValues() in test %s, when processing: %s\n %s\n " ,
521521 test .fn , n .taskFileName , err )
@@ -633,7 +633,7 @@ func (n *NDTParser) getAndInsertValues(test *fileInfoAndData, testType string) {
633633 return
634634 }
635635
636- metrics .TestCount .WithLabelValues (
636+ metrics .TestTotal .WithLabelValues (
637637 n .TableName (), testType , "ok" ).Inc ()
638638}
639639
0 commit comments