Internal Metrics transforms question #21994
-
Hi All! Im trying to utilize the Test config for replicate. sources:
demo_log:
type: demo_logs
format: apache_common
internal_metrics:
type: "internal_metrics"
transforms:
default_transform:
type: remap
inputs:
- "internal_metrics"
source: >-
.app_id = "100000000"
sinks:
console:
type: console
inputs:
- "default_*"
target: stdout
encoding:
codec: json |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @satellite-no ! Unlike logs, metrics are structured events that have specific fields available on them so you cannot set arbitrary fields. You can see the fields available on metrics here: https://vector.dev/docs/about/under-the-hood/architecture/data-model/metric/ (e.g. |
Beta Was this translation helpful? Give feedback.
-
Ah I see, my misunderstanding! Thank you for the quick response! |
Beta Was this translation helpful? Give feedback.
Hi @satellite-no !
Unlike logs, metrics are structured events that have specific fields available on them so you cannot set arbitrary fields. You can see the fields available on metrics here: https://vector.dev/docs/about/under-the-hood/architecture/data-model/metric/ (e.g.
name
,namespace
,tags
, etc.)