Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/draganm/critic
https://github.com/draganm/critic
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/draganm/critic
- Owner: draganm
- License: gpl-3.0
- Created: 2020-09-07T21:03:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T01:32:43.000Z (23 days ago)
- Last Synced: 2024-12-11T02:28:14.460Z (23 days ago)
- Language: Go
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Critic
Critic is a very simple web monitoring tool.
It periodically (every 30 seconds) polls URLs provided as values of environment variables with the name prefix `WATCH_` and exports them as prometheus metrics.## Exported metrics
Following metrics are exported for each target:### critic_target_is_healthy
The value of this metric will be set to `1` if the probe deems target to be healthy.
Target is assumed to be healthy when the HTTP request succeeds with the stats code between `100` and `499`, excluding `404`.### critic_target_probe_failed_counter
This counter increases every time probe for the target fails (either can't connect or the status code is `> 500` or `404`)### critic_target_request_duration
Request duration of the last probe in seconds.### critic_target_server_certificate_expiration_time
Unix time of the TLS Certificate expiration.
This metric will be exported only for server URLs with `https` scheme.### critic_target_status_code
HTTP Status code of the last probe.
If creating request has failed, value will be `0`.
In the case that performing request has failed, the value will be `1`.