Hi,
We’ve got a question/suggestion about the « formatting » node and outputs messages of virtual curves.
Let’s say 2 virtual curves are defined for traffic network, summing incoming interfaces on one hand, outgoing on the other. Since the same printf_msg is used for each virtual curve, it has to be generic. So, just reading the « status information », one can’t figure out which one is the incoming traffic an which is the outgoing.
Ex of current output:
Status information
OK: Traffic on data interfaces is OK
Traffic SUM is: 15.32 Mb/s
Traffic SUM is: 7.82 Mb/s
Figuring it out requires to get to the « performance data » and is neither explicit nor convenient.
Persona : ITOps teams
Problem to solve : same output message for all the set of metrics of a virtual curves service
Expected outcome : customize output of virtual curves services
Potential solution :
Offer possibility to define a « comment » entry in the virtual curves definition section with free entry.
Ex :
"virtualcurve": {
"sum_traffic_in": {
"pattern": "^traffic_in$",
"aggregation":"sum",
"comment":"IN"
},
"sum_traffic_out": {
"pattern": "^traffic_out$",
"aggregation":"sum",
"comment":"OUT"
}
}
Then formatting node could be :
"formatting": {
"change_bytes_network": 1,
"custom_message_global": "Traffic on data interfaces is OK",
"printf_msg": "Traffic %s SUM is: %s %s/s",
"printf_var": "$self->{result_values}->{comment},$self->{result_values}->{value}, $self->{result_values}->{unit}"
}
And expected result
Status information
OK: Traffic on data interfaces is OK
Traffic IN SUM is: 15.32 Mb/s
Traffic OUT SUM is: 7.82 Mb/s
Regards