-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[ML] _xpack/usage should return stats about forecasting #31395
Comments
Pinging @elastic/ml-core |
Given that this is more info that what we're displaying in the Monitoring dashboards, it would be great if we can get this data is in to the monitoring indices for telemetry, but use it for charting in the Monitoring UI as well. |
After some investigation, I suggest to add forecast stats to Note: This is just an example for the job stats integration, categories of interest are to be decided. From there it is easy to expose it to An alternative solution would be forecast own @sophiec20 |
Interesting, I like the idea of |
I checked: The UI (I guess you mean the Counts tab) is not affected, it looks like it has a an overlay (CC @peteharverson) over the results from the job stats API. So fortunately there is no immediate action required for the UI. Longer term it would be nice to make use of these new stats, of course. The main question, which API endpoint:
Note: The way forecast is triggered is
Which of the above choices match that? I collect a couple more material and then schedule a team discussion but happily receive some more feedback here, maybe there are more options than the above? |
+1 for reusing the endpoint |
Can we add units to the forecast memory stats (min, max, avg, sum) I presume they are bytes |
There are two ways that suggestion can be interpreted: add units to the names or add units to the values. For consistency with |
…sage API (#31647) This change adds stats about forecasts, to the jobstats api as well as xpack/_usage. The following information is collected: _xpack/ml/anomaly_detectors/{jobid|_all}/_stats: - total number of forecasts - memory statistics (mean/min/max) - runtime statistics - record statistics - counts by status _xpack/usage - collected by job status as well as overall (_all): - total number of forecasts - number of jobs that have at least 1 forecast - memory, runtime, record statistics - counts by status Fixes #31395
@tsullivan Regarding your request:
As far as I can see it, the change in #31647 automatically adds the new telemetry data into monitoring as well, because monitoring indexes the jobstats object as is. Querying the For follow up, I suggest a new issue. I think there are several follow up items. Short term (probably easy to implement) would be to add the number of forecasts to the already existing Jobs table. Long term I would like to see charts, but 1st for jobs, 2nd for forecasts. |
…sage API (#31647) This change adds stats about forecasts, to the jobstats api as well as xpack/_usage. The following information is collected: _xpack/ml/anomaly_detectors/{jobid|_all}/_stats: - total number of forecasts - memory statistics (mean/min/max) - runtime statistics - record statistics - counts by status _xpack/usage - collected by job status as well as overall (_all): - total number of forecasts - number of jobs that have at least 1 forecast - memory, runtime, record statistics - counts by status Fixes #31395
_xpack/usage
currently does not return any stats about forecasts of ml jobs. Information of interest:The text was updated successfully, but these errors were encountered: