@@ -11,42 +11,66 @@ var StartTimeGauge = promauto.NewGauge(prometheus.GaugeOpts{
11
11
Help : "The timestamp of the time when the app started" ,
12
12
})
13
13
14
- // ********************* GRAPH UPDATE ENQUEUING ******************
14
+ // ********************* GRAPH UPDATE REQUESTS ******************
15
15
16
- // GraphUpdateEnqueuingRequestsReceivedCounter reports the number of authorized updates request received by the webserver
17
- var GraphUpdateEnqueuingRequestsReceivedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
18
- Name : "go_graphkb_graph_update_enqueuing_requests_received_counter" ,
19
- Help : "The number of graph update enqueuing requests received by the web server but not yet processed" ,
20
- }, []string {"source" })
16
+ // GraphUpdateRequestsReceivedCounter reports the number of authorized and not rate limited updates requests received by the webserver
17
+ var GraphUpdateRequestsReceivedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
18
+ Name : "go_graphkb_graph_update_requests_received_counter" ,
19
+ Help : "The number of graph updates (insertion or removal of assets or relations) received. A request is considered received if authorization is valid and the request has not been rate limited" ,
20
+ }, []string {"source" , "operation" })
21
+
22
+ // GraphUpdateRequestsRateLimitedCounter reports the number of unauthorized updates requests received by the webserver
23
+ var GraphUpdateRequestsRateLimitedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
24
+ Name : "go_graphkb_graph_update_requests_rate_limited_counter" ,
25
+ Help : "The number of graph updates which were rate limited" ,
26
+ }, []string {"source" , "operation" })
27
+
28
+ // GraphUpdateRequestsUnauthorizedCounter reports the number of unauthorized updates requests received by the webserver
29
+ var GraphUpdateRequestsUnauthorizedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
30
+ Name : "go_graphkb_graph_update_requests_unauthorized_counter" ,
31
+ Help : "The number of graph updates which were unauthorized" ,
32
+ }, []string {"source" , "operation" })
21
33
22
- // GraphUpdateEnqueuingRequestsFailedCounter reports the number of failed update requests
23
- var GraphUpdateEnqueuingRequestsFailedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
24
- Name : "go_graphkb_graph_update_enqueuing_requests_failed_counter " ,
25
- Help : "The number of failed graph update enqueuing requests " ,
26
- }, []string {"source" , "status_code " })
34
+ // GraphUpdateRequestsFailedCounter reports the number of failed update requests
35
+ var GraphUpdateRequestsFailedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
36
+ Name : "go_graphkb_graph_update_requests_failed_counter " ,
37
+ Help : "The number of failed graph update" ,
38
+ }, []string {"source" , "operation " })
27
39
28
- // GraphUpdateEnqueuingRequestsSucceededCounter reports the number of successful enqueuing requests
29
- var GraphUpdateEnqueuingRequestsSucceededCounter = promauto .NewCounterVec (prometheus.CounterOpts {
30
- Name : "go_graphkb_graph_update_enqueuing_requests_succeeded_counter" ,
31
- Help : "The number of successful graph update enqueuing requests" ,
40
+ // GraphUpdateRequestsSucceededCounter reports the number of successful update requests
41
+ var GraphUpdateRequestsSucceededCounter = promauto .NewCounterVec (prometheus.CounterOpts {
42
+ Name : "go_graphkb_graph_update_requests_succeeded_counter" ,
43
+ Help : "The number of succeeded graph update" ,
44
+ }, []string {"source" , "operation" })
45
+
46
+ // ********************* GRAPH UPDATE COUNTERS ******************
47
+
48
+ // GraphUpdateSchemaUpdatedCounter reports the number of schema updated since the start of the process
49
+ var GraphUpdateSchemaUpdatedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
50
+ Name : "go_graphkb_graph_update_schema_updated_counter" ,
51
+ Help : "The number of assets inserted since the start of the process" ,
32
52
}, []string {"source" })
33
53
34
- // ********************* GRAPH PROCESSING *************************
54
+ // GraphUpdateAssetsInsertedCounter reports the number of assets inserted since the start of the process
55
+ var GraphUpdateAssetsInsertedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
56
+ Name : "go_graphkb_graph_update_assets_inserted_counter" ,
57
+ Help : "The number of assets inserted since the start of the process" ,
58
+ }, []string {"source" })
35
59
36
- // GraphUpdatesProcessingRequestedCounter reports the number of updates to be processed and imported into DB.
37
- var GraphUpdatesProcessingRequestedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
38
- Name : "go_graphkb_graph_updates_processing_requested_counter " ,
39
- Help : "The number of update requests to be processed and imported into DB " ,
60
+ // GraphUpdateRelationsInsertedCounter reports the number of relations inserted since the start of the process
61
+ var GraphUpdateRelationsInsertedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
62
+ Name : "go_graphkb_graph_update_relations_inserted_counter " ,
63
+ Help : "The number of relations inserted since the start of the process " ,
40
64
}, []string {"source" })
41
65
42
- // GraphUpdatesProcessingSucceededCounter reports the number of updates which have successfully been processed
43
- var GraphUpdatesProcessingSucceededCounter = promauto .NewCounterVec (prometheus.CounterOpts {
44
- Name : "go_graphkb_graph_updates_processing_succeeded_counter " ,
45
- Help : "The number of update requests processed successfully " ,
66
+ // GraphUpdateAssetsDeletedCounter reports the number of assets inserted since the start of the process
67
+ var GraphUpdateAssetsDeletedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
68
+ Name : "go_graphkb_graph_update_assets_deleted_counter " ,
69
+ Help : "The number of assets deleted since the start of the process " ,
46
70
}, []string {"source" })
47
71
48
- // GraphUpdatesProcessingFailedCounter reports the number of updates which failed to be processed
49
- var GraphUpdatesProcessingFailedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
50
- Name : "go_graphkb_graph_updates_failed_counter " ,
51
- Help : "The number of update requests which failed " ,
72
+ // GraphUpdateRelationsDeletedCounter reports the number of relations deleted since the start of the process
73
+ var GraphUpdateRelationsDeletedCounter = promauto .NewCounterVec (prometheus.CounterOpts {
74
+ Name : "go_graphkb_graph_update_relations_deleted_counter " ,
75
+ Help : "The number of relations deleted since the start of the process " ,
52
76
}, []string {"source" })
0 commit comments