|
| 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 | +} |
0 commit comments