mirror of
https://github.com/wearepixel/pulsewise-collector.git
synced 2026-11-14 14:01:50 +00:00
All four are opt-in via config file: - FPM_STATUS_URL — PHP-FPM pool stats (active/idle workers, slow requests, max children reached, accepted conn) - NGINX_STATUS_URL — nginx stub_status (active connections, reading/writing/waiting, accepts/handled/requests) - SSL_DOMAINS — TLS cert expiry check per domain (days left, valid, expires_at) - CHECK_PORTS — TCP port availability per port with known service name mapping Also refactors loadConfigFromFile to return *Config directly instead of a positional tuple.
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
# Pulsewise Collector Configuration
|
|
# Copy this file to /etc/pulsewise-collector/config and fill in your values
|
|
|
|
TOKEN=your-token-here
|
|
|
|
# Optional — auto-detected from system hostname if omitted
|
|
# HOSTNAME=my-server
|
|
|
|
# Optional — defaults to https://pulsewise.app/api/collect
|
|
# URL=http://localhost:8000/api/collect
|
|
|
|
# Optional — set to false to disable automatic updates (default: true)
|
|
# AUTO_UPDATE=false
|
|
|
|
# Optional — logs full response body from the server
|
|
# DEBUG=true
|
|
|
|
# ─────────────────────────────────────────────────────────────
|
|
# Optional integrations
|
|
# ─────────────────────────────────────────────────────────────
|
|
|
|
# PHP-FPM status page URL (requires pm.status_path = /status in php-fpm pool config)
|
|
# FPM_STATUS_URL=http://127.0.0.1/fpm-status
|
|
|
|
# Nginx stub_status URL (requires stub_status module and location block)
|
|
# NGINX_STATUS_URL=http://127.0.0.1/nginx-status
|
|
|
|
# SSL certificate expiry checks — comma-separated list of domains
|
|
# SSL_DOMAINS=example.com,api.example.com
|
|
|
|
# TCP port availability checks — comma-separated list of port numbers
|
|
# CHECK_PORTS=22,80,443,3306,6379
|