You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: Add deprecation check for dashboard loading. (#7675)
For APM Server the recommended way of loading dashboards and Kibana index pattern will be through the Kibana UI from 6.4 on. Since the docs are based on the libbeat docs we need to add a deprecation flag for dashboard and index pattern related documentation.
relates to elastic/apm-server#1142
:run-command-short-desc: Runs {beatname_uc}. This command is used by default if you start {beatname_uc} without specifying a command
22
22
23
+
ifndef::deprecate_dashboard_loading[]
24
+
23
25
ifdef::has_ml_jobs[]
24
26
:setup-command-short-desc: Sets up the initial environment, including the index template, Kibana dashboards (when available), and machine learning jobs (when available)
25
27
endif::[]
26
28
27
29
ifndef::has_ml_jobs[]
28
-
:setup-command-short-desc: Sets up the initial environment, including the index template, Kibana dashboards (when available)
30
+
:setup-command-short-desc: Sets up the initial environment, including the index template and Kibana dashboards (when available)
31
+
endif::[]
32
+
33
+
endif::[]
34
+
35
+
ifdef::deprecate_dashboard_loading[]
36
+
37
+
:setup-command-short-desc: Sets up the initial environment, including the ES index template and Kibana dashboards (deprecated).
38
+
29
39
endif::[]
30
40
31
41
:test-command-short-desc: Tests the configuration
@@ -39,9 +49,17 @@ endif::[]
39
49
<titleabbrev>Command reference</titleabbrev>
40
50
++++
41
51
52
+
ifndef::deprecate_dashboard_loading[]
42
53
{beatname_uc} provides a command-line interface for starting {beatname_uc} and
43
-
performing common tasks, like testing configuration files and loading
44
-
dashboards. The command-line also supports <<global-flags,global flags>>
54
+
performing common tasks, like testing configuration files and loading dashboards.
55
+
endif::[]
56
+
57
+
ifdef::deprecate_dashboard_loading[]
58
+
{beatname_uc} provides a command-line interface for starting {beatname_uc} and
59
+
performing common tasks, like testing configuration files and loading dashboards (deprecated).
60
+
endif::[]
61
+
62
+
The command-line also supports <<global-flags,global flags>>
45
63
for controlling global behaviors.
46
64
47
65
ifeval::["{beatname_lc}"!="winlogbeat"]
@@ -391,8 +409,19 @@ the end of the file is reached. By default harvesters are closed after
391
409
endif::[]
392
410
393
411
*`--setup`*::
394
-
Loads the sample Kibana dashboards. If you want to load the dashboards without
395
-
running {beatname_uc}, use the <<setup-command,`setup`>> command instead.
412
+
ifdef::deprecate_dashboard_loading[]
413
+
deprecated[{deprecate_dashboard_loading}]
414
+
endif::[]
415
+
+
416
+
ifdef::has_ml_jobs[]
417
+
Loads the initial setup, including Elasticsearch template, Kibana index pattern,
418
+
Kibana dashboards and Machine learning jobs.
419
+
endif::[]
420
+
ifndef::has_ml_jobs[]
421
+
Loads the initial setup, including Elasticsearch template, Kibana index pattern and Kibana dashboards.
422
+
endif::[]
423
+
If you want to use the command without running {beatname_uc}, use the <<setup-command,`setup`>> command instead.
424
+
396
425
397
426
ifeval::["{beatname_lc}"=="metricbeat"]
398
427
@@ -431,13 +460,17 @@ Or:
431
460
[[setup-command]]
432
461
==== `setup` command
433
462
434
-
{setup-command-short-desc}.
463
+
{setup-command-short-desc}
435
464
436
465
* The index template ensures that fields are mapped correctly in Elasticsearch.
466
+
437
467
* The Kibana dashboards make it easier for you to visualize {beatname_uc} data
438
468
in Kibana.
469
+
470
+
ifdef::has_ml_jobs[]
439
471
* The machine learning jobs contain the configuration information and metadata
440
472
necessary to analyze data for anomalies.
473
+
endif::[]
441
474
442
475
Use this command instead of `run --setup` when you want to set up the
443
476
environment without actually running {beatname_uc} and ingesting data.
@@ -452,18 +485,32 @@ environment without actually running {beatname_uc} and ingesting data.
452
485
453
486
*FLAGS*
454
487
488
+
ifndef::deprecate_dashboard_loading[]
455
489
*`--dashboards`*::
456
490
Sets up the Kibana dashboards only. This option loads the dashboards from the
457
491
{beatname_uc} package. For more options, such as loading customized dashboards,
458
492
see {beatsdevguide}/import-dashboards.html[Importing Existing Beat Dashboards]
0 commit comments