Only "1" appears in localhost:3001/metrics > monika_probe_result. #1326
Replies: 3 comments 8 replies
-
hi @sapiderman |
Beta Was this translation helpful? Give feedback.
-
@Sanitater941 thanks for the additional info. Looking into it now. |
Beta Was this translation helpful? Give feedback.
-
I've finally got round to trying it out, so far everything checks out. What is the http response or status code from your PATCH to your url/API? Does the PATCH request fail immediately? a 401 or 404? Did you get the "status not 204" alert? I'm using this setup (similar to yours). probes:
- id: 'http-1'
name: 'status-401-test'
requests:
- url: https://httpbin.org/status/401
method: PATCH
alerts:
- assertion: response.status < 200 or response.status > 308
message: HTTP Status is not 200
- assertion: response.ime > 2000
message: Too sloow Here's my localhost:3001/metrics Are you able to get the same result the above config yaml? |
Beta Was this translation helpful? Give feedback.
-
Creating an API monitoring system using monika.
The API failed intentionally, but on http://localhost:3001/metrics,
The "monika_probe_result" data is not updated, and the past successful history of "1" continues to be exposed.
If it fails, what can I do to get "0" exposed?
here is my monika.yml:
(this http request was Failed)
Beta Was this translation helpful? Give feedback.
All reactions