Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

HaProxy rstring (regex) issue on response (http-check)

$
0
0

I am trying to use rstring option for http-check to validate if service is 100% operational.

What I am trying to do:

http-check expect rstring ^{"status":"UP","components"

Response from endpoint:

{"status":"UP","components":{"db":{"status":"UP","details":{"database":"Microsoft SQL Server","validationQuery":"isValid()"}},"diskSpace":{"status":"UP","details":{"total":57470816256,"free":16902025216,"threshold":10485760,"exists":true}},"hikariConnectionPool":{"status":"UP","details":{"activeConnections":0,"maxPoolSize":40}},"indexStatus":{"status":"GREEN"},"ping":{"status":"UP"}}

regex ^{“status”:“UP”,“components” should be ok, but I guess I am missing something.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>