remove comment

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis 2017-09-13 09:54:05 -07:00
parent 6bb29ace3d
commit 499d6128e5

View File

@ -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
// }