Hello,
I have a problem with calculations.
I have the following graph that shows the total number of WebServices that are being used in a time frame.
The query is the following:
sum(count_over_time({environment=“PRO”, service=“SIC_ATM”} |~ \t([0-9]{1,}\.[0-9]{1,})\t
| pattern <month> <day> <loki_hour> <server> <_>:<date> <time> <ip> <response_time> <method> <petid> <ws> <statusid> <size>
[$__interval]))
I have another graph, where it shows the total but by WebService. If I add them all, it should show the same amount as in the previous graph, but it doesn’t, it always shows much less.
It has the following query. I have tried both with sum and with count by webservice but it still doesn’t show the correct content.
sum (count_over_time({environment=“PRO”, service=“SIC_ATM”} |~ \t([0-9]{1,}\.[0-9]{1,})\t
| pattern <month> <day> <loki_hour> <server> <_>:<date> <time> <ip> <response_time> <method> <petid> <ws> <statusid> <size>
[$__interval])) by (ws)
Can you help me?
Thank you very much