-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add README section on configuring Prometheus to query multiple iDRACs #1
Conversation
Hi @dstndstn Thanks for the addition, I will merge it now :) Regarding Grafana you need to show it as a table. I tried making an example (might have a few labels specific to my setup). Below is the JSON output for the panel, hopefully that can be useful for you. You probably want to remove the
|
Thanks for the tip (and this module -- it's great!)! It looks like your example panel here fetches the logs for a single node -- do you know of a way to, say, get the most recent log message for each node? I know this is a generic Prometheus query question, and I'm very new at that (and finding it very unintuitive!), so don't feel obliged to answer. |
Say that you want the Top 5 most recent entries for each host, you could do something like this (Prometheus query):
Here The other option is to define a variable in your Grafana dashboard that selects a host to show the entries for, like it's done in the |
Thank you so much for taking the time to answer! The other thing I was missing was, in the Grafana panel settings, under the Prometheus query, you have to set "Format" to "Table" (not "Time series"), otherwise it only shows the timestamps. Again, many thanks! |
You're welcome :) Happy to help! |
It wasn't obvious to me how to get Prometheus to query a whole list of iDRACs. This uses the trick shown in https://prometheus.io/docs/guides/multi-target-exporter/
to achieve that.
I would also love to add some documentation on how to show in Grafana the
idrac_sel_entry
lines, but I couldn't figure it out!