mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Synthetics] do not show api key error unless there are monitors (#147783)
## Summary Resolves https://github.com/elastic/kibana/issues/147586 Do not show errors related to missing synthetics api key unless there are synthetics monitors present. ### Testing 1. Create a brand new cluster via `oblt-cli` 2. Add that cluster details to your `kibana.dev.yml` file 3. Monitor your Kibana logs. Ensure there is not an error log complaining about the api key. For example: ``` [2022-12-14T20:19:43.516-05:00][ERROR][plugins.synthetics] API key is not valid. Cannot push monitor configuration to synthetics public testing locations ```
This commit is contained in:
parent
42006836a1
commit
486b2e0068
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,6 @@ export class SyntheticsService {
|
|||
async pushConfigs() {
|
||||
const service = this;
|
||||
const subject = new Subject<SyntheticsMonitorWithId[]>();
|
||||
const output = await this.getOutput();
|
||||
|
||||
subject.subscribe(async (monitorConfigs) => {
|
||||
try {
|
||||
|
@ -305,6 +304,8 @@ export class SyntheticsService {
|
|||
return null;
|
||||
}
|
||||
|
||||
const output = await this.getOutput();
|
||||
|
||||
if (!output) {
|
||||
sendErrorTelemetryEvents(service.logger, service.server.telemetry, {
|
||||
reason: 'API key is not valid.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue