-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Stack Monitoring] Document data stored for ES module #127209
Comments
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
Not a markdown document, but kibana module centralizes the paths into constants: https://github.com/elastic/beats/blob/main/metricbeat/module/kibana/kibana.go#L37-L39 ES doesn't, but maybe it should: https://github.com/elastic/beats/blob/main/metricbeat/module/elasticsearch/cluster_stats/cluster_stats.go#L33 That would help answer the first bullet with the code directly I think. The second point (what's stored) should be covered by https://github.com/elastic/beats/blob/main/metricbeat/module/elasticsearch/_meta/fields.yml We should be able to add descriptions to those fields. |
🤔 For day-to-day SDH work the inverse lookup seems useful: Which page/chart in the UI is powered by which aggregation over which documents retrieved from which monitoring endpoint. |
Nice call @weltenwort - I think the debug logs help a little with that. But what I'd most like to see is something like the "Inspect" support that @smith added to APM UI not long ago. Being able to see which queries were used and easily click over to something like lens or dev tools should make it quite easy to see what doesn't line up I think. |
As for the issue covered here. I noticed a few modules have
I think we should document the modules along with the code as much as possible, so I propose adding info to cc @ruflin who can probably point us in the right direction to validate that as a documentation strategy. |
+1 on using |
Not sure how useful this would be for docs. What are you wanting to do with this information?
For this I think they might make more sense going into the Kibana Stack Monitoring docs. We could have a doc for our visualizations that lists each chart with each elasticsearch field metric related to that chart , or just link to the the code files it's all located in. |
I opened a draft pr. I think it answers the first two questions without duplicating docs and helps to guide someone looking for more information. I think it's fairly straight forward to look at exported fields vs the ES API response. If we wanted to go a step further we could look at the schema of each metricset to map to the exact elasticsearch api field path but they are similar enough that I'm not sure its necessary. We could improve the description of each field by updating the fields.yml files in the beats module as @matschaffer pointed out. |
@neptunian @jasonrhodes after trying out the logstash version of this issue (#127808) I'm thinking we should tackle those stretch goals as their own issues. #109890 is already an outstanding issue in that space. If we can first build some tooling (like #123280) around checking what fields get queried and used by each part of the stack monitoring UI, that'll make the work of documenting what's used (or not) for each module a lot easier. |
For the elasticsearch-xpack Metricbeat module, answer the following questions in a Markdown file:
Stretch goals (if these become too difficult to answer, we can separate to a new ticket):
Notes:
monitoring.ui.debug_mode
kibana.yml option to visualize queries being made per pageThe text was updated successfully, but these errors were encountered: