@@ -550,9 +550,12 @@ var (
550
550
execPluginCalls = k8smetrics.NewCounterVec (
551
551
&k8smetrics.CounterOpts {
552
552
Name : " rest_client_exec_plugin_call_total" ,
553
- Help : " Number of calls to an exec plugin, partitioned by exit code." ,
553
+ Help : " Number of calls to an exec plugin, partitioned by the type of " +
554
+ " event encountered (no_error, plugin_execution_error, plugin_not_found_error, " +
555
+ " client_internal_error) and an optional exit code. The exit code will " +
556
+ " be set to 0 if and only if the plugin call was successful." ,
554
557
},
555
- []string {" code" },
558
+ []string {" code" , " call_status " },
556
559
)
557
560
)
558
561
```
@@ -572,8 +575,8 @@ type ExpiryMetric interface {
572
575
573
576
// CallsMetric counts calls that take place for a specific exec plugin.
574
577
type CallsMetric interface {
575
- // Increment increments a counter per exitCode.
576
- Increment (exitCode int )
578
+ // Increment increments a counter per exitCode and callStatus .
579
+ Increment (exitCode int , callStatus string )
577
580
}
578
581
579
582
var (
@@ -582,13 +585,13 @@ var (
582
585
// ClientCertRotationAge is the age of a certificate that has just been rotated.
583
586
ClientCertRotationAge DurationMetric = noopDuration{}
584
587
// ExecPluginCalls is the number of calls made to an exec plugin, partitioned by
585
- // exit code.
588
+ // exit code and call status .
586
589
ExecPluginCalls CallsMetric = noopCalls{}
587
590
)
588
591
```
589
592
590
- The ` "code" ` label of these metrics is an attempt to elucidate the exec plugin
591
- failure mode to the user.
593
+ The ` "code" ` and ` "call_status" ` labels of these metrics are an attempt to
594
+ elucidate the exec plugin failure mode to the user.
592
595
593
596
### Risks and Mitigations
594
597
0 commit comments