-
Hello! I need some help with vector data model: I read from kafka by another vector in log(text ) format. And i cant't convert thes messge(metric format) to send to prometheus How can i expose it by sink prometheus exporter |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
@jszwedko by my understanding the sink here won't differentiate between logs/metrics and that we must default to logs? We'd want to use EDIT: |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for help!
transformation can't find type of metric(gauge, counter etc) or field with metric value |
Beta Was this translation helpful? Give feedback.
-
I use transformation like this, where "message" is field of json from kafka.
|
Beta Was this translation helpful? Give feedback.
-
Hello! I'm trying this but the vector says like this below.
my vector version is transforms:
parse_host_metrics:
type: remap
inputs:
- kafka_host_metrics
source: |
.metric = parse_json!(.message)
.metric.timestamp = to_timestamp!(.metric.timestamp)
host_metrics:
type: lua
inputs:
- parse_host_metrics
version: "2"
hooks:
process: |
function (event, emit)
event.metric = event.log.metric
event.log = nil
emit(event)
end |
Beta Was this translation helpful? Give feedback.
I use transformation like this, where "message" is field of json from kafka.
Is it correct?