If you feel the need to scrape at one second intervals, then I think you are using prometheus wrongly. However, it's open source software and you are free to use it however you like. It will probably even work.
But I am not going to advise you any further on going down this path, because I think it is ill-advised. On Friday, 4 March 2022 at 18:09:40 UTC [email protected] wrote: > As you said its only 2 metrics that need to be scraped every 1s and I have > total of 7 metrics > But I do not know If we can configure metric scrape interval metric wise. > > I presume 7 is ideal to be scrapped at 1s interval right ? > > On Fri, Mar 4, 2022 at 1:42 AM Brian Candler <[email protected]> wrote: > >> On Friday, 4 March 2022 at 01:15:26 UTC [email protected] wrote: >> >>> What is the lowest scrape time in Prometheus ? >>> Can I set it at 0s or 1s ? >>> >>> >> I scrape time of 0s makes no sense at all. It means you want to do an >> infinite number of scrapes per second, which means you have infinite >> amounts of CPU and disk storage. >> >> A scrape time of 1s might be achievable for a very small set of metrics >> being scraped. However if you think you need 1s scrape times, then >> prometheus is *probably* the wrong solution for whatever you're trying to >> do. As I said before: for event logging, use an event logging system >> instead. >> >> -- >> > 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/953b8b98-0d08-44a8-9755-1a39dac7d009n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/prometheus-users/953b8b98-0d08-44a8-9755-1a39dac7d009n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/cb207053-b9a7-4dc0-9c96-9390febb6175n%40googlegroups.com.

