@@ -5,13 +5,11 @@ export class PromClient {
5
5
private registry : Registry ;
6
6
private app : express . Application ;
7
7
public activeRepoIndexingJobs : Gauge < string > ;
8
- public repoIndexingDuration : Histogram < string > ;
9
- public repoIndexingErrorTotal : Counter < string > ;
8
+ public repoIndexingReattemptsTotal : Counter < string > ;
10
9
public repoIndexingFailTotal : Counter < string > ;
11
10
public repoIndexingSuccessTotal : Counter < string > ;
12
11
13
12
public activeRepoGarbageCollectionJobs : Gauge < string > ;
14
- public repoGarbageCollectionDuration : Histogram < string > ;
15
13
public repoGarbageCollectionErrorTotal : Counter < string > ;
16
14
public repoGarbageCollectionFailTotal : Counter < string > ;
17
15
public repoGarbageCollectionSuccessTotal : Counter < string > ;
@@ -28,19 +26,12 @@ export class PromClient {
28
26
} ) ;
29
27
this . registry . registerMetric ( this . activeRepoIndexingJobs ) ;
30
28
31
- this . repoIndexingDuration = new Histogram ( {
32
- name : 'repo_indexing_duration ' ,
33
- help : 'The duration of repo indexing jobs' ,
29
+ this . repoIndexingReattemptsTotal = new Counter ( {
30
+ name : 'repo_indexing_reattempts ' ,
31
+ help : 'The number of repo indexing reattempts' ,
34
32
labelNames : [ 'repo' ] ,
35
33
} ) ;
36
- this . registry . registerMetric ( this . repoIndexingDuration ) ;
37
-
38
- this . repoIndexingErrorTotal = new Counter ( {
39
- name : 'repo_indexing_errors' ,
40
- help : 'The number of repo indexing errors' ,
41
- labelNames : [ 'repo' ] ,
42
- } ) ;
43
- this . registry . registerMetric ( this . repoIndexingErrorTotal ) ;
34
+ this . registry . registerMetric ( this . repoIndexingReattemptsTotal ) ;
44
35
45
36
this . repoIndexingFailTotal = new Counter ( {
46
37
name : 'repo_indexing_fails' ,
@@ -63,13 +54,6 @@ export class PromClient {
63
54
} ) ;
64
55
this . registry . registerMetric ( this . activeRepoGarbageCollectionJobs ) ;
65
56
66
- this . repoGarbageCollectionDuration = new Histogram ( {
67
- name : 'repo_garbage_collection_duration' ,
68
- help : 'The duration of repo garbage collection jobs' ,
69
- labelNames : [ 'repo' ] ,
70
- } ) ;
71
- this . registry . registerMetric ( this . repoGarbageCollectionDuration ) ;
72
-
73
57
this . repoGarbageCollectionErrorTotal = new Counter ( {
74
58
name : 'repo_garbage_collection_errors' ,
75
59
help : 'The number of repo garbage collection errors' ,
0 commit comments