Skip to content
Snippets Groups Projects
Commit 499d6128 authored by Alex Ellis's avatar Alex Ellis
Browse files

remove comment


Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
parent 6bb29ace
No related branches found
No related tags found
No related merge requests found
......@@ -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
// }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment