Hi, How frequently are you scraping those metrics? If it's not at least every 5 minutes (better less), then the instant vector selectors in queries will sometimes not select any sample, since they only look back a maximum of 5m from a given resolution timestep.
Cheers, Julius On Mon, May 9, 2022 at 7:16 AM BHARATH KUMAR <[email protected]> wrote: > Hi all, > > I want number of active users and last time loggedin time. These metrics > are not available directly from node exporter metrics. So we wrote some > script which prometheus can understand. > > we created cron job and made it run every one minute and it will gave > those metrucs data which and integrated the same in grafana. we are getting > data correctly but some times the data is appearing in the dashboard and > sometmes its not appearing in dashboard. > > We are getting data for most of the servers but we were not getting for > few. but when we refresh dashboard we are loosing info for some and we were > getting info for some servers. > > what can be the problem for ths? cron job or time duration of cron job or > any? could anyone please help me out? > > Thanks & regards, > Bharath Kumar > > -- > 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/e3367b3c-7cf5-4106-abd0-82903bd036a9n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/e3367b3c-7cf5-4106-abd0-82903bd036a9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Julius Volz PromLabs - promlabs.com -- 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/CAObpH5wscXXbv7mU-QAHwrAmvBnUxTrd5uP6C62kd4GyrFZezA%40mail.gmail.com.

