Skip to content

Commit

Permalink
[RAC] [Observability] Enable the observability alerting and cases fea…
Browse files Browse the repository at this point in the history
…tures (#115785)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
weltenwort and kibanamachine authored Oct 25, 2021
1 parent de59cfe commit 125c569
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 13 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/observability/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const config: PluginConfigDescriptor = {
index: schema.string({ defaultValue: 'observability-annotations' }),
}),
unsafe: schema.object({
alertingExperience: schema.object({ enabled: schema.boolean({ defaultValue: false }) }),
cases: schema.object({ enabled: schema.boolean({ defaultValue: false }) }),
alertingExperience: schema.object({ enabled: schema.boolean({ defaultValue: true }) }),
cases: schema.object({ enabled: schema.boolean({ defaultValue: true }) }),
}),
}),
};
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/rule_registry/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const config: PluginConfigDescriptor = {
deprecations: ({ deprecate, unused }) => [unused('unsafe.indexUpgrade.enabled')],
schema: schema.object({
write: schema.object({
enabled: schema.boolean({ defaultValue: false }),
enabled: schema.boolean({ defaultValue: true }),
}),
unsafe: schema.object({
legacyMultiTenancy: schema.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default function ({ getService }: FtrProviderContext) {
'indexPatterns',
'graph',
'monitoring',
'observabilityCases',
'savedObjectsManagement',
'savedObjectsTagging',
'ml',
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/api_integration/apis/security/privileges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function ({ getService }: FtrProviderContext) {
savedObjectsTagging: ['all', 'read'],
canvas: ['all', 'read'],
maps: ['all', 'read'],
observabilityCases: ['all', 'read'],
fleet: ['all', 'read'],
actions: ['all', 'read'],
stackAlerts: ['all', 'read'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function ({ getService }: FtrProviderContext) {
savedObjectsTagging: ['all', 'read'],
graph: ['all', 'read'],
maps: ['all', 'read'],
observabilityCases: ['all', 'read'],
canvas: ['all', 'read'],
infrastructure: ['all', 'read'],
logs: ['all', 'read'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql([
'Overview',
'Alerts',
'APM',
'User Experience',
'Stack Management',
Expand Down Expand Up @@ -116,7 +117,13 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows apm navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'APM', 'User Experience', 'Stack Management']);
expect(navLinks).to.eql([
'Overview',
'Alerts',
'APM',
'User Experience',
'Stack Management',
]);
});

it('can navigate to APM app', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows metrics navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Metrics', 'Stack Management']);
expect(navLinks).to.eql(['Overview', 'Alerts', 'Metrics', 'Stack Management']);
});

describe('infrastructure landing page without data', () => {
Expand Down Expand Up @@ -159,7 +159,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows metrics navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Metrics', 'Stack Management']);
expect(navLinks).to.eql(['Overview', 'Alerts', 'Metrics', 'Stack Management']);
});

describe('infrastructure landing page without data', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows logs navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Logs', 'Stack Management']);
expect(navLinks).to.eql(['Overview', 'Alerts', 'Logs', 'Stack Management']);
});

describe('logs landing page without data', () => {
Expand Down Expand Up @@ -121,7 +121,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows logs navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Logs', 'Stack Management']);
expect(navLinks).to.eql(['Overview', 'Alerts', 'Logs', 'Stack Management']);
});

describe('logs landing page without data', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql([
'Overview',
'Alerts',
'Uptime',
'Stack Management',
]);
Expand Down Expand Up @@ -121,7 +122,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows uptime navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Uptime', 'Stack Management']);
expect(navLinks).to.eql(['Overview', 'Alerts', 'Uptime', 'Stack Management']);
});

it('can navigate to Uptime app', async () => {
Expand Down
4 changes: 0 additions & 4 deletions x-pack/test/observability_functional/with_rac_write.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
`--elasticsearch.hosts=https://${servers.elasticsearch.hostname}:${servers.elasticsearch.port}`,
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`,
// TO DO: Remove feature flags once we're good to go
'--xpack.observability.unsafe.alertingExperience.enabled=true',
'--xpack.observability.unsafe.cases.enabled=true',
'--xpack.ruleRegistry.write.enabled=true',
],
},
uiSettings: {
Expand Down

0 comments on commit 125c569

Please sign in to comment.