cachet-url-monitor
cachet-url-monitor copied to clipboard
Error al actualizar un incidente
Me sale el error siguiente:
================================================================================== WARNING [2020-07-19 20:15:46,620] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:46,620] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status. WARNING [2020-07-19 20:15:50,193] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:50,193] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status. WARNING [2020-07-19 20:15:53,855] cachet_url_monitor.configuration.Configuration.Gorm,io - Incident update failed with status [404], message: "" INFO [2020-07-19 20:15:53,855] cachet_url_monitor.configuration.Configuration.Gorm,io - No changes to component status.
La configuracion del yaml es la siguiente:
- name: Gorm,io
url: https://testurl
method: GET
header:
SOME-HEADER: SOME-VALUE
timeout: 2 # seconds
expectation:
- type: HTTP_STATUS status_range: 200-205
- type: LATENCY threshold: 2
- type: REGEX regex: ".." allowed_fails: 0 component_id: 1 metric_id: 1 action:
- CREATE_INCIDENT
- UPDATE_STATUS public_incidents: true latency_unit: ms frequency: 2 cachet: api_url: http://cachetserver/api/v1 token:
- type: ENVIRONMENT_VARIABLE value: CACHET_TOKEN
- type: TOKEN value: Hl5ibgnXVuGPB42NPwQ0
Es que puedes escribir tu configuracion en un code block? Creo que el problema es en tu component_id, quizas tienes un otro id?
Also, can we switch to English for the sake of keeping it helpful for other folks?
mtakaki, esta es la configuración
endpoints:
- name: swagger
url: https://prairial.run.goorm.io/
method: GET
header:
SOME-HEADER: SOME-VALUE
timeout: 2.01
expectation:
- type: HTTP_STATUS
status_range: 200-300
incident: MAJOR
- type: LATENCY
threshold: 4
- type: REGEX
regex: '.*(<body).*'
allowed_fails: 1
frequency: 3
component_id: 1
metric_id: 1
action:
- CREATE_INCIDENT
- UPDATE_STATUS
- PUSH_METRICS
public_incidents: true
latency_unit: ms
cachet:
api_url: http://192.168.0.20/api/v1
token:
- type: ENVIRONMENT_VARIABLE
value: CACHET_TOKEN
- type: TOKEN
value: Hl5ibgnXVuGPB4sNPwQ0
Can you confirm if the component id exists?
Hi, i have the same problem, url-monitor changes the state of incident fine from "Healthy" to " Error", but the change back from "Error" to "Healthy" doesnt work, i get excactly the same error message like in initial post.
Running Cachet-Url-Monitor and Cachet 2.3.15 in docker. I can confirm that my "component_id`s" exists. Any chance to get this running ?
Thanks in advanced