Skip to content
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

[PoC] Discover context #7

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f3c0a1c
[Advanced Settings] Unskip api integration tests (#178349)
ElenaStoeva Mar 11, 2024
813b515
[ci] Update kibana-ci-apm endpoint (#177727)
jbudz Mar 11, 2024
abb84a6
[Security Solution] Remove filterManager from timeline's redux state …
lgestc Mar 11, 2024
07a8464
[CLI] Add a signal handler to run CPU profiler (#177477)
dokmic Mar 11, 2024
e856741
skip failing test suite (#174384)
jbudz Mar 11, 2024
ab10cc2
[Ops] Prevent emergency-release image build on commits already in mai…
delanni Mar 11, 2024
d7d2e84
decouple anomaly job creation action from Embeddable framework (#176869)
nreese Mar 11, 2024
19cfb9f
[Search] Fix attach index not working properly (#178348)
sphilipse Mar 11, 2024
02009d7
[Synthetics] Fix Certificates page for monitors that have status aler…
justinkambic Mar 11, 2024
85e6af3
[ci] Update APM transaction sample rate back to 0.1 (#178419)
jbudz Mar 11, 2024
4b87694
[SLOs] Add params to summary via ingest pipeline (#178223)
shahzad31 Mar 11, 2024
93ddbe2
[Index Management] Fix save error for deprecated index/component temp…
yuliacech Mar 11, 2024
d9a151d
[Actions] [ServiceNow] Allow to test close incident for serviceNow (#…
js-jankisalvi Mar 11, 2024
881980a
[DOCS] Replace table of links with single link to Obs alerting docs (…
dedemorton Mar 11, 2024
bf32af7
[Cloud Security] Adding the serverless api integration tests folder a…
JordanSh Mar 11, 2024
d6550ef
[Discover] Remove static services (#178172)
davismcphee Mar 11, 2024
cd16d03
[Security Solution] Fix coverage overview console errors (#178126)
maximpn Mar 11, 2024
e31b5f3
[SLO] Rename Attach to dashboard to Add dashboard for slo embeddables…
mgiota Mar 11, 2024
f29fc9a
[Synthetics] Omit the request `Content-Type` header if body check is …
justinkambic Mar 11, 2024
714796b
[Search] fix: update vector search snippets to use try in console but…
TattdCodeMonkey Mar 11, 2024
bbcf14e
skip flaky suite (#171279)
mistic Mar 11, 2024
716c90f
skip flaky suite (#177101)
mistic Mar 11, 2024
3059a9c
Rename DiscoverCustomizationContext to DiscoverRootContext
davismcphee Mar 8, 2024
8b2efa8
Move DiscoverRootContext from stateContainer to DiscoverRootContextPr…
davismcphee Mar 8, 2024
86856f1
Replace showInlineTopNav with setRootContext
davismcphee Mar 8, 2024
83ce52b
Clean up Discover profiles
davismcphee Mar 8, 2024
0d8cb36
Add DiscoverProfilesProvider
davismcphee Mar 8, 2024
a4b9ae4
Update Discover to rely on DiscoverProfilesProvider
davismcphee Mar 8, 2024
8401a44
Improve addProfile/getProfile utilities
davismcphee Mar 8, 2024
08cbf71
Add DiscoverRuntimeContext and DiscoverContextProvider
davismcphee Mar 10, 2024
aa1e659
Initial runtime context support
davismcphee Mar 11, 2024
7dd144c
TEMP
davismcphee Mar 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ notify:
if: "build.state == 'passed' || build.state == 'failed' || build.state == 'scheduled'"

steps:
- trigger: "kibana-artifacts-container-image"
label: ":docker: Build Kibana Artifacts Container Image"
build:
branch: $BUILDKITE_BRANCH
commit: $BUILDKITE_COMMIT
message: Running PR build for $BUILDKITE_BRANCH
- command: "ts-node .buildkite/scripts/serverless/emergency_release/trigger_container_build.ts"
label: "Trigger container build if there are new commits"
env:
DRY_RUN: $DRY_RUN
3 changes: 0 additions & 3 deletions .buildkite/scripts/common/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ export TEST_BROWSER_HEADLESS=1

export ELASTIC_APM_ENVIRONMENT=ci
export ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1
export ELASTIC_APM_SERVER_URL=https://kibana-ci-apm.apm.us-central1.gcp.cloud.es.io
# Not really a secret, if APM supported public auth we would use it and APM requires that we use this name
export ELASTIC_APM_SECRET_TOKEN=7YKhoXsO4MzjhXjx2c

if is_pr; then
if is_pr_with_label "ci:collect-apm"; then
Expand Down
7 changes: 7 additions & 0 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ export GCS_SA_CDN_BUCKET
GCS_SA_CDN_URL="$(vault_get gcs-sa-cdn-prod cdn)"
export GCS_SA_CDN_URL


ELASTIC_APM_SERVER_URL=$(vault_get project-kibana-ci-apm apm_server_url)
export ELASTIC_APM_SERVER_URL

ELASTIC_APM_API_KEY=$(vault_get project-kibana-ci-apm apm_server_api_key)
export ELASTIC_APM_API_KEY

# Setup Failed Test Reporter Elasticsearch credentials
{
TEST_FAILURES_ES_CLOUD_ID=$(vault_get failed_tests_reporter_es cloud_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function main() {

function uploadTriggerStep(commitSha: string) {
const triggerStep: BuildkiteTriggerStep = {
label: ':releasethekaken: Trigger GPCTL / Release Kibana',
label: ':ship: Trigger GPCTL / Release Kibana',
trigger: 'gpctl-promote',
async: true,
build: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

import { execSync } from 'child_process';
import { BuildkiteClient, BuildkiteTriggerStep } from '#pipeline-utils';

const DRY_RUN = !!process.env.DRY_RUN?.match(/^(true|1)$/i);
const buildkite = new BuildkiteClient();

async function main() {
const commitSha = process.env.OVERRIDE_COMMIT || process.env.BUILDKITE_COMMIT;

if (!isCurrentHeadInMain(commitSha!)) {
if (!DRY_RUN) {
console.log(
`DRY_RUN: Commit ${commitSha} isn't in main, triggering container build :green_heart:`
);
} else {
console.log(`Commit ${commitSha} isn't in main, triggering container build :green_heart:`);
uploadTriggerBuildStep();
}
} else {
if (!DRY_RUN) {
console.log(`DRY_RUN: Commit ${commitSha} is in main, no build necessary :yellow_heart:`);
} else {
console.log(`Commit ${commitSha} is in main, no trigger necessary :yellow_heart:`);
}
}
}

function isCurrentHeadInMain(commitSha: string) {
const containmentTest = execSync(
`git branch -r --contains '${commitSha}' | grep -E "(upstream|origin)/main" | wc -l`
).toString();

return parseInt(containmentTest, 10) >= 1;
}

function uploadTriggerBuildStep() {
const triggerStep: BuildkiteTriggerStep = {
label: ':point_right: Trigger emergency commit container build',
trigger: 'kibana-artifacts-container-image',
build: {
message: `Triggered by '${process.env.BUILDKITE_PIPELINE_NAME || 'unknown'}'`,
env: {},
},
};

buildkite.uploadSteps([triggerStep]);
}

main()
.then(() => {
console.log('Trigger container build step uploaded.');
})
.catch((error) => {
console.error(error);
process.exit(1);
});
23 changes: 1 addition & 22 deletions docs/user/alerting/rule-types.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,35 +39,14 @@ see {subscriptions}[the subscription page].
[[observability-rules]]
=== {observability} rules

{observability} rules are categorized into APM and {user-experience}, Logs, Metrics, {stack-monitor-app}, and Uptime.
{observability} rules detect complex conditions in your observability data and create alerts when a rule's conditions are met. For example, you can create a rule that detects when the value of a metric exceeds a specified threshold or when an anomaly occurs on a system or service you are monitoring. For more information, refer to {observability-guide}/create-alerts.html[Alerting].

[NOTE]
==============================================
If you create a rule in the {observability} app, its alerts are not visible in
*{stack-manage-app} > {rules-ui}*. They are visible only in the {observability} app.
==============================================

[cols="2*<"]
|===


| <<apm-alerts, APM and User Experience>>
| Detect complex conditions in *APM* data and trigger built-in actions when the conditions are met.

| {observability-guide}/logs-threshold-alert.html[Logs rules]
| Detect complex conditions in the {logs-app}.

| {observability-guide}/metrics-threshold-alert.html[Metrics rules]
| Detect complex conditions in the {metrics-app}.

| {observability-guide}/slo-burn-rate-alert.html[SLO burn rate rule]
| Detect when the burn rate is above a defined threshold.

| {observability-guide}/monitor-status-alert.html[Uptime rules]
| Detect complex conditions in the {uptime-app}.

|===

[float]
[[ml-rules]]
=== Machine learning rules
Expand Down
Loading