I have a lot of indicators, I want to know which indicator is newly added suddenly, and I can find it quickly [image: image.png]
li yun <[email protected]> 于2020年10月16日周五 上午10:30写道: > I tried it and it didn’t work. For example, the indicator I’m monitoring > now includes isphone{name="user",exname="13"}, > isphone{name="user",exname="x14"} > isphone{name="user",exname="a15"} > > At this time, the program returns a new indicator > isphone{name="user",exname="d2"}, I hope to find this newly added > indicator quickly in the chart, because I have a lot of indicators. > > Christian Hoffmann <[email protected]> 于2020年10月14日周三 > 下午10:50写道: > >> Hi, >> >> On 10/13/20 12:22 PM, li yun wrote: >> > For example, the following situation >> > *isphone{name="user",exname~"13"}* >> > This exname program will continuously collect a lot of monitoring >> > indicators, but I want to know which indicators have been added in a >> > certain period of time >> > 在2020年10月13日星期二 UTC+8 下午6:19:15<li yun> 写道: >> > >> > Hello everyone, I have encountered some problems in the process of >> > using prometheus. There are many monitoring indicators. I used the >> > service discovery method. I need to know which indicators are newly >> > added by service discovery in a certain period of time. May I ask >> > this prometheus Can it be done? >> >> You can ask Prometheus to return those metrics which do exist now and >> haven't existed some time ago. Example for 1 hour: >> >> >> isphone{name="user",exname~"13"} unless >> isphone{name="user",exname~"13"} offset 1h >> >> Note: It sounds like you might be putting rather dynamical data >> (exname?) into labels. This may lead to cardinality issues. Be sure to >> implement some safeguards and/or beware of the potential resource >> requirements. >> >> Kind regards, >> Christian >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAO63JBbjsQyhi4jtK6t4uyoaoYjHH_-%3D%2BsmQXnDZ0FAeYkqn3g%40mail.gmail.com.

