-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.yml
More file actions
55 lines (50 loc) · 1.33 KB
/
example.config.yml
File metadata and controls
55 lines (50 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# TinyPulse Example Configuration
#
# You can use environment variables in the format ${VAR_NAME} or $VAR_NAME
# Run with: tinypulse --config example_config.yml
# Preview changes with: tinypulse --config example_config.yml --dry-run
endpoints:
# A standard HTTP/HTTPS endpoint
my_website:
name: "My Website"
type: "http"
url: "https://example.com"
interval_seconds: 60
fail_threshold: 3
notifiers:
- telegram_ops
- pushover_alerts
# A TCP endpoint (useful for checking databases, DNS, SSH, etc.)
google_dns:
name: "Google DNS"
type: "tcp"
url: "8.8.8.8:53"
interval_seconds: 30
fail_threshold: 2
notifiers:
- telegram_ops
notifiers:
# Telegram Notifier
telegram_ops:
name: "Ops Team Telegram"
type: "telegram"
config:
bot_token: "${TELEGRAM_BOT_TOKEN}" # Loaded from environment variable
chat_id: "-1001234567890"
# Pushover Notifier
pushover_alerts:
name: "Pushover Critical Alerts"
type: "pushover"
config:
app_token: "${PUSHOVER_APP_TOKEN}"
user_key: "${PUSHOVER_USER_KEY}"
priority: 1
# Redis Notifier (increments a counter on failure)
redis_tracker:
name: "Local Redis Tracking"
type: "redis"
config:
address: "localhost:6379"
password: ""
db: 0
key_prefix: "tinypulse"