Skip to content

Commit

Permalink
removing tutorial from apm_oss
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed May 26, 2021
1 parent 25fec3f commit 3afb580
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 1,237 deletions.
9 changes: 0 additions & 9 deletions src/plugins/apm_oss/common/index_pattern_constants.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/plugins/apm_oss/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import { schema, TypeOf } from '@kbn/config-schema';
import apmIndexPattern from './tutorial/index_pattern.json';
import { PluginInitializerContext } from '../../../core/server';
import { APMOSSPlugin } from './plugin';

Expand All @@ -32,20 +31,3 @@ export function plugin(initializerContext: PluginInitializerContext) {
export type APMOSSConfig = TypeOf<typeof config.schema>;

export { APMOSSPluginSetup } from './plugin';

export { apmIndexPattern };

export { APM_STATIC_INDEX_PATTERN_ID } from '../common/index_pattern_constants';

export {
createNodeAgentInstructions,
createDjangoAgentInstructions,
createFlaskAgentInstructions,
createRailsAgentInstructions,
createRackAgentInstructions,
createJsAgentInstructions,
createGoAgentInstructions,
createJavaAgentInstructions,
createDotNetAgentInstructions,
createPhpAgentInstructions,
} from './tutorial/instructions/apm_agent_instructions';
27 changes: 3 additions & 24 deletions src/plugins/apm_oss/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,18 @@
* Side Public License, v 1.
*/

import { Plugin, CoreSetup, PluginInitializerContext } from 'src/core/server';
import { Observable } from 'rxjs';
import { Plugin, PluginInitializerContext } from 'src/core/server';
import { APMOSSConfig } from './';
import { HomeServerPluginSetup, TutorialProvider } from '../../home/server';
import { tutorialProvider } from './tutorial';

export class APMOSSPlugin implements Plugin<APMOSSPluginSetup> {
constructor(private readonly initContext: PluginInitializerContext) {
this.initContext = initContext;
}
public setup(core: CoreSetup, plugins: { home: HomeServerPluginSetup }) {
public setup() {
const config$ = this.initContext.config.create<APMOSSConfig>();

const config = this.initContext.config.get<APMOSSConfig>();

const apmTutorialProvider = tutorialProvider({
indexPatternTitle: config.indexPattern,
indices: {
errorIndices: config.errorIndices,
metricsIndices: config.metricsIndices,
onboardingIndices: config.onboardingIndices,
sourcemapIndices: config.sourcemapIndices,
transactionIndices: config.transactionIndices,
},
});
plugins.home.tutorials.registerTutorial(apmTutorialProvider);

return {
config,
config$,
getRegisteredTutorialProvider: () => apmTutorialProvider,
};
return { config, config$ };
}

start() {}
Expand All @@ -47,5 +27,4 @@ export class APMOSSPlugin implements Plugin<APMOSSPluginSetup> {
export interface APMOSSPluginSetup {
config: APMOSSConfig;
config$: Observable<APMOSSConfig>;
getRegisteredTutorialProvider(): TutorialProvider;
}
197 changes: 0 additions & 197 deletions src/plugins/apm_oss/server/tutorial/envs/on_prem.ts

This file was deleted.

84 changes: 0 additions & 84 deletions src/plugins/apm_oss/server/tutorial/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/plugins/apm_oss/server/tutorial/index_pattern.json

This file was deleted.

Loading

0 comments on commit 3afb580

Please sign in to comment.