aboutsummaryrefslogtreecommitdiff
path: root/internal/monitor/monitor.go
Commit message (Collapse)AuthorAgeFilesLines
* feat: Use composite group/name key for monitor identificationFuwn2026-01-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously monitors were identified by just their name, causing monitors with the same name in different groups to share data in the database. Changes: - Add ID() method to MonitorConfig returning 'group/name' format - Add Group field to MonitorConfig (set at runtime) - Update Monitor interface with ID() and Group() methods - Update all monitor implementations (http, tcp, dns, icmp, gemini, graphql, database) to use composite ID - Update Scheduler to use monitor ID instead of name - Update server handlers to use composite ID for stats lookups - Change API routes to use {group}/{name} pattern: - /api/monitor/{group}/{name} - /api/history/{group}/{name} - /api/uptime/{group}/{name} - /api/badge/{group}/{name}.svg - URL-encode group and name components to handle special characters (e.g., slashes in names become %2F) - Update config.UpdateResetFlag to accept group and name separately BREAKING: API endpoints now require group in the path. Existing database data using just monitor names won't be associated with the new composite keys.
* feat: Add database connection monitoring typeFuwn2026-01-201-1/+3
|
* feat: Add ICMP, DNS, and GraphQL monitor typesFuwn2026-01-191-1/+7
| | | | | | | | | | | | | | | | | | Add three new monitor types with full support: - ICMP: Ping monitoring with configurable packet count, tracks packet loss and average RTT. Marks degraded on partial packet loss. - DNS: DNS resolution monitoring supporting A, AAAA, CNAME, MX, and TXT records. Optional custom DNS server and validation of expected IPs/CNAME. - GraphQL: GraphQL endpoint monitoring with query execution, variable support, error detection, and content validation. All new monitors include retry support, response time tracking, and integrate with existing display options (round_response_time, etc). GraphQL monitors also support SSL certificate tracking.
* feat: Add round_uptime option to round uptime percentagesFuwn2026-01-191-0/+3
|
* feat: Add group defaults, content checking, SSL tracking for Gemini, ↵Fuwn2026-01-191-1/+26
| | | | hide/round options
* feat: Add Gemini protocol supportFuwn2026-01-191-0/+2
|
* feat: Add retry option for monitor checksFuwn2026-01-191-0/+3
|
* feat: Initial commitFuwn2026-01-171-0/+86