-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
xPack:defaultAdminEmail should be marked deprecated in the UI #25439
Comments
Pinging @elastic/kibana-monitoring |
Hey @LeeDr, The
While they are similar to each other, only Rather than marking the setting as deprecated, what if we were to change the description to something like:
|
I don't see it doing #2 above. Is it the From or To email? When I create a new watch and add an email action the To field is blank (not defaulted to that value as I thought it might). |
@LeeDr should be used as the default "To e-mail" when creating a watcher alert notification: |
Sorry, my mistake. That advanced setting does appear as the default email on a new watch. |
We should at least update the description in Advanced Settings now in 7.x since it's wrong as Monitoring won't be using it. |
also @elastic/stack-monitoring : was this supposed to be removed in 7.0? I still see the same warning about deprecation in the logs:
|
@marius-dr I believe it's in progress over here: #33603 |
Is it possible to move this forward? |
This is probably too old to do anything about. This setting was deprecated during 6.x and completely removed in 7.0 |
I am confused about this statement. The setting is still present in Elastic 7.8 (tested locally) and 7.7 (https://demo.elastic.co/) with no deprecation note. I then checked where this setting is actually used by the system watches. Seems Stack monitoring somehow copies it to Ref: https://www.elastic.co/guide/en/kibana/current/advanced-options.html Please give more details when closing an issue so that people finding this have more context. |
Hi @ypid-geberit, Thanks for raising your concerns. You are right, this particular setting still does appear in 7.7 and 7.8, as #33603 was not backported, due to breaking change concerns. So it is a broken experience in 7.x where the code no longer reads this setting due to #60796. This was a mistake on our side and I apologize for not fully understanding that from the start. I'll reopen this ticket and we will work to add a proper deprecation notice for this behavior, as well as also updating the code to read from both locations again. |
Thanks. Then only one thing is unclear to me. What is the recommended way to set the admin email (for the system watches) then? I only found https://www.elastic.co/guide/en/cloud/current/ec-manage-kibana-settings.html |
The only way it will work (until we patch this) for 7.7 and beyond is to set it inside of Does that help? |
@chrisronline Shouldn't the |
@igoristic Yes, but those older configs are only deprecated. We should ensure we update that before 8.0 is released though. |
All clear, thank you :) |
Should of been closed by: #70280 |
See #22195
Kibana version: 6.5.0
Elasticsearch version: 6.5.0
Server OS version: Ubuntu
Browser version: Chrome
Browser OS version: Windows 10
Original install method (e.g. download page, yum, from source, etc.): tar.gz
Describe the bug: We let users go to Advanced Settings and enter
xPack:defaultAdminEmail
without any indication that it's deprecated, and then we log (only after it's used?) that it's deprecated in the the kibana log file.Seems we should tell the user the setting is deprecated before they set it.
Steps to reproduce:
xPack:defaultAdminEmail
is deprecatedxPack:defaultAdminEmail
Expected behavior: Change the text that appears in the UI to say "DEPRECATED see ... some doc)
Screenshots (if relevant):
![image](https://user-images.githubusercontent.com/13542669/48232200-69793f80-e376-11e8-9cb7-6f88312bc7ae.png)
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
{"type":"log","@timestamp":"2018-11-08T22:00:17Z","tags":["warning","stats-collection"],"pid":3478,"message":"Monitoring is using xPack:defaultAdminEmail for cluster alert notifications, which will not be supported in Kibana 7.0. Please configure xpack.monitoring.cluster_alerts.email_notifications.email_address in your kibana.yml settings"}
Any additional context:
The text was updated successfully, but these errors were encountered: