I'd like to track the total thread count on our systems. This has been useful in identifying cases where threads stack up due to timeouts, etc.
This gives a sample of the metric I'm looking for:
grep -s '^Threads' /proc/[0-9]*/status | awk '{ sum += $2; } END { print "threads.value", sum; }'
I didn't see anything like this in the existing collectors. Did I miss it? Should I submit a PR for it? If so, where would it fit best? stat_linux.go?
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/0903919a-61b4-4363-8475-0a1fa3b7e7ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
This is still O(n) in the number of processes, which can also get very high. In a very loaded system, we'd be adding even more load trying to monitor it, and get slower at monitoring.
I think it's better to solve this asynchronously (i.e. by feeding the textfile collector), but the best way by far would be to instrument the application (runtime) itself. A process should know its own thread count anyway?
/MR
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVcw0c8Ou_9HbZsZ4PmX0kQEB7uaO_6Ai3huOAK15xNF-Q%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/0903919a-61b4-4363-8475-0a1fa3b7e7ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVcw0c8Ou_9HbZsZ4PmX0kQEB7uaO_6Ai3huOAK15xNF-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVee39piSYPQMKGxS0xTaTUg-W1g%3DReQ2L9fsbNSPnNn_g%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/0903919a-61b4-4363-8475-0a1fa3b7e7ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVcw0c8Ou_9HbZsZ4PmX0kQEB7uaO_6Ai3huOAK15xNF-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
Hi,
I would speak against the systemd exporter as there are still many users with non-systemd distributions for example those long-term enterprise systems like RHEL6. I don't know about SuSE SLES, but I guess its the same situation. Additionally, looking into one of my servers (rhel6) this approach depends on active cgroup usage for your services. My Desktop (arch linux) uses systemd but I find no cgroup directory structure in /sys, too .. This sounds like a very specialized config case for any kind of exporter, from my understanding the original poster wanted a more general solution.On the other hand, I like the cgroup approach, as you would only monitor your own applications and not the whole system.. if you could manage to put all your applications in cgroups, which imposes quite some work. ;)In my opinion the node_exporter still fits most for this.
Regards,Marcus
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/0903919a-61b4-4363-8475-0a1fa3b7e7ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVcw0c8Ou_9HbZsZ4PmX0kQEB7uaO_6Ai3huOAK15xNF-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVee39piSYPQMKGxS0xTaTUg-W1g%3DReQ2L9fsbNSPnNn_g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFRuYVck3jv_TqdOXVC3uwjJG6Lw6AtewsW20Pu8x2q_%2Ba%3DXDw%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.