I am using micrometer to publish signalfx metrics.
I have a count for http_status with http status code as a tag. I am able to see this in the splunk observability cloud dashboard
E = data('http_status.count', filter=filter('Status', '200')).publish(label='E')
G = data('http_status.count', filter=filter('Status', '500')).publish(label='G')
Now my question is, how do I calculate error rate using signal flow query? I want to do this-> plot 4xx/total calls and plot 5xx/total calls