mirror of
https://github.com/openfaas/faas.git
synced 2025-06-15 11:46:46 +00:00
remove comment
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
6bb29ace3d
commit
499d6128e5
@ -39,11 +39,6 @@ func MakeFunctionReader(metricsOptions metrics.MetricOptions, c *client.Client)
|
||||
for _, service := range services {
|
||||
|
||||
if len(service.Spec.TaskTemplate.ContainerSpec.Labels["function"]) > 0 {
|
||||
|
||||
// Ping counters
|
||||
// getCounterValue(service.Spec.Name, "200", &metricsOptions)
|
||||
// getCounterValue(service.Spec.Name, "500", &metricsOptions)
|
||||
|
||||
var envProcess string
|
||||
|
||||
for _, env := range service.Spec.TaskTemplate.ContainerSpec.Env {
|
||||
@ -70,19 +65,3 @@ func MakeFunctionReader(metricsOptions metrics.MetricOptions, c *client.Client)
|
||||
w.Write(functionBytes)
|
||||
}
|
||||
}
|
||||
|
||||
// func getCounterValue(service string, code string, metricsOptions *metrics.MetricOptions) float64 {
|
||||
|
||||
// metric, err := metricsOptions.GatewayFunctionInvocation.
|
||||
// GetMetricWith(prometheus.Labels{"function_name": service, "code": code})
|
||||
|
||||
// if err != nil {
|
||||
// return 0
|
||||
// }
|
||||
|
||||
// // Get the metric's value from ProtoBuf interface (idea via Julius Volz)
|
||||
// var protoMetric io_prometheus_client.Metric
|
||||
// metric.Write(&protoMetric)
|
||||
// invocations := protoMetric.GetCounter().GetValue()
|
||||
// return invocations
|
||||
// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user