mirror of
https://github.com/Dokploy/templates.git
synced 2026-03-12 01:56:43 -05:00
feat(prometheus): add Prometheus monitoring blueprint with Docker Com… (#463)
* feat(prometheus): add Prometheus monitoring blueprint with Docker Compose, template, and metadata Introduced a new blueprint for Prometheus, including a Docker Compose setup, configuration template, SVG logo, and metadata entry for streamlined deployment and monitoring capabilities. * feat(prometheus): add configuration template for Prometheus monitoring Enhanced the Prometheus blueprint by adding a configuration template for prometheus.yml, defining global settings, scrape intervals, and example scrape configurations. This addition streamlines the setup process for users deploying Prometheus monitoring. * chore(prometheus): remove version specification from Docker Compose file Eliminated the version line from the Docker Compose configuration for Prometheus to streamline the setup and avoid potential compatibility issues with future Docker Compose versions.
This commit is contained in:
1
blueprints/prometheus/Prometheus.svg
Normal file
1
blueprints/prometheus/Prometheus.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M63.66 2.477c33.477.007 60.957 27.296 60.914 60.5-.043 33.703-27.41 60.617-61.613 60.593-33.441-.023-60.477-27.343-60.453-61.086C2.53 29.488 30.066 2.47 63.66 2.477zm-18.504 21.25c.766 3.777.024 7.3-1.113 10.765-.785 2.399-1.871 4.711-2.52 7.145-1.07 4.008-2.28 8.039-2.726 12.136-.64 5.895 1.676 11.086 5.64 16.25l-18.222-3.835c.031.574 0 .792.062.976 1.727 5.074 4.766 9.348 8.172 13.379.36.426 1.18.644 1.79.644 18.167.036 36.335.032 54.503.008.563 0 1.317-.105 1.66-.468 3.895-4.094 6.871-8.758 8.735-14.63l-19.29 3.778c1.274-2.496 2.723-4.688 3.56-7.098 2.855-8.242 1.671-16.21-2.427-23.726-3.289-6.031-6.324-12.035-4.683-19.305-3.473 3.434-4.809 7.8-5.656 12.3-.832 4.434-1.325 8.93-1.97 13.43-.093-.136-.21-.238-.23-.355a13.317 13.317 0 01-.168-1.422c-.394-7.367-1.832-14.465-4.87-21.246-1.786-3.988-3.758-8.07-1.915-12.832-1.246.66-2.375 1.313-3.183 2.246-2.41 2.785-3.407 6.13-3.664 9.793-.22 3.13-.52 6.274-1.102 9.352-.61 3.234-1.574 6.402-3.75 9.375-.875-6.348-.973-12.63-6.633-16.66zM92 86.75H35.016v9.898H92zm-45.684 15.016c-.046 8.242 8.348 14.382 18.723 13.937 8.602-.371 16.211-7.137 15.559-13.937zm0 0" fill="#e75225"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
14
blueprints/prometheus/docker-compose.yml
Normal file
14
blueprints/prometheus/docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||
- "--web.enable-lifecycle"
|
||||
volumes:
|
||||
- prometheus-data:/prometheus
|
||||
volumes:
|
||||
prometheus-data: {}
|
||||
52
blueprints/prometheus/template.toml
Normal file
52
blueprints/prometheus/template.toml
Normal file
@@ -0,0 +1,52 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
|
||||
[config]
|
||||
env = []
|
||||
|
||||
[[config.domains]]
|
||||
serviceName = "prometheus"
|
||||
port = 9_090
|
||||
host = "${main_domain}"
|
||||
|
||||
[[config.mounts]]
|
||||
filePath = "/etc/prometheus/prometheus.yml"
|
||||
serviceName = "prometheus"
|
||||
content = """
|
||||
# Prometheus Configuration
|
||||
# https://prometheus.io/docs/prometheus/latest/configuration/configuration/
|
||||
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
external_labels:
|
||||
monitor: 'dokploy-prometheus'
|
||||
|
||||
# Alertmanager configuration (optional)
|
||||
# alerting:
|
||||
# alertmanagers:
|
||||
# - static_configs:
|
||||
# - targets:
|
||||
# - 'alertmanager:9093'
|
||||
|
||||
# Load rules once and periodically evaluate them
|
||||
# rule_files:
|
||||
# - "alerts.yml"
|
||||
|
||||
# Scrape configurations
|
||||
scrape_configs:
|
||||
# Prometheus self-monitoring
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Example: Add your own targets here
|
||||
# - job_name: 'node_exporter'
|
||||
# static_configs:
|
||||
# - targets: ['node-exporter:9100']
|
||||
|
||||
# - job_name: 'docker'
|
||||
# static_configs:
|
||||
# - targets: ['docker-host:9323']
|
||||
"""
|
||||
|
||||
17
meta.json
17
meta.json
@@ -4431,6 +4431,23 @@
|
||||
],
|
||||
"dokploy_version": "<0.22.5"
|
||||
},
|
||||
{
|
||||
"id": "prometheus",
|
||||
"name": "Prometheus",
|
||||
"version": "latest",
|
||||
"description": "Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability.",
|
||||
"logo": "Prometheus.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/prometheus/prometheus",
|
||||
"website": "https://prometheus.io/",
|
||||
"docs": "https://prometheus.io/docs/introduction/overview/"
|
||||
},
|
||||
"tags": [
|
||||
"monitoring",
|
||||
"alerting",
|
||||
"metrics"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "pterodactyl",
|
||||
"name": "Pterodactyl",
|
||||
|
||||
Reference in New Issue
Block a user