alloy icon indicating copy to clipboard operation
alloy copied to clipboard

Docs feedback: The topic local.file_match lacks detail on structure for path_targets.

Open clayton-cornell opened this issue 9 months ago • 0 comments

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",
	}]
}

clayton-cornell avatar May 01 '24 18:05 clayton-cornell