template.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. extra: This is needed because when alloy runs in a container, it doesn't know the hostname of the docker host.
  24. ports:
  25. vars:
  26. ports_main:
  27. type: int
  28. description: Main port for Alloy HTTP server
  29. default: 12345
  30. logs:
  31. name: Log Collection
  32. description: Configure log collection for Docker containers and system logs
  33. toggle: logs_enabled
  34. vars:
  35. logs_enabled:
  36. type: bool
  37. description: Enable log collection
  38. default: false
  39. logs_loki_url:
  40. type: url
  41. description: Loki endpoint URL for sending logs
  42. default: "http://loki:3100/loki/api/v1/push"
  43. logs_docker:
  44. type: bool
  45. description: Enable Docker container log collection
  46. default: true
  47. logs_system:
  48. type: bool
  49. description: Enable system and journalctl log collection
  50. default: true
  51. metrics:
  52. name: Metrics Collection
  53. description: Configure metrics collection for Docker containers and system metrics
  54. toggle: metrics_enabled
  55. vars:
  56. metrics_enabled:
  57. type: bool
  58. description: Enable metrics collection
  59. default: false
  60. metrics_prometheus_url:
  61. type: url
  62. description: Prometheus remote write endpoint
  63. default: "http://prometheus:9090/api/v1/write"
  64. metrics_docker:
  65. type: bool
  66. description: Enable Docker container metrics collection (cAdvisor)
  67. default: true
  68. metrics_system:
  69. type: bool
  70. description: Enable system (node) metrics collection
  71. default: true