alloy
alloy copied to clipboard
Docs feedback: The topic local.file_match lacks detail on structure for path_targets.
URL
https://grafana.com/docs/alloy/latest/reference/components/local.file_match/
Feedback
The topic https://grafana.com/docs/alloy/latest/reference/components/local.file_match/ lacks detail on structure for path_targets. The doublestar doc https://github.com/bmatcuk/doublestar doesn't provide relevant information.
The example at https://grafana.com/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-apache-http/ uses undocumented features.
local.file_match "logs_integrations_integrations_apache_access" {
path_targets = [{
__address__ = "localhost",
__path__ = "/var/log/apache2/access.log",
instance = constants.hostname,
job = "integrations/apache_http",
}]
}