-
Notifications
You must be signed in to change notification settings - Fork 474
[Prometheus] Update default dashboard, update sample_event files #4275
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
[Prometheus] Update default dashboard, update sample_event files #4275
Conversation
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
🌐 Coverage report
|
@tetianakravchenko I understand that this dashboard is only for the prometheus server. Could we have visualisations showing uptime, memory used, operations, scrapes (successful and unsuccessful), active alerts? Or it is not in the scope of this PR to add more visualisations? |
"filter": { | ||
"language": "kuery", | ||
"query": "" | ||
}, | ||
"id": "b2579fe0-b2e6-11e9-96a9-535735f478e7", | ||
"index_pattern": "metrics-*", | ||
"interval": "auto", | ||
"interval": "1m", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this done on purpose? Does this affect sampling period? I see it in all visualisations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"id": "prometheus-19886730-b2e7-11e9-9a23-67ee28886a4b", | ||
"migrationVersion": { | ||
"visualization": "7.8.0" | ||
"visualization": "8.3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not this be 8.4.0? Probably minor not affecting functionality though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got those visualisations/dashboard as result of running:
elastic-package-0.63.0 export dashboards -d 1153ffb0-3a6c-11ed-afd9-719992d5bc04
my local stack is on version - 8.4.0
@@ -58,21 +53,27 @@ | |||
"stacked": "none", | |||
"terms_field": "prometheus.labels.handler", | |||
"terms_size": "5", | |||
"value_template": "{{value}}" | |||
"time_range_mode": "entire_time_range", | |||
"value_template": "{{value}}/s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this visualisation with period less than 15min? This is the one having problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This integration periodically fetches metrics from [Prometheus](https://prometheus.io/) servers. | ||
This integration can collect metrics from Prometheus Exporters, receive metrics from Prometheus using Remote Write | ||
This integration periodically fetches metrics from [Prometheus](https://prometheus.io/) metrics endpoints. | ||
This integration can collect metrics from Prometheus Exporters, receive metrics from Prometheus server using Remote Write | ||
and execute specific Prometheus queries against Promethes Query API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and execute specific Prometheus queries against Promethes Query API. | |
or execute specific Prometheus queries against Promethes Query API. |
|
||
Prometheus integration is shipped including default overview dashboard. | ||
Default dashboard works only for `remote_write` datastream and `collector` darastream, if metrics are scraped from the Prometheus server metrics endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default dashboard works only for `remote_write` datastream and `collector` darastream, if metrics are scraped from the Prometheus server metrics endpoint. | |
Default dashboard tested with `remote_write` datastream and `collector` darastream, if metrics are scraped from the Prometheus server metrics endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont know if we want to write something like:
Provided dashboards can not guarantee coverage in case of Prometheus Query configuration scenarios
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dashboard will not work with query, as metrics will be stored under prometheus.query.*
, that is why I wrote Default dashboard works only for ...
@MichaelKatsoulis in general in this PR we wanted to have as generic dashboards as we can to support both remote_write and collector scenarios OOTB. The existing dashboards had problems with remote_write. So now we have the minimum I would say needed for someone to evaluate that prometheus is working and not having problems. That said (alerts are in inside) I would say that if we had to add something from your list it would be memory perhaps to help troubleshoot. All other might not be so necessary. I would let @tetianakravchenko to argue in favour or not and have final saying on this :) |
@gizas the name of the dashboard (Prometheus Server Overview) does not reveal the generic approach. |
@MichaelKatsoulis motivation for this rename: metrics that are coming from
uptime - not provided by |
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@MichaelKatsoulis I've added |
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
"migrationVersion": { | ||
"dashboard": "8.4.0" | ||
}, | ||
"references": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://docs.google.com/document/d/1uyyFGx6xA5Kvl8c-ZdvXdvBGrHTylxU9F69TGqfzdmw/edit#heading=h.o6it0jm3zlmv we should migrate existing dashboards “By value”. This means that in the dashboard you should unlink the various visualisations from the library. That way they will be just saved to the dashboard itself and not referenced. So then we can deliver only the dashboard json and not the ones under visualization folder (can be deleted).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it mean that dashboard should be migrated to lens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found what unlink the visualiation means, from the document somehow I thought that it required migration to lens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in a836f4d
}, | ||
"formatter": "s,ms,2", | ||
"id": "2f5a9030-b2e5-11e9-b248-0162f01eb4ee", | ||
"label": "Targen sync duration", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Target maybe here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it in the same commit - a836f4d#diff-5a3dc417971082efc7b6d31d90ad8ad9c8a3d8b59d91e9cc13e5a2a62ed0caf6R466
Great! That is very good. I left some comments regarding the |
Regarding that can we use tags from now on to group specific dashboards? I am not sure if tags need to preexist before the assets in order to work and appear |
…s Prometheus] in the end for visualisations names Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
it is not possible to add tags for the visualisations (at least to the unlinked vizualisation) It seems you talk about adding tags on the dashboard itself, not on the visualisation, right? In case of Prometheus there is just 1 dashboard |
Correct was referring to Dashboards, although comment about If it was dashboards to assist searching ok. But minor |
@gizas as I see this naming is used for lots of dashboards, example - AWS all dashboards have |
Signed-off-by: Tetiana Kravchenko tetiana.kravchenko@elastic.co
What does this PR do?
Prepare to the prometheus GA
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots