template.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. kind: compose
  3. metadata:
  4. name: Grafana Alloy
  5. description: >
  6. Grafana Alloy is an open telemetry collector distribution that gathers
  7. and processes logs, metrics, traces and profiles. It combines features
  8. from the OpenTelemetry Collector and Prometheus and provides programmable
  9. pipelines and high-performance, vendor-neutral observability.
  10. Project: https://grafana.com/docs/alloy/
  11. Source: https://github.com/grafana/alloy
  12. Documentation: https://grafana.com/docs/alloy/latest/
  13. version: v1.10.2
  14. author: Christian Lempa
  15. date: '2025-10-02'
  16. tags:
  17. - monitoring
  18. - grafana
  19. spec:
  20. general:
  21. vars:
  22. container_hostname:
  23. type: str
  24. description: Docker host hostname for container identification
  25. default: hostname
  26. extra: This is needed because when alloy runs in a container, it doesn't know the hostname of the docker host.
  27. ports:
  28. vars:
  29. ports_main:
  30. type: int
  31. description: Main port for Alloy HTTP server
  32. default: 12345
  33. traefik:
  34. vars:
  35. traefik_host:
  36. default: alloy.home.arpa
  37. logs:
  38. name: Log Collection
  39. description: Configure log collection for Docker containers and system logs
  40. toggle: logs_enabled
  41. vars:
  42. logs_enabled:
  43. type: bool
  44. description: Enable log collection
  45. default: false
  46. logs_loki_url:
  47. type: url
  48. description: Loki endpoint URL for sending logs
  49. default: http://loki:3100/loki/api/v1/push
  50. logs_docker:
  51. type: bool
  52. description: Enable Docker container log collection
  53. default: true
  54. logs_system:
  55. type: bool
  56. description: Enable system and journalctl log collection
  57. default: true
  58. metrics:
  59. name: Metrics Collection
  60. description: Configure metrics collection for Docker containers and system metrics
  61. toggle: metrics_enabled
  62. vars:
  63. metrics_enabled:
  64. type: bool
  65. description: Enable metrics collection
  66. default: false
  67. metrics_prometheus_url:
  68. type: url
  69. description: Prometheus remote write endpoint
  70. default: http://prometheus:9090/api/v1/write
  71. metrics_docker:
  72. type: bool
  73. description: Enable Docker container metrics collection (cAdvisor)
  74. default: true
  75. metrics_system:
  76. type: bool
  77. description: Enable system (node) metrics collection
  78. default: true