-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Monitoring telemetry collection interval #34609
Monitoring telemetry collection interval #34609
Conversation
Pinging @elastic/stack-monitoring |
Pinging @elastic/kibana-platform |
💔 Build Failed |
retest |
💔 Build Failed |
@Bamieh I think the test failure here might be legitimate? When we call the telemetry stats API (I have updated the monitoring-kibana template) If I remove that filter clause, I can see the result set has documents with kibana_stats.usage.index |
This query returns results:
it will return the following (can see the mix of usage data and no usage data)
But updating the filter to
|
Never mind ... after deleting the index and recreating it, the queries work fine. It must have been created before I updated the template. |
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.
LGTM - I tested both the collection and the telemetry locally, and working as expected. I think the integration test is failing for the same reason my local testing was failing for a while, indices weren't created with the new template. Once the ES changes show up in snapshots this should be good to go.
retest |
💔 Build Failed |
looks like the snapshot already has the new template. This is captured from the same ES snapshot running locally ( https://snapshots.elastic.co/8.0.0-55bab4fb/downloads/elasticsearch/elasticsearch-8.0.0-SNAPSHOT-darwin-x86_64.tar.gz )
The failures are reproducible locally by running the api tests, so it is something other than the template. |
Hi, AFAICT the changes in this PR (and the original draft PR proposed by @chrisronline) will only affect internal collection, that is when Kibana is collecting usage metrics internally and bulk uploads them to the Elasticsearch However, the long term plan for Monitoring has been for Metricbeat to externally collect monitoring metrics from Kibana. Metricbeat does this by calling the If this PR is merged, the internal collection will work as we want it to. That is, usage will only be collected every @chrisronline Please correct me if I got any of the above wrong. |
@ycombinator That is correct. This is a general and reoccurring issue between MB and internal collection. We opened a ticket to discuss how to make this better: #34940 |
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.
LGTM, pending CI passing.
x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js
Outdated
Show resolved
Hide resolved
…high_level_stats.js Co-Authored-By: Bamieh <[email protected]>
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.
LGTM
💔 Build Failed |
💔 Build Failed |
…:Bamieh/kibana into monitoring-telemetry-collection-interval
💚 Build Succeeded |
* Only collect usage data once a day from kibana monitoring * isUsageCollector * bulk uploader tests * linting * condition filter * checkout yarn.lock from master * update mappings for functional tests * debugging for refactoring * support legacy mappings * self code review * isUsageCollector * fix mock * live coding session with pickypg * self code review * Update x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js Co-Authored-By: Bamieh <[email protected]> * update mappings
* Only collect usage data once a day from kibana monitoring * isUsageCollector * bulk uploader tests * linting * condition filter * checkout yarn.lock from master * update mappings for functional tests * debugging for refactoring * support legacy mappings * self code review * isUsageCollector * fix mock * live coding session with pickypg * self code review * Update x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js Co-Authored-By: Bamieh <[email protected]> * update mappings
* Only collect usage data once a day from kibana monitoring * isUsageCollector * bulk uploader tests * linting * condition filter * checkout yarn.lock from master * update mappings for functional tests * debugging for refactoring * support legacy mappings * self code review * isUsageCollector * fix mock * live coding session with pickypg * self code review * Update x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js Co-Authored-By: Bamieh <[email protected]> * update mappings
* Only collect usage data once a day from kibana monitoring * isUsageCollector * bulk uploader tests * linting * condition filter * checkout yarn.lock from master * update mappings for functional tests * debugging for refactoring * support legacy mappings * self code review * isUsageCollector * fix mock * live coding session with pickypg * self code review * Update x-pack/plugins/xpack_main/server/lib/telemetry/monitoring/get_high_level_stats.js Co-Authored-By: Bamieh <[email protected]> * update mappings
I noticed that this PR has been labeled with |
Assuming we get a |
Notes for QA
Some cases for when monitoring will put the
|
Work on @chrisronline draft PR #33705
Relates to #32519
This is a straight copy and paste from this comment. This PR implements this idea.
In order for this PR to work, you'll need to update the
.monitoring-kibana
index template in ES.Copy and paste the json from here -> https://gist.github.com/chrisronline/fdf4f549d4e96cdda06e7b20cf88ce2a