Where can I read doc about overrides and regex_extracts:? I try but errors 
every time...

пятница, 29 января 2021 г. в 01:15:52 UTC+2, Антон Зубков: 

> Hi,
> Have a little problem with Dell iDrac 8 SNMP. Log dates have 
> 20201222152131.000000+120 format. How can I regex in DD\MM\YYYY HH:MM:ss 
> format?
> In telegraf this is:
> [[processors.regex]]
>   [[processors.regex.fields]]
>     key = "log-dates"
>     pattern = 
> "^(?P<YYYY>\\d{4})(?P<MM>\\d{2})(?P<DD>\\d{2})(?P<HH>\\d{2})(?P<mm>\\d{2})(?P<ss>\\d{2})\\.(?P<SSSSSS>\\d{6})(?P<ZZ>[-+]\\d{3,4})$"
>     replacement = "${YYYY}-${MM}-${DD} ${HH}:${mm}:${ss}"
>
> How do the same in snmp_exporter or Prometheus?
>  Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/34434852-216d-43a8-bd75-3d1a9488f1b6n%40googlegroups.com.

Reply via email to