Skip to content

Commit 3c50551

Browse files
authored
Add data ui for envoyproxy Metricbeat Module (#53476)
1 parent 54b2f14 commit 3c50551

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { i18n } from '@kbn/i18n';
21+
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
22+
import {
23+
onPremInstructions,
24+
cloudInstructions,
25+
onPremCloudInstructions,
26+
} from '../../../common/tutorials/metricbeat_instructions';
27+
28+
export function envoyproxyMetricsSpecProvider(server, context) {
29+
const moduleName = 'envoyproxy';
30+
return {
31+
id: 'envoyproxyMetrics',
32+
name: i18n.translate('kbn.server.tutorials.envoyproxyMetrics.nameTitle', {
33+
defaultMessage: 'Envoy Proxy metrics',
34+
}),
35+
category: TUTORIAL_CATEGORY.METRICS,
36+
shortDescription: i18n.translate('kbn.server.tutorials.envoyproxyMetrics.shortDescription', {
37+
defaultMessage: 'Fetch monitoring metrics from Envoy Proxy.',
38+
}),
39+
longDescription: i18n.translate('kbn.server.tutorials.envoyproxyMetrics.longDescription', {
40+
defaultMessage:
41+
'The `envoyproxy` Metricbeat module fetches monitoring metrics from Envoy Proxy. \
42+
[Learn more]({learnMoreLink}).',
43+
values: {
44+
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-envoyproxy.html',
45+
},
46+
}),
47+
euiIconType: '/plugins/kibana/home/tutorial_resources/logos/envoyproxy.svg',
48+
artifacts: {
49+
dashboards: [],
50+
exportedFields: {
51+
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-envoyproxy.html',
52+
},
53+
},
54+
completionTimeMinutes: 10,
55+
// previewImagePath: '/plugins/kibana/home/tutorial_resources/envoyproxy_metrics/screenshot.png',
56+
onPrem: onPremInstructions(moduleName, null, null, null, context),
57+
elasticCloud: cloudInstructions(moduleName),
58+
onPremElasticCloud: onPremCloudInstructions(moduleName),
59+
};
60+
}

src/legacy/core_plugins/kibana/server/tutorials/register.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ import { awsLogsSpecProvider } from './aws_logs';
8383
import { activemqLogsSpecProvider } from './activemq_logs';
8484
import { activemqMetricsSpecProvider } from './activemq_metrics';
8585
import { azureMetricsSpecProvider } from './azure_metrics';
86+
import { envoyproxyMetricsSpecProvider } from './envoyproxy_metrics';
8687

8788
export function registerTutorials(server) {
8889
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(systemLogsSpecProvider);
@@ -154,4 +155,5 @@ export function registerTutorials(server) {
154155
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(activemqLogsSpecProvider);
155156
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(activemqMetricsSpecProvider);
156157
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(azureMetricsSpecProvider);
158+
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(envoyproxyMetricsSpecProvider);
157159
}

0 commit comments

Comments
 (0)