[Home][Tutorial] Add Openmetrics data UI (#61073)

This commit is contained in:
Chris Mark 2020-03-24 18:59:09 +02:00 committed by GitHub
parent b0eb79858f
commit 03877d09ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-4.08 0.293 64 64" width="64" height="64"><path d="M59.737 30.82C59.24 12.254 41.2-2.538 22.952.754 4.476 4.1-6.927 20.874-3.21 39.262.283 56.55 19.062 67.936 35.978 63.225c1.195-.394 2.118-.796 2.118-.796l-1.172-5.813-2.243.824c-3.397.995-6.975 1.212-10.468.637C9.642 55.865-.524 41.798 2.247 27.88c3.037-15.256 17.362-24.477 32.25-20.76 18.426 4.6 25.725 28.6 12.862 42.203-.23-.83-.38-1.21-.502-1.755L41.47 23.32c-.453-2.084-.895-4.163-3.464-4.436-2.545-.27-3.534 1.527-4.327 3.572-1.8 4.668-3.758 9.687-5.788 14.176l-1.185-2.066c-1.763-2.922-3.36-5.942-5.06-8.9-.784-1.364-1.93-2.25-3.576-2.08A3.33 3.33 0 0 0 15.042 26l-5.08 17.557 6.118-.265s.432-1.658.68-2.92c.546-2.78 1.393-5.5 2.26-8.82l5.01 9.56c.92 1.763 2.23 3.057 4.335 2.923 2.076-.133 2.923-2.015 3.647-3.665.508-1.158 3.346-8.587 4.864-12.785.19.99.317 1.364.435 1.936l5.734 28.073a70.51 70.51 0 0 0 .54 2.507 20.27 20.27 0 0 0 2.321-1.402c9.434-6.904 14.145-16.11 13.83-27.88z" fill="#c42227"/></svg>

After

Width:  |  Height:  |  Size: 1,017 B

View file

@ -0,0 +1,63 @@
/*
* 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 openmetricsMetricsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'openmetrics';
return {
id: 'openmetricsMetrics',
name: i18n.translate('home.tutorials.openmetricsMetrics.nameTitle', {
defaultMessage: 'OpenMetrics metrics',
}),
category: TutorialsCategory.METRICS,
shortDescription: i18n.translate('home.tutorials.openmetricsMetrics.shortDescription', {
defaultMessage: 'Fetch metrics from an endpoint that serves metrics in OpenMetrics format.',
}),
longDescription: i18n.translate('home.tutorials.openmetricsMetrics.longDescription', {
defaultMessage:
'The `openmetrics` Metricbeat module fetches metrics from an endpoint that serves metrics in OpenMetrics format. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-openmetrics.html',
},
}),
euiIconType: '/plugins/kibana/home/tutorial_resources/logos/openmetrics.svg',
artifacts: {
dashboards: [],
exportedFields: {
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-openmetrics.html',
},
},
completionTimeMinutes: 10,
onPrem: onPremInstructions(moduleName, context),
elasticCloud: cloudInstructions(moduleName),
onPremElasticCloud: onPremCloudInstructions(moduleName),
};
}

View file

@ -87,6 +87,7 @@ import { envoyproxyMetricsSpecProvider } from './envoyproxy_metrics';
import { ibmmqMetricsSpecProvider } from './ibmmq_metrics';
import { statsdMetricsSpecProvider } from './statsd_metrics';
import { redisenterpriseMetricsSpecProvider } from './redisenterprise_metrics';
import { openmetricsMetricsSpecProvider } from './openmetrics_metrics';
export const builtInTutorials = [
systemLogsSpecProvider,
@ -160,4 +161,5 @@ export const builtInTutorials = [
envoyproxyMetricsSpecProvider,
statsdMetricsSpecProvider,
redisenterpriseMetricsSpecProvider,
openmetricsMetricsSpecProvider,
];