Merge pull request #3281 from influxdata/fixes/kapacitor-logs

Fix base path for kapacitor logs
pull/3279/head^2
Brandon Farmer 2018-04-20 14:50:04 -07:00 committed by GitHub
commit bb9794e4c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -14,6 +14,7 @@
### Bug Fixes
1. [#3252](https://github.com/influxdata/chronograf/pull/3252): Allows users to select tickscript editor with mouse
1. [#3281](https://github.com/influxdata/chronograf/pull/3281): Fix base path for kapacitor logs
## v1.4.4.1 [2018-04-16]

View File

@ -107,21 +107,22 @@ const kapacitorLogHeaders = {
}
export const getLogStream = kapacitor =>
fetch(`${kapacitor.links.proxy}?path=/kapacitor/v1preview/logs`, {
AJAX({
url: `${kapacitor.links.proxy}?path=/kapacitor/v1preview/logs`,
method: 'GET',
headers: kapacitorLogHeaders,
credentials: 'include',
})
export const getLogStreamByRuleID = (kapacitor, ruleID) =>
fetch(
`${kapacitor.links.proxy}?path=/kapacitor/v1preview/logs?task=${ruleID}`,
{
method: 'GET',
headers: kapacitorLogHeaders,
credentials: 'include',
}
)
AJAX({
url: `${
kapacitor.links.proxy
}?path=/kapacitor/v1preview/logs?task=${ruleID}`,
method: 'GET',
headers: kapacitorLogHeaders,
credentials: 'include',
})
export const pingKapacitorVersion = async kapacitor => {
try {