Slide 24
Slide 24 text
[transforms.my_prometheus_trans_id]
# REQUIRED - General
type = "log_to_metric" # must be: "log_to_metric"
inputs = ["my_file_source_id"]
# OPTIONAL - Types
[[transforms.my_regex_trans_id.metrics]]
type = "counter" # enum: "counter", "gauge"
field = "duration"
increment_by_value = false
name = "duration_total"
labels = {host = "${HOSTNAME}", region = "us-east-1"}
Transform config