template.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. next_steps:
  23. schema: 1.2
  24. spec:
  25. general:
  26. vars:
  27. service_name:
  28. default: alloy
  29. logs:
  30. title: Log Collection
  31. toggle: logs_enabled
  32. vars:
  33. logs_docker:
  34. description: Enable Docker container log collection
  35. type: bool
  36. default: true
  37. logs_enabled:
  38. description: Enable log collection
  39. type: bool
  40. default: false
  41. logs_loki_url:
  42. description: Loki endpoint URL for sending logs
  43. type: url
  44. default: http://loki:3100/loki/api/v1/push
  45. required: true
  46. logs_system:
  47. description: Enable system and journalctl log collection
  48. type: bool
  49. default: true
  50. metrics:
  51. title: Metrics Collection
  52. toggle: metrics_enabled
  53. vars:
  54. metrics_docker:
  55. description: Enable Docker container metrics collection (cAdvisor)
  56. type: bool
  57. default: true
  58. metrics_enabled:
  59. description: Enable metrics collection
  60. type: bool
  61. default: false
  62. metrics_prometheus_url:
  63. description: Prometheus remote write endpoint
  64. type: url
  65. default: http://prometheus:9090/api/v1/write
  66. required: true
  67. metrics_system:
  68. description: Enable system (node) metrics collection
  69. type: bool
  70. default: true
  71. ports:
  72. vars:
  73. ports_webui:
  74. description: Port for Alloy web UI
  75. type: int
  76. default: 12345
  77. traefik:
  78. vars:
  79. traefik_host:
  80. default: alloy