Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Metric is_error changed the type of response codes

Not applicable

Hi guys,

In the documentation, about the metric is_error you have:

"The is_error metric defines any message that results in an HTTP 4xx or 5xx HTTP status code"

However, since the beginning of April it seems that you changed the response codes associated with the metric is_error. In the example below, for the code 302 it became classified as error and not success.

Is there any reason for this?

.../environments/prod/stats/response_status_code?"select=sum(message_count),sum(is_error)&timeRange=03/29/2015%2000:00~03/30/2015%2000:00&timeUnit=day"


"dimensions" : [ {
  "metrics" : [ {
	"name" : "sum(is_error)",
	"values" : [ {
	  "timestamp" : 1427587200000,
	  "value" : "0.0"
	} ]
  }, {
	"name" : "sum(message_count)",
	"values" : [ {
	  "timestamp" : 1427587200000,
	  "value" : "21500.0"
	} ]
  } ],
  "name" : "302"
} ]


.../environments/prod/stats/response_status_code?"select=sum(message_count),sum(is_error)&timeRange=04/01/2015%2000:00~04/02/2015%2000:00&timeUnit=day"


"dimensions" : [ {
  "metrics" : [ {
	"name" : "sum(is_error)",
	"values" : [ {
	  "timestamp" : 1427846400000,
	  "value" : "11900.0"
	} ]
  }, {
	"name" : "sum(message_count)",
	"values" : [ {
	  "timestamp" : 1427846400000,
	  "value" : "11900.0"
	} ]
  } ],
  "name" : "302"
} ]

Thanks.

Solved Solved
0 2 329
1 ACCEPTED SOLUTION

Not applicable

Hi,

There are some case where the is_error value will be set to true even if the response code is less than 400 and it is if you configured your proxy to handle that particular response as an error (the same can be done to do the inverse, making a code bigger than 400 to be counted as a success).

You can read more about this on http://apigee.com/docs/api-services/content/fault-handling

I hope this helps,

Oscar

View solution in original post

2 REPLIES 2
Top Solution Authors