Hi Guys, i want to ask how to extract value to my slack alert messaging. i’ve tried many suggested steps on this forum but none of them work to me.
let’s say i have this preview Alert
[ metric=‘Connector : SG.SIT.ODS.SINK.IS, Instance: k8s-confluen-connect0-0f4da4a1ad-6bbd29e6e29a5f19.elb.ap-southeast-1.amazonaws.com:7778’ labels={name=kafka_connect_connect_worker_metrics_connector_paused_task_count, connector=SG.SIT.ODS.SINK.IS, instance:7778=k8s-confluen-connect0-0f4da4a1ad-6bbd29e6e29a5f19.elb.ap-southeast-1.amazonaws.com, job=connect-sg-sit} value=1 ], [ metric=‘Connector : SG.SIT.ODS.SOURCE.LA.CDC.KTEST3, Instance: k8s-confluen-connect0-0f4da4a1ad-6bbd29e6e29a5f19.elb.ap-southeast-1.amazonaws.com:7778’ labels={name=kafka_connect_connect_worker_metrics_connector_paused_task_count, connector=SG.SIT.ODS.SOURCE.LA.CDC.KTEST3, instance:7778=k8s-confluen-connect0-0f4da4a1ad-6bbd29e6e29a5f19.elb.ap-southeast-1.amazonaws.com, job=connect-sg-sit} value=1 ]
How i can extract the value of “connector”, “instance” and “value” to my slack message?
here’s my current condition :
and this my Annotation & Custom Label configuration section :
and this is the output for my slack channel
can you guys help me how to extract it ?
Thanks