How can I see monitoring on kibana?

I can't see monitoring page on kibana.How to fix it ?

kibana version : 7.13.1

kibana.yaml

xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true

kibana show err:

I try to install monitoring plugin

root@ip-xx-xx-xx:/usr/share/kibana# bin/kibana-plugin install monitoring
Attempting to transfer from monitoring
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/monitoring/monitoring-7.13.1.zip
Plugin installation was unsuccessful due to error "No valid url specified."

Can you share your Kibana logs from startup?

It have no error logs

{"type":"log","@timestamp":"2021-08-19T02:00:55+00:00","tags":["info","plugins-service"],"pid":11392,"message":"Plugin \"security\" is disabled."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","config","deprecation"],"pid":11392,"message":"\"logging.dest\" has been deprecated and will be removed in 8.0. To set the destination moving forward, you can use the \"console\" appender in your logging configuration or define a custom one. For more details, see https://github.com/elastic/kibana/blob/master/src/core/server/logging/README.mdx"}
{"type":"log","@timestamp":"2021-08-19T02:00:55+00:00","tags":["info","plugins-service"],"pid":11392,"message":"Plugin \"timelines\" is disabled."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","config","deprecation"],"pid":11392,"message":"plugins.scanDirs is deprecated and is no longer used"}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","config","deprecation"],"pid":11392,"message":"\"xpack.monitoring\" is deprecated and has been replaced by \"monitoring\""}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","config","deprecation"],"pid":11392,"message":"Config key [monitoring.cluster_alerts.email_notifications.email_address] will be required for email notifications to work in 8.0.\""}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","config","deprecation"],"pid":11392,"message":"Disabling the security plugin (`xpack.security.enabled`) will not be supported in the next major version (8.0). To turn off security features, disable them in Elasticsearch instead."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","plugins-system"],"pid":11392,"message":"Setting up [105] plugins: [taskManager,licensing,globalSearch,globalSearchProviders,banners,encryptedSavedObjects,code,usageCollection,xpackLegacy,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaUsageCollection,securityOss,share,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,translations,licenseApiGuard,legacyExport,embeddable,uiActionsEnhanced,expressions,charts,esUiShared,bfetch,data,home,cloud,console,consoleExtensions,apmOss,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,fileUpload,savedObjects,visualizations,visTypeMetric,visTypeMarkdown,visTypeTimelion,features,upgradeAssistant,snapshotRestore,licenseManagement,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,dataEnhanced,beatsManagement,watcher,transform,ingestPipelines,visTypeVislib,visTypeVega,visTypeTable,visTypeTagcloud,visTypeXy,tileMap,regionMap,savedObjectsTagging,presentationUtil,canvas,graph,timelion,dashboard,maps,dashboardMode,dashboardEnhanced,visualize,visTypeTimeseries,inputControlVis,lens,indexPatternManagement,rollup,discover,discoverEnhanced,fileDataVisualizer,savedObjectsManagement,spaces,reporting,lists,enterpriseSearch,eventLog,actions,alerting,triggersActionsUi,stackAlerts,ruleRegistry,observability,osquery,ml,securitySolution,cases,infra,monitoring,logstash,apm,uptime]"}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","plugins","taskManager"],"pid":11392,"message":"TaskManager is identified by the Kibana UUID: bb7b5252-1e75-4a56-878b-e3321b8f8ebf"}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","plugins","encryptedSavedObjects"],"pid":11392,"message":"Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","plugins","reporting","config"],"pid":11392,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","plugins","reporting","config"],"pid":11392,"message":"Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 18.04 OS. Automatically enabling Chromium sandbox."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","plugins","actions","actions"],"pid":11392,"message":"APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["warning","plugins","alerting","plugins","alerting"],"pid":11392,"message":"APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","plugins","monitoring","monitoring"],"pid":11392,"message":"config sourced from: production cluster"}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"Starting saved objects migrations"}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana_task_manager] INIT -> OUTDATED_DOCUMENTS_SEARCH. took: 4ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana] INIT -> OUTDATED_DOCUMENTS_SEARCH. took: 15ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 10ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 7ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 9ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 25ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 103ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:56+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana_task_manager] Migration completed after 126ms"}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 204ms."}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","savedobjects-service"],"pid":11392,"message":"[.kibana] Migration completed after 252ms"}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","plugins-system"],"pid":11392,"message":"Starting [105] plugins: [taskManager,licensing,globalSearch,globalSearchProviders,banners,encryptedSavedObjects,code,usageCollection,xpackLegacy,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaUsageCollection,securityOss,share,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,translations,licenseApiGuard,legacyExport,embeddable,uiActionsEnhanced,expressions,charts,esUiShared,bfetch,data,home,cloud,console,consoleExtensions,apmOss,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,fileUpload,savedObjects,visualizations,visTypeMetric,visTypeMarkdown,visTypeTimelion,features,upgradeAssistant,snapshotRestore,licenseManagement,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,dataEnhanced,beatsManagement,watcher,transform,ingestPipelines,visTypeVislib,visTypeVega,visTypeTable,visTypeTagcloud,visTypeXy,tileMap,regionMap,savedObjectsTagging,presentationUtil,canvas,graph,timelion,dashboard,maps,dashboardMode,dashboardEnhanced,visualize,visTypeTimeseries,inputControlVis,lens,indexPatternManagement,rollup,discover,discoverEnhanced,fileDataVisualizer,savedObjectsManagement,spaces,reporting,lists,enterpriseSearch,eventLog,actions,alerting,triggersActionsUi,stackAlerts,ruleRegistry,observability,osquery,ml,securitySolution,cases,infra,monitoring,logstash,apm,uptime]"}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["warning","plugins","fleet"],"pid":11392,"message":"Fleet requires the security plugin to be enabled."}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","http","server","Kibana"],"pid":11392,"message":"http server running at http://localhost:5601"}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","plugins","securitySolution"],"pid":11392,"message":"Dependent plugin setup complete - Starting ManifestTask"}
{"type":"log","@timestamp":"2021-08-19T02:00:57+00:00","tags":["info","plugins","monitoring","monitoring","kibana-monitoring"],"pid":11392,"message":"Starting monitoring stats collection"}
{"type":"log","@timestamp":"2021-08-19T02:00:58+00:00","tags":["info","plugins","reporting"],"pid":11392,"message":"Browser executable: /usr/share/kibana/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/headless_shell"}

Hello @lisiyu,

First, I would like to better understand the architecture you are using in order to achieve the goal of monitoring. Note that in production environments Elastic recommends using a separate monitoring cluster. You can see information about it here . Is your monitoring cluster the same device that host Kibana and Elasticsearch?

When this "Something went wrong" error showed up? Is it once you click "Stack Monitoring" or any specific option in this view?

Did you Installed and configured Metricbeat?

Thanks for your reply.
I refer to this doc. Enabling monitoring xpack in Elastic Search 7 - Visualizing Logstash pipelines in Kibana - ZYLK
When I open the kibana home page,this wrong have show .I removed xpack.monitoring.enabled: true config. This wrong disappear . I can't fine "Stack Monitoring" page

Metricbeat is work

Hello @lisiyu,

Thanks for the details.

Did you enable minimal security for elasticsearch? The article you shared informs it is necessary.

Do I have to enablen the security function? Because it's a test environment, I don't want to enable it.

Hello @lisiyu

Thanks for your response.

Well, as you can see in the article you shared it informs:

For enabling (you need to have security xpack enabled first to define the application usersset)

So yes, you need to enable security function. If your concern is with the license, you can use a trial license and when it ends you can go back to basic license. See more info here and here

You can enable your trial directly in the console http://localhost:5601/app/management/stack/license_management or through command line as follows:

curl -X POST "http://localhost:9200/_license/start_trial?acknowledge=true&pretty"

You might need to change localhost for your host IP address depending on your environment.

Let me know if this answer your question,

Regards,

I don't think that's the problem.
In my mac,I tried to start kibana and elasticsearch on docker.This is config:
kibana.yaml:

xpack.security.enabled: false
monitoring.ui.container.elasticsearch.enabled: true

elasticsearch.yaml:

xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true

It is working:

But the same config setting on test environment,it's not work.Kibana show Definition of plugin "monitoring" not found and may have failed to load .I don't know what is the probelm.

I solved the problem.
Because the Kibana static files were slow to load, I added a CDN agent before the domain name and cached the static files, including .js files, so the Monitoring plugin never loaded. So stack Monitoring is not displayed. Thanks for your responses.

1 Like

Hello @lisiyu
Nice to know you found and solved the issue.
Thanks for sharing the root cause and how you managed to fix it.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.