Add Kibana tutorial for Statsd Metricbeat module (#55700)

This commit is contained in:
Chris Mark 2020-01-23 17:09:36 +02:00 committed by GitHub
parent fe5e470aae
commit 63d3cbc941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="200.000000pt" height="200.000000pt" viewBox="0 0 200.000000 200.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,200.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 1000 l0 -1000 1000 0 1000 0 0 1000 0 1000 -1000 0 -1000 0 0
-1000z m230 50 l0 -130 208 -3 207 -2 -217 -3 -218 -2 0 135 c0 83 4 135 10
135 6 0 10 -50 10 -130z m1570 0 l0 -130 -25 0 c-14 0 -25 5 -25 10 0 7 -6 7
-19 0 -31 -16 -63 -12 -88 12 -18 17 -23 32 -23 75 0 67 24 96 80 95 3 0 15
-3 28 -7 20 -6 22 -3 22 34 0 37 2 41 25 41 l25 0 0 -130z m-760 90 c0 -20 5
-30 15 -30 8 0 15 -9 15 -20 0 -11 -7 -20 -15 -20 -12 0 -15 -13 -15 -55 0
-42 3 -55 15 -55 8 0 15 -9 15 -20 0 -15 -7 -20 -27 -20 -47 0 -57 13 -61 84
-2 36 -8 66 -13 66 -5 0 -9 9 -9 20 0 11 5 20 10 20 6 0 10 7 10 16 0 18 27
43 48 44 7 0 12 -12 12 -30z m320 0 c0 -20 5 -30 15 -30 8 0 15 -9 15 -20 0
-11 -7 -20 -15 -20 -12 0 -15 -13 -15 -55 0 -42 3 -55 15 -55 8 0 15 -9 15
-20 0 -15 -7 -20 -27 -20 -47 0 -57 13 -61 84 -2 36 -8 66 -13 66 -5 0 -9 9
-9 20 0 11 5 20 10 20 6 0 10 7 10 16 0 18 27 43 48 44 7 0 12 -12 12 -30z
m-722 2 c-13 -29 -64 -112 -70 -112 -4 0 -16 14 -28 30 -12 17 -25 30 -29 30
-5 0 -24 -22 -42 -50 l-34 -49 -32 37 c-17 20 -33 35 -35 32 -2 -3 -20 -31
-41 -62 -20 -32 -42 -58 -47 -58 -5 0 4 21 21 48 17 26 39 59 48 74 9 16 19
28 23 28 4 0 19 -16 34 -35 l27 -35 35 50 c19 27 38 50 41 50 3 -1 18 -17 33
-36 l27 -36 26 51 c14 28 30 51 36 51 6 0 9 -3 7 -8z m275 -44 c9 -5 17 -15
17 -23 0 -18 -33 -20 -59 -3 -10 6 -27 8 -37 4 -18 -7 -18 -8 0 -22 11 -8 29
-14 41 -14 57 0 84 -61 45 -100 -37 -37 -150 -18 -150 26 0 16 45 20 55 4 9
-14 68 -13 63 2 -2 6 -25 17 -51 25 -59 17 -79 49 -54 87 23 35 78 41 130 14z
m327 -4 c10 -10 16 -41 18 -94 4 -75 3 -80 -16 -80 -12 0 -24 5 -28 11 -4 8
-9 8 -17 0 -16 -16 -73 -13 -91 5 -38 37 -9 87 57 99 42 8 52 35 13 35 -14 0
-27 -4 -30 -9 -9 -14 -46 -1 -46 16 0 37 105 50 140 17z m313 4 c9 -5 17 -15
17 -23 0 -18 -33 -20 -59 -3 -10 6 -27 8 -37 4 -18 -7 -18 -8 0 -22 11 -8 29
-14 41 -14 59 0 88 -72 43 -104 -45 -32 -148 -11 -148 30 0 16 45 20 55 4 9
-14 68 -13 63 2 -2 6 -25 17 -51 25 -59 17 -79 49 -54 87 23 35 78 41 130 14z"/>
<path d="M1676 1054 c-11 -28 -6 -71 9 -84 37 -31 80 24 57 75 -13 29 -56 35
-66 9z"/>
<path d="M1163 1000 c-31 -13 -30 -40 2 -40 21 0 45 24 45 44 0 8 -21 6 -47
-4z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -85,6 +85,7 @@ import { ibmmqLogsSpecProvider } from './ibmmq_logs';
import { stanMetricsSpecProvider } from './stan_metrics';
import { envoyproxyMetricsSpecProvider } from './envoyproxy_metrics';
import { ibmmqMetricsSpecProvider } from './ibmmq_metrics';
import { statsdMetricsSpecProvider } from './statsd_metrics';
export const builtInTutorials = [
systemLogsSpecProvider,
@ -156,4 +157,5 @@ export const builtInTutorials = [
ibmmqMetricsSpecProvider,
stanMetricsSpecProvider,
envoyproxyMetricsSpecProvider,
statsdMetricsSpecProvider,
];

View file

@ -0,0 +1,61 @@
/*
* 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, TutorialSchema } from '../../services/tutorials';
import {
onPremInstructions,
cloudInstructions,
onPremCloudInstructions,
} from '../instructions/metricbeat_instructions';
import { TutorialContext } from '../../services/tutorials/lib/tutorials_registry_types';
export function statsdMetricsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'statsd';
return {
id: 'statsdMetrics',
name: i18n.translate('home.tutorials.statsdMetrics.nameTitle', {
defaultMessage: 'Statsd metrics',
}),
category: TutorialsCategory.METRICS,
shortDescription: i18n.translate('home.tutorials.statsdMetrics.shortDescription', {
defaultMessage: 'Fetch monitoring metrics from statsd.',
}),
longDescription: i18n.translate('home.tutorials.statsdMetrics.longDescription', {
defaultMessage:
'The `statsd` Metricbeat module fetches monitoring metrics from statsd. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-statsd.html',
},
}),
euiIconType: '/plugins/kibana/home/tutorial_resources/logos/statsd.svg',
artifacts: {
dashboards: [],
exportedFields: {
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-statsd.html',
},
},
completionTimeMinutes: 10,
// previewImagePath: '',
onPrem: onPremInstructions(moduleName, context),
elasticCloud: cloudInstructions(moduleName),
onPremElasticCloud: onPremCloudInstructions(moduleName),
};
}