Files
ServerKit/backend/templates/prometheus.yaml
T
Juan Denis 3ca6bd23a9 Update template icons and enhance sidebar user menu
Switched all template icon URLs to use local /serverkit.ai/imgs/template-icons/ assets for consistency and reliability. Improved the Sidebar component with a new user context menu featuring theme switching, settings navigation, and logout, along with conditional display of the WordPress pipeline link. Added and updated related styles for the sidebar, user menu, and page headers, and introduced new theme variables for code/terminal backgrounds.
2026-01-27 20:53:57 -05:00

71 lines
1.7 KiB
YAML

id: prometheus
name: Prometheus
version: "2.48"
description: Open-source monitoring and alerting toolkit designed for reliability and scalability
icon: https://serverkit.ai/imgs/template-icons/prometheus.svg
website: https://prometheus.io
documentation: https://prometheus.io/docs/
categories:
- monitoring
- metrics
- alerting
variables:
- name: HTTP_PORT
description: HTTP port
type: port
default: "9090"
hidden: true
- name: RETENTION_TIME
description: Data retention period
default: 15d
ports:
- port: 9090
protocol: tcp
description: Web interface and API
volumes:
- name: data
path: /prometheus
description: Prometheus data storage
- name: config
path: /etc/prometheus
description: Configuration files
compose:
services:
prometheus:
image: prom/prometheus:v${VERSION:-2.48.0}
container_name: ${APP_NAME}
restart: unless-stopped
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=${RETENTION_TIME}'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
volumes:
- prometheus_data:/prometheus
- prometheus_config:/etc/prometheus
ports:
- "${HTTP_PORT}:9090"
volumes:
prometheus_data:
prometheus_config:
post_install: |
# Create default prometheus config
cat > /var/serverkit/apps/${APP_NAME}/config/prometheus.yml << 'EOF'
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
EOF