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

[APM] Add apm_core plugin and query errors, spans, transactions from separate indices #21022

Merged
merged 6 commits into from
Jul 23, 2018

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Jul 20, 2018

Some of APM's config vars need to be available for other plugins (eg. Getting Started) even if APM UI is not available (like in Kibana OSS).
This PR adds a new apm_core plugin which contains the needed config vars, and is in OSS so should always be available for other plugins.

APM in xpack and Getting Started plugin have been updated to use the config vars from apm_core instead of xpack.apm.

Closes #20878
Closes #20978

@sorenlouv sorenlouv changed the title [APM] Add apm_core and query errors, spans, transactions from separate indices [APM] Add apm_core plugin and query errors, spans, transactions from separate indices Jul 20, 2018
@sorenlouv sorenlouv requested a review from nreese July 20, 2018 10:35
export function apmSpecProvider(server) {
const config = server.config();
const apmIndexPattern = getIndexPatternTitle(config);
const apmIndexPattern = config.get('apm_core.indexPattern');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nreese Any objections to this change?

}).default();
},
});
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epixa Created a new apm_core plugin with config vars. Looks ok?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me at a glance!

@sorenlouv sorenlouv added the Team:APM All issues that need APM UI Team support label Jul 20, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sorenlouv
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sorenlouv
Copy link
Member Author

retest

@nreese
Copy link
Contributor

nreese commented Jul 20, 2018

@sqren The tests are failing because Kibana CI is currently broken. Elasticsearch merged a change that broke some function tests. There is PR in place to fix CI

@sorenlouv
Copy link
Member Author

@nreese That explains the (unusually) grumpy CI. Thanks for letting me know!

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
code review

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sorenlouv sorenlouv merged commit 7f57bf3 into elastic:master Jul 23, 2018
@sorenlouv sorenlouv deleted the apm-change-index-pattern branch July 23, 2018 20:20
sorenlouv added a commit to sorenlouv/kibana that referenced this pull request Jul 23, 2018
…m separate indices (elastic#21022)

* [APM] Change index pattern

* WIP: change how indicies are queried in APM

* Create apm_core plugin

* Update config keys from `xpack.apm` to `apm_core`

* Revert tutorial formatting changes

* Rename to apm_oss
sorenlouv added a commit that referenced this pull request Jul 24, 2018
…m separate indices (#21022) (#21108)

* [APM] Change index pattern

* WIP: change how indicies are queried in APM

* Create apm_core plugin

* Update config keys from `xpack.apm` to `apm_core`

* Revert tutorial formatting changes

* Rename to apm_oss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:APM All issues that need APM UI Team support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants