template.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ---
  2. kind: compose
  3. metadata:
  4. name: Grafana Alloy
  5. description: |-
  6. Grafana Alloy is an open telemetry collector that collects, processes, and exports metrics to various backends.
  7. ## Prerequisites
  8. - :warning: When alloy runs in a container, you should set the `container_hostname` to a unique value to identify
  9. the instance in your monitoring backend. Otherwise it defaults to the container ID.
  10. ## Resources
  11. - **Project**: https://grafana.com/oss/alloy/
  12. - **Documentation**: https://grafana.com/docs/alloy/latest/
  13. - **GitHub**: https://github.com/grafana/alloy
  14. version: v1.12.1
  15. author: Christian Lempa
  16. date: '2025-12-15'
  17. tags:
  18. - traefik
  19. icon:
  20. provider: selfh
  21. id: grafana
  22. spec:
  23. general:
  24. vars:
  25. service_name:
  26. default: alloy
  27. logs:
  28. title: Log Collection
  29. toggle: logs_enabled
  30. vars:
  31. logs_docker:
  32. description: Enable Docker container log collection
  33. type: bool
  34. default: true
  35. logs_enabled:
  36. description: Enable log collection
  37. type: bool
  38. default: false
  39. logs_loki_url:
  40. description: Loki endpoint URL for sending logs
  41. type: url
  42. default: http://loki:3100/loki/api/v1/push
  43. required: true
  44. logs_system:
  45. description: Enable system and journalctl log collection
  46. type: bool
  47. default: true
  48. metrics:
  49. title: Metrics Collection
  50. toggle: metrics_enabled
  51. vars:
  52. metrics_docker:
  53. description: Enable Docker container metrics collection (cAdvisor)
  54. type: bool
  55. default: true
  56. metrics_enabled:
  57. description: Enable metrics collection
  58. type: bool
  59. default: false
  60. metrics_prometheus_url:
  61. description: Prometheus remote write endpoint
  62. type: url
  63. default: http://prometheus:9090/api/v1/write
  64. required: true
  65. metrics_system:
  66. description: Enable system (node) metrics collection
  67. type: bool
  68. default: true
  69. ports:
  70. vars:
  71. ports_webui:
  72. description: Port for Alloy web UI
  73. type: int
  74. default: 12345
  75. traefik:
  76. vars:
  77. traefik_host:
  78. default: alloy