|
| 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 { TutorialsCategory } from '../../services/tutorials'; |
| 22 | +import { |
| 23 | + onPremInstructions, |
| 24 | + cloudInstructions, |
| 25 | + onPremCloudInstructions, |
| 26 | +} from '../instructions/metricbeat_instructions'; |
| 27 | +import { |
| 28 | + TutorialContext, |
| 29 | + TutorialSchema, |
| 30 | +} from '../../services/tutorials/lib/tutorials_registry_types'; |
| 31 | + |
| 32 | +export function googlecloudMetricsSpecProvider(context: TutorialContext): TutorialSchema { |
| 33 | + const moduleName = 'googlecloud'; |
| 34 | + return { |
| 35 | + id: 'googlecloudMetrics', |
| 36 | + name: i18n.translate('home.tutorials.googlecloudMetrics.nameTitle', { |
| 37 | + defaultMessage: 'Google Cloud metrics', |
| 38 | + }), |
| 39 | + category: TutorialsCategory.METRICS, |
| 40 | + shortDescription: i18n.translate('home.tutorials.googlecloudMetrics.shortDescription', { |
| 41 | + defaultMessage: |
| 42 | + 'Fetch monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API.', |
| 43 | + }), |
| 44 | + longDescription: i18n.translate('home.tutorials.googlecloudMetrics.longDescription', { |
| 45 | + defaultMessage: |
| 46 | + 'The `googlecloud` Metricbeat module fetches monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API. \ |
| 47 | +[Learn more]({learnMoreLink}).', |
| 48 | + values: { |
| 49 | + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-googlecloud.html', |
| 50 | + }, |
| 51 | + }), |
| 52 | + euiIconType: 'logoGCP', |
| 53 | + isBeta: false, |
| 54 | + artifacts: { |
| 55 | + dashboards: [ |
| 56 | + { |
| 57 | + id: 'f40ee870-5e4a-11ea-a4f6-717338406083', |
| 58 | + linkLabel: i18n.translate( |
| 59 | + 'home.tutorials.googlecloudMetrics.artifacts.dashboards.linkLabel', |
| 60 | + { |
| 61 | + defaultMessage: 'Google Cloud metrics dashboard', |
| 62 | + } |
| 63 | + ), |
| 64 | + isOverview: true, |
| 65 | + }, |
| 66 | + ], |
| 67 | + exportedFields: { |
| 68 | + documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-googlecloud.html', |
| 69 | + }, |
| 70 | + }, |
| 71 | + completionTimeMinutes: 10, |
| 72 | + previewImagePath: '/plugins/home/assets/googlecloud_metrics/screenshot.png', |
| 73 | + onPrem: onPremInstructions(moduleName, context), |
| 74 | + elasticCloud: cloudInstructions(moduleName), |
| 75 | + onPremElasticCloud: onPremCloudInstructions(moduleName), |
| 76 | + }; |
| 77 | +} |
0 commit comments