-
Notifications
You must be signed in to change notification settings - Fork 27
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
Not sure why response_result_data_Hardware_HDD_used_by_node
is used as a label in prometheus metrics
#61
Comments
There are a number of text fields returned by the call to |
I do understand the purpose, and I can get behind including attributes that seldom changes, like IP configuration, OS version, but the disk space usage change a bit too often to qualify as a label, though. It also changes randomly, which makes it even worse as a label. |
It would be better to handle text fields through Influx and remove these labels from Prometheus, which brings up a question. Do we use Prometheus and Influx, or just Influx? Prometheus makes collecting and graphing metrics super easy, but it does not handle text. Influx is more difficult when it comes to queries, but supports text and metrics. Or is there another solution? @ConnorBarnes88, do you have any thoughts on this? |
Now, I have the feeling I'm missing the big picture here. |
The issue is we receive it as text in human readable form where the number could be in
Converting that into an actual number will require some transformation as the telegraf level. Converting it to a number would allow us to remove it as a label; stop treating it as text.
Agreed
I don't think you are. |
Thanks for your trust @WadeBarnes. |
Regarding all of this,There is no particular reason why "Hardware": {
"HDD_used_by_node": "1037 MBs"
},is being used as a label for prometheus. It very well could, and for consistency should be called by influx if it remains in text form. It likely is possible to convert the HHD usage to a numeric value (it is currently a text value by default) through telegraph assuming it will allow us to use MBs, GBs or a different work around. From my knowledge, or I'd say lack there of :) , Prometheus is great for time/series data and alert handling. It does have it's faults and isn't great at handling text if at all in most instances. Influx can do the same and then some but I'm not currently aware of it's alerting capabilities. Having access to if/else as needed is handy and it's great with text. However it's a little complex for something Prometheus can do so simply.Others have mentioned stuff like Loki which I haven't looked into myself. I believe it's pretty flexible on all fronts from what little I've heard.I'm open to feedback and suggestions. I'm definitely not the most knowledgable on this subject but I'm learning as I go. Thanks,Connor BarnesOn Apr 6, 2023, at 5:49 AM, Wade Barnes ***@***.***> wrote:
from a restricted point of view, response_result_data_Hardware_HDD_used_by_node is actually a number, and should be treated as such
The issue is we receive it as text in human readable for where the number could be in MBs, GBs, etc:
"Hardware": {
"HDD_used_by_node": "1037 MBs"
},
Converting that into an actual number will require some transformation as the telegraf level. Converting it to a number would allow us to remove it as a label; stop treating it as text.
removing prometheus from the equation creates a void with respect of raising alarms.
it could also make sense to use this monitoring stack to gather metrics from agents and other parts of the eosystem, and prometheus is still a good candidate.
Agreed
Now, I have the feeling I'm missing the big picture here.
I don't think you are.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Wow, I was not expecting a simple question to devovle into a full-on architecture review. |
lol, you picked the right (or wrong) question @pruneau628. For this metric I think we could do a conversion so Prometheus can consume it more easily. However there are many other data elements from the Perhaps you could assist with the decisions by doing a bit more investigation into the capabilities of Influx 2.x. |
Ok, we are doing just that, and will report on the progress as soon as possible. |
Hello all, I'm very new to all this, but if I may add to the discussion, why not use Grafana for the alerting part ? Having run a couple of influxdb server in production with telegraf and Grafana for about 5 years without a single issue, I would say that I don't see the complexity in using these 3 products ( I have never run prometheus in production and it look more complicated to us ;-) ) but now I may have missed the purpose of the alarms you are refering too into influxDB. @WadeBarnes can you shed some light here ? TIA |
Hello @WadeBarnes for this project which is not too complex, I don't see the value to store all metrics in prometheus and influxDB. I would put prometheus and alertmanager as optional since I was able to convert all dashboards from prometheus to InluxDB only and all alerts to granafa alerting. This will be push as a PR when my code clean up will be done |
It artificially creates different times series, is there a rationale for this ?
The text was updated successfully, but these errors were encountered: