template.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. kind: compose
  3. metadata:
  4. icon:
  5. provider: selfh
  6. id: prometheus
  7. name: Prometheus
  8. description: |
  9. Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.
  10. It is designed for reliability and scalability, making it suitable for monitoring dynamic cloud environments.
  11. Prometheus collects and stores metrics as time series data, providing powerful querying capabilities and integration with various visualization tools.
  12. ## Swarm Deployment Warning
  13. Prometheus uses local TSDB storage and does NOT support running multiple replicas.
  14. This template enforces a single replica with node placement constraints. For true HA, consider remote storage solutions (Thanos, Cortex, VictoriaMetrics).
  15. Project: https://prometheus.io/
  16. Documentation: https://prometheus.io/docs/
  17. GitHub: https://github.com/prometheus/prometheus
  18. version: v3.8.1
  19. author: Christian Lempa
  20. date: '2025-12-16'
  21. tags:
  22. - traefik
  23. - swarm
  24. - authentik
  25. spec:
  26. general:
  27. vars:
  28. service_name:
  29. default: prometheus
  30. metrics:
  31. title: Metrics & Storage
  32. description: Configure data retention and storage settings
  33. vars:
  34. metrics_retention_time:
  35. type: str
  36. description: "How long to retain samples (e.g., 15d, 30d, 1y)"
  37. default: "15d"
  38. extra: "Older data will be deleted. Use 'h', 'd', 'w', 'y' for time units."
  39. metrics_retention_size:
  40. type: str
  41. description: "Maximum storage size (e.g., 5GB, 10GB, 1TB)"
  42. default: "0"
  43. extra: "Set to 0 for unlimited. Triggers deletion when exceeded."
  44. metrics_enable_remote_write:
  45. type: bool
  46. description: "Enable remote write receiver (allows pushing metrics via /api/v1/write)"
  47. default: false
  48. extra: "Caution: Intended for low-volume use cases only. Not efficient for general ingestion."
  49. ports:
  50. vars:
  51. ports_http:
  52. default: 9090
  53. traefik:
  54. vars:
  55. traefik_host:
  56. default: prometheus