Skip to content

Commit

Permalink
[Observability onboarding] Enable observability onboarding by default (
Browse files Browse the repository at this point in the history
…#159100)

Since the only way to reach logs onboarding is manually entering the url
it has been decided to enabled this plugin by default.

In serverless it was already enabled by default through the config.
  • Loading branch information
yngrdyn authored Jun 7, 2023
1 parent 0f6eca7 commit 3073ad2
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 7 deletions.
5 changes: 1 addition & 4 deletions config/serverless.oblt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ enterpriseSearch.enabled: false
xpack.cloudSecurityPosture.enabled: false
xpack.securitySolution.enabled: false

## Enable the Serverless Obsersability plugin
## Enable the Serverless Observability plugin
xpack.serverless.observability.enabled: true

# Onboarding
xpack.observability_onboarding.ui.enabled: true

## Configure plugins
xpack.infra.logs.app_target: discover

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const applicationUsageSchema = {
ml: commonSchema,
monitoring: commonSchema,
'observability-overview': commonSchema,
observabilityOnboarding: commonSchema,
'exploratory-view': commonSchema,
osquery: commonSchema,
profiling: commonSchema,
Expand Down
131 changes: 131 additions & 0 deletions src/plugins/telemetry/schema/oss_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4456,6 +4456,137 @@
}
}
},
"observabilityOnboarding": {
"properties": {
"appId": {
"type": "keyword",
"_meta": {
"description": "The application being tracked"
}
},
"viewId": {
"type": "keyword",
"_meta": {
"description": "Always `main`"
}
},
"clicks_total": {
"type": "long",
"_meta": {
"description": "General number of clicks in the application since we started counting them"
}
},
"clicks_7_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the application over the last 7 days"
}
},
"clicks_30_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the application over the last 30 days"
}
},
"clicks_90_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the application over the last 90 days"
}
},
"minutes_on_screen_total": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen since we started counting them."
}
},
"minutes_on_screen_7_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen over the last 7 days"
}
},
"minutes_on_screen_30_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen over the last 30 days"
}
},
"minutes_on_screen_90_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen over the last 90 days"
}
},
"views": {
"type": "array",
"items": {
"properties": {
"appId": {
"type": "keyword",
"_meta": {
"description": "The application being tracked"
}
},
"viewId": {
"type": "keyword",
"_meta": {
"description": "The application view being tracked"
}
},
"clicks_total": {
"type": "long",
"_meta": {
"description": "General number of clicks in the application sub view since we started counting them"
}
},
"clicks_7_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the active application sub view over the last 7 days"
}
},
"clicks_30_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the active application sub view over the last 30 days"
}
},
"clicks_90_days": {
"type": "long",
"_meta": {
"description": "General number of clicks in the active application sub view over the last 90 days"
}
},
"minutes_on_screen_total": {
"type": "float",
"_meta": {
"description": "Minutes the application sub view is active and on-screen since we started counting them."
}
},
"minutes_on_screen_7_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen active application sub view over the last 7 days"
}
},
"minutes_on_screen_30_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen active application sub view over the last 30 days"
}
},
"minutes_on_screen_90_days": {
"type": "float",
"_meta": {
"description": "Minutes the application is active and on-screen active application sub view over the last 90 days"
}
}
}
}
}
}
},
"exploratory-view": {
"properties": {
"appId": {
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/observability_onboarding/e2e/ftr_kibana.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
xpack.observability_onboarding.ui.enabled: true

xpack.cloud.id: 'myDeployment:03ce773830e104e139243c8f053c974d'
2 changes: 1 addition & 1 deletion x-pack/plugins/observability_onboarding/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ObservabilityOnboardingPlugin } from './plugin';

const configSchema = schema.object({
ui: schema.object({
enabled: schema.boolean({ defaultValue: false }),
enabled: schema.boolean({ defaultValue: true }),
}),
});

Expand Down

0 comments on commit 3073ad2

Please sign in to comment.