-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add googlecloud metricbeat module to Kibana Home (#70652)
- Loading branch information
1 parent
f3573f3
commit e1da6a1
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
src/plugins/home/server/tutorials/googlecloud_metrics/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import { TutorialsCategory } from '../../services/tutorials'; | ||
import { | ||
onPremInstructions, | ||
cloudInstructions, | ||
onPremCloudInstructions, | ||
} from '../instructions/metricbeat_instructions'; | ||
import { | ||
TutorialContext, | ||
TutorialSchema, | ||
} from '../../services/tutorials/lib/tutorials_registry_types'; | ||
|
||
export function googlecloudMetricsSpecProvider(context: TutorialContext): TutorialSchema { | ||
const moduleName = 'googlecloud'; | ||
return { | ||
id: 'googlecloudMetrics', | ||
name: i18n.translate('home.tutorials.googlecloudMetrics.nameTitle', { | ||
defaultMessage: 'Google Cloud metrics', | ||
}), | ||
category: TutorialsCategory.METRICS, | ||
shortDescription: i18n.translate('home.tutorials.googlecloudMetrics.shortDescription', { | ||
defaultMessage: | ||
'Fetch monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API.', | ||
}), | ||
longDescription: i18n.translate('home.tutorials.googlecloudMetrics.longDescription', { | ||
defaultMessage: | ||
'The `googlecloud` Metricbeat module fetches monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API. \ | ||
[Learn more]({learnMoreLink}).', | ||
values: { | ||
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-googlecloud.html', | ||
}, | ||
}), | ||
euiIconType: 'logoGCP', | ||
isBeta: false, | ||
artifacts: { | ||
dashboards: [ | ||
{ | ||
id: 'f40ee870-5e4a-11ea-a4f6-717338406083', | ||
linkLabel: i18n.translate( | ||
'home.tutorials.googlecloudMetrics.artifacts.dashboards.linkLabel', | ||
{ | ||
defaultMessage: 'Google Cloud metrics dashboard', | ||
} | ||
), | ||
isOverview: true, | ||
}, | ||
], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-googlecloud.html', | ||
}, | ||
}, | ||
completionTimeMinutes: 10, | ||
previewImagePath: '/plugins/home/assets/googlecloud_metrics/screenshot.png', | ||
onPrem: onPremInstructions(moduleName, context), | ||
elasticCloud: cloudInstructions(moduleName), | ||
onPremElasticCloud: onPremCloudInstructions(moduleName), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters