template.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ---
  2. kind: compose
  3. schema: "1.2"
  4. metadata:
  5. name: Grafana Alloy
  6. description: |
  7. Grafana Alloy is an open telemetry collector that collects, processes, and exports metrics to various backends.
  8. ## Resources
  9. - **Project**: https://grafana.com/oss/alloy/
  10. - **Documentation**: https://grafana.com/docs/alloy/latest/
  11. - **GitHub**: https://github.com/grafana/alloy
  12. version: v1.11.2
  13. author: Christian Lempa
  14. date: '2025-10-13'
  15. tags:
  16. - traefik
  17. spec:
  18. general:
  19. vars:
  20. service_name:
  21. default: alloy
  22. container_name:
  23. default: alloy
  24. alloy_version:
  25. type: str
  26. description: Grafana Alloy version to use
  27. default: v1.11.2
  28. restart_policy:
  29. type: str
  30. description: Restart policy for the container
  31. default: unless-stopped
  32. ports:
  33. vars:
  34. ports_webui:
  35. type: int
  36. description: Port for Alloy web UI
  37. default: 12345
  38. traefik:
  39. required: false
  40. vars:
  41. traefik_enabled:
  42. type: bool
  43. default: false
  44. traefik_host:
  45. type: str
  46. default: alloy.localhost
  47. logs:
  48. title: Log Collection
  49. toggle: logs_enabled
  50. vars:
  51. logs_enabled:
  52. type: bool
  53. description: Enable log collection
  54. default: false
  55. logs_loki_url:
  56. type: url
  57. description: Loki endpoint URL for sending logs
  58. default: http://loki:3100/loki/api/v1/push
  59. required: true
  60. logs_docker:
  61. type: bool
  62. description: Enable Docker container log collection
  63. default: true
  64. logs_system:
  65. type: bool
  66. description: Enable system and journalctl log collection
  67. default: true
  68. metrics:
  69. title: Metrics Collection
  70. toggle: metrics_enabled
  71. vars:
  72. metrics_enabled:
  73. type: bool
  74. description: Enable metrics collection
  75. default: false
  76. metrics_prometheus_url:
  77. type: url
  78. description: Prometheus remote write endpoint
  79. default: http://prometheus:9090/api/v1/write
  80. required: true
  81. metrics_docker:
  82. type: bool
  83. description: Enable Docker container metrics collection (cAdvisor)
  84. default: true
  85. metrics_system:
  86. type: bool
  87. description: Enable system (node) metrics collection
  88. default: true