-
Notifications
You must be signed in to change notification settings - Fork 4.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
Metricbeat reinstalls dashboards on every restart. Overwrites user changes to dashboards #29970
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
It is not a change/bug in Beats behaviour. If you configure any options under This might not be straightforward, but this is how Beats work. The problem is rather that we missing configuration for this option. For SSL settings we have a note that clearly lets users know about this behaviour: https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-ssl.html#enabled We should add the same clarifications instead of breaking existing behaviour. |
I'm curious about this, is this true that this behavior wasn't present prior to 7.16? |
No, it is not true. We haven't changed anything in enabling/disabling dashboard loading since 2017. Also, Beats adopted the Saved Objects API in 7.15, so it has nothing to do with the migration. There were no changes to dashboard loading between 7.15 and 7.16/7.17 in Beats. To see it for myself, I have tested the attached configuration with Metricbeat 7.15 and it loads the dashboard when I run |
Also, what is |
my understanding (which could have been wrong from the beginning) was that when we run the setup command, and we are using beats from a snapshot build, that parameter was necessary. We've been setting it only when we test snapshot builds, not BCs. |
I have found it! The setting was removed in #4675. Setting the option is no longer needed/possible. |
Thanks @kvch. I also have an update/correction. The reason I thought 7.15 was different from 7.16+ is that we're not building snapshots of 7.15 any longer so I didn't install a snapshot build, which also means our scripts didn't set We've been using
But since that setting was removed, it seems like maybe NOTE: Beats doesn't seem to WARN or ERROR on having this invalid config parameter present. This is different from Elasticsearch and Kibana which would both treat it as FATAL. |
I'm labeling this a bug because I don't think it was an intentional change back in 7.16 to always load the dashboards when metricbeat starts. I haven't checked this yet on a tar.gz install, only the rpm package install. I'm filing this on metricbeat but I think all beats are doing this.
I verified metricbeat 7.15 doesn't load saved objects unless you call the
setup
step. But 7.16 and 7.17 do.metricbeat.yml:
I'll attached the debug log which shows the dashboards loading.
The text was updated successfully, but these errors were encountered: