Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justinkambic/8b1abeb3ee5fc80c7ed9595ec8bae951 to your computer and use it in GitHub Desktop.
Save justinkambic/8b1abeb3ee5fc80c7ed9595ec8bae951 to your computer and use it in GitHub Desktop.
hb dupe config
heartbeat.monitors:
###### from shahzad
- type: http
name: elastic
hosts: ["https://www.elastic.co"]
schedule: "@every 10s"
tags: ["secure"]
mode: all
fields_under_root: true
fields:
{
tls:
{
sha256: "12 B0 0D 04 DB 0D B8 CA A3 02 BF DE 04 3E 88 F9 5B AC EB 91 E8 6A C1 43 E9 38 30 B4 BB EC 72 6D",
issued_by: "GlobalSign CloudSSL CA - SHA256 - G3",
common_name: "elastic.co",
},
}
- type: http
urls: ["http://blog.andrewvc.com"]
schedule: "@every 10s"
tags: ["un-secure"]
mode: all
check.response.status: 201
- type: http
id: secure-avc
urls: ["https://blog.andrewvc.com"]
tags: ["secure"]
schedule: "@every 10s"
mode: all
fields_under_root: true
fields:
{
tls:
{
sha256: "16 1A 28 46 A9 C4 6D 02 DA AA 68 A3 69 78 E2 BF F6 8F 57 F2 8E 81 E3 0A D9 5A 30 79 63 FD 11 70",
issued_by: "Let's Encrypt Authority X3",
common_name: "blog.andrewvc.com",
},
}
- type: http
id: secure-jvc
urls: ["https://blog.justin.com"]
tags: ["secure"]
schedule: "@every 10s"
mode: all
fields_under_root: true
fields:
{
tls:
{
sha256: "16 1A 28 46 A9 C4 6D 02 DA AA 68 A3 69 78 E2 BF F6 8F 57 F2 8E 81 E3 0A D9 5A 30 79 63 FD 11 70",
issued_by: "Let's Encrypt Authority X3",
common_name: "blog.andrewvc.com",
},
}
- type: http
id: bad-ssl
urls: ["https://expired.badssl.com"]
schedule: "@every 10s"
mode: all
- type: http
urls: ["https://www.washingtonpost.com//"]
schedule: "@every 60s"
mode: all
response.include_body: always
fields_under_root: true
fields:
{
tls:
{
sha256: "BA BB 93 6B D2 5E 33 88 26 C3 45 56 1B 93 F8 AC F1 5C 64 3A 7D 6E F0 7A 21 68 BC C1 0A D9 9B B3",
issued_by: "Entrust Certification Authority - L1M",
common_name: "www.washingtonpost.com",
},
}
######
- id: 'icmp-down'
schedule: '@every 1s'
type: icmp
hosts: ['somethingthatdoesntexistatall']
- id: 'no-name-test'
schedule: '@every 10s'
type: http
urls: http://localhost:5601
- id: 'real-world-test'
name: Real World Test
schedule: '@every 45s'
timeout: 10s
type: http
urls: https://elastic.co/
- id: 'test-node-service'
name: Test Node Service
schedule: '@every 5s'
timeout: 40s
type: http
urls: http://localhost:12349
- id: 0000-intermittent
name: Test 0000 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0001-up
name: Test 0001 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0002-up
name: Test 0002 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0003-up
name: Test 0003 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0004-up
name: Test 0004 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0005-up
name: Test 0005 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0006-up
name: Test 0006 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0007-up
name: Test 0007 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0008-up
name: Test 0008 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0009-up
name: Test 0009 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0010-down
name: Test 0010 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0011-up
name: Test 0011 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0012-up
name: Test 0012 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0013-up
name: Test 0013 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0014-up
name: Test 0014 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0015-intermittent
name: Test 0015 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0016-up
name: Test 0016 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0017-up
name: Test 0017 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0018-up
name: Test 0018 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0019-up
name: Test 0019 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0020-down
name: Test 0020 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0021-up
name: Test 0021 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0022-up
name: Test 0022 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0023-up
name: Test 0023 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0024-up
name: Test 0024 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0025-up
name: Test 0025 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0026-up
name: Test 0026 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0027-up
name: Test 0027 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0028-up
name: Test 0028 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0029-up
name: Test 0029 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0030-intermittent
name: Test 0030 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0031-up
name: Test 0031 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0032-up
name: Test 0032 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0033-up
name: Test 0033 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0034-up
name: Test 0034 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0035-up
name: Test 0035 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0036-up
name: Test 0036 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0037-up
name: Test 0037 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0038-up
name: Test 0038 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0039-up
name: Test 0039 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0040-down
name: Test 0040 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0041-up
name: Test 0041 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0042-up
name: Test 0042 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0043-up
name: Test 0043 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0044-up
name: Test 0044 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0045-intermittent
name: Test 0045 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0046-up
name: Test 0046 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0047-up
name: Test 0047 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0048-up
name: Test 0048 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0049-up
name: Test 0049 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0050-down
name: Test 0050 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0051-up
name: Test 0051 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0052-up
name: Test 0052 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0053-up
name: Test 0053 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0054-up
name: Test 0054 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0055-up
name: Test 0055 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0056-up
name: Test 0056 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0057-up
name: Test 0057 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0058-up
name: Test 0058 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0059-up
name: Test 0059 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0060-intermittent
name: Test 0060 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0061-up
name: Test 0061 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0062-up
name: Test 0062 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0063-up
name: Test 0063 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0064-up
name: Test 0064 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0065-up
name: Test 0065 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0066-up
name: Test 0066 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0067-up
name: Test 0067 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0068-up
name: Test 0068 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0069-up
name: Test 0069 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0070-down
name: Test 0070 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0071-up
name: Test 0071 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0072-up
name: Test 0072 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0073-up
name: Test 0073 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0074-up
name: Test 0074 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0075-intermittent
name: Test 0075 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0076-up
name: Test 0076 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0077-up
name: Test 0077 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0078-up
name: Test 0078 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0079-up
name: Test 0079 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0080-down
name: Test 0080 - down
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=400x1
- id: 0081-up
name: Test 0081 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0082-up
name: Test 0082 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0083-up
name: Test 0083 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0084-up
name: Test 0084 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0085-up
name: Test 0085 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0086-up
name: Test 0086 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0087-up
name: Test 0087 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0088-up
name: Test 0088 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0089-up
name: Test 0089 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0090-intermittent
name: Test 0090 - intermittent
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x5,500x1
- id: 0091-up
name: Test 0091 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0092-up
name: Test 0092 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0093-up
name: Test 0093 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0094-up
name: Test 0094 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0095-up
name: Test 0095 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0096-up
name: Test 0096 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0097-up
name: Test 0097 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0098-up
name: Test 0098 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
- id: 0099-up
name: Test 0099 - up
schedule: '@every 30s'
timeout: 1s
type: http
urls: http://localhost:5678/pattern?r=200x1
output.elasticsearch:
ssl:
certificate_authorities: ${AUTH}
certificate: ${CERT}
key: ${KEY}
username: elastic
password: changeme
# index: ${INDEX_NAME}
# heartbeat-hi-leprovokateur1-%{[agent.version]}-%{+yyyy.MM.dd}
hosts:
- ${ES_URL}
#setup.ilm.rollover_alias: ${ILM_ROLLOVER_ALIAS}
# heartbeat-hi-leprovokateur1-%{[agent.version]}-%{+yyyy.MM.dd}
#setup.template.name: ${TEMPLATE_NAME}
# hearbeat-hi-leprovokateur1
#setup.template.pattern: ${TEMPLATE_PATTERN}
# heartbeat-hi-leprovokateur1-*
processors:
- add_observer_metadata:
geo:
location: 37.926868, -78.024902
name: ${GEO_NAME}
path.data: ${DATA_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment