Skip to content

Instantly share code, notes, and snippets.

@thecraftman
Created May 26, 2021 19:03
Show Gist options
  • Save thecraftman/d35cd48980c3c824be4dc304a471efcc to your computer and use it in GitHub Desktop.
Save thecraftman/d35cd48980c3c824be4dc304a471efcc to your computer and use it in GitHub Desktop.
Heartbeat Configuration
# Disable index lifecycle management (ILM)
setup.ilm.enabled: false
heartbeat.monitors:
- type: icmp
schedule: '*/5 * * * * * *'
hosts: ["myhost"]
id: my-icmp-service
name: My ICMP Service
- type: tcp
schedule: '@every 5s'
hosts: ["myhost:12345"]
mode: any
id: my-tcp-service
- type: http
schedule: '@every 5s'
urls: ["http://example.net"]
service.name: apm-service-name
id: my-http-service
name: My HTTP Service
output.elasticsearch:
hosts: [""$YOUR_AXIOM_URL:443/api/v1/datasets/<dataset>/elastic"]
# api_key can be your ingest or personal token
api_key: "user:token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment