Skip to content

Instantly share code, notes, and snippets.

@abulte
Last active May 7, 2019 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abulte/43d9fbd3a67f990432ff4029ae40f16b to your computer and use it in GitHub Desktop.
Save abulte/43d9fbd3a67f990432ff4029ae40f16b to your computer and use it in GitHub Desktop.
cachet-monitor
api:
# cachet url
url: https://status.etalab.studio/api/v1
# cachet api token
token: vo6DRCtqGbtjiHsycM58
insecure: false
# https://golang.org/src/time/format.go#L57
date_format: 02/01/2006 15:04:05 MST
monitors:
- name: datagouvfr-website
target: https://www.data.gouv.fr/
strict: true
method: GET
component_id: 1
metric_id: 1
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-website-fr
target: https://www.data.gouv.fr/fr/
strict: true
method: GET
component_id: 8
metric_id: 8
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-api
target: https://www.data.gouv.fr/api/1/datasets/licenses/
strict: true
method: GET
component_id: 2
metric_id: 2
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-files
target: http://files.data.gouv.fr
strict: true
method: GET
component_id: 3
metric_id: 3
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-static
target: https://static.data.gouv.fr/avatars/2015-01-12/8ebc26cca2394e089a8b065fe0ae2659/etalab.jpg
strict: true
method: GET
component_id: 4
metric_id: 4
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-check
target: https://check.data.gouv.fr/url?url=https://www.monactiviteformation.emploi.gouv.fr/mon-activite-formation/public/getOFs
strict: true
method: GET
component_id: 5
metric_id: 5
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-csvapi
target: https://csvapi.data.gouv.fr/apify?url=https://people.sc.fsu.edu/~jburkardt/data/csv/addresses.csv
strict: true
method: GET
component_id: 6
metric_id: 6
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
# custom HTTP headers
headers:
Referer: https://data.gouv.fr
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
- name: datagouvfr-cada
target: https://cada.data.gouv.fr
strict: true
method: GET
component_id: 7
metric_id: 7
# seconds between checks
interval: 60
# seconds for timeout
timeout: 30
# If % of downtime is over this threshold, open an incident
threshold: 80
# custom HTTP headers
expected_status_code: 200
# regex to match body
#expected_body: "P.*NG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment