-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into apm-109104-hardcoded-data-streams
- Loading branch information
Showing
895 changed files
with
154,567 additions
and
25,518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"repoOwner": "elastic", | ||
"repoName": "kibana", | ||
"pipelineSlug": "kibana-pull-request", | ||
|
||
"enabled": true, | ||
"allow_org_users": true, | ||
"allowed_repo_permissions": ["admin", "write"], | ||
"allowed_list": ["barlowm", "renovate[bot]"], | ||
"set_commit_status": true, | ||
"commit_status_context": "kibana-ci", | ||
"build_on_commit": true, | ||
"build_on_comment": true, | ||
"trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", | ||
"labels": ["buildkite-ci"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
const NOW = new Date(); | ||
const TWO_HOURS = new Date(NOW.getTime() + 2 * 60 * 60 * 1000); | ||
const { BuildkiteClient } = require('kibana-buildkite-library'); | ||
|
||
const METRICS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/metrics/link-to/host-detail/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?to=${TWO_HOURS.getTime()}`, | ||
`&from=${NOW.getTime()}`, | ||
].join(''); | ||
(async () => { | ||
try { | ||
const client = new BuildkiteClient(); | ||
const build = await client.getCurrentBuild(); | ||
|
||
const LOGS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/logs/link-to/host-logs/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?time=${NOW.getTime()}`, | ||
].join(''); | ||
const job = build.jobs.find((j) => j.id === process.env.BUILDKITE_JOB_ID); | ||
const startTime = job ? new Date(job.started_at) : new Date().getTime() - 60 * 60 * 1000; | ||
const twoHours = new Date(startTime.getTime() + 2 * 60 * 60 * 1000); | ||
|
||
console.log('--- Agent Debug Links'); | ||
console.log('Agent Metrics:'); | ||
console.log('\u001b]1339;' + `url='${METRICS_URL}'\u0007`); | ||
console.log('Agent Logs:'); | ||
console.log('\u001b]1339;' + `url='${LOGS_URL}'\u0007`); | ||
const METRICS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/metrics/link-to/host-detail/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?to=${twoHours.getTime()}`, | ||
`&from=${startTime.getTime()}`, | ||
].join(''); | ||
|
||
const LOGS_URL = [ | ||
`https://kibana-ops-buildkite-monitoring.kb.us-central1.gcp.cloud.es.io:9243`, | ||
`/app/logs/link-to/host-logs/${process.env.BUILDKITE_AGENT_NAME}`, | ||
`?time=${startTime.getTime()}`, | ||
].join(''); | ||
|
||
console.log('--- Agent Debug Links'); | ||
console.log('Agent Metrics:'); | ||
console.log('\u001b]1339;' + `url='${METRICS_URL}'\u0007`); | ||
console.log('Agent Logs:'); | ||
console.log('\u001b]1339;' + `url='${LOGS_URL}'\u0007`); | ||
} catch (ex) { | ||
// Probably don't need to fail the build for this failure, just log it | ||
console.error('Buildkite API Error', ex.message); | ||
if (ex.response) { | ||
console.error('HTTP Error Response Status', ex.response.status); | ||
console.error('HTTP Error Response Body', ex.response.data); | ||
} | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.