|
| 1 | +:_module-type: REFERENCE |
| 2 | + |
| 3 | +[id="ref_cluster-logging-elasticsearch-cluster-status_{context}"] |
| 4 | += Elasticsearch cluster status |
| 5 | + |
| 6 | +[role="_abstract"] |
| 7 | +The Grafana dashboard in the *Monitoring* section of the {product-title} web console displays the status of the Elasticsearch cluster. |
| 8 | + |
| 9 | +To get the status of the OpenShift Elasticsearch cluster, visit the Grafana dashboard in the *Monitoring* section of the {product-title} web console at |
| 10 | +`<cluster_url>/monitoring/dashboards/grafana-dashboard-cluster-logging`. |
| 11 | + |
| 12 | +.Elasticsearch status fields |
| 13 | + |
| 14 | +`eo_elasticsearch_cr_cluster_management_state`:: Shows whether the Elasticsearch cluster is in a managed or unmanaged state. For example: |
| 15 | ++ |
| 16 | +[source,terminal] |
| 17 | +---- |
| 18 | +eo_elasticsearch_cr_cluster_management_state{state="managed"} 1 |
| 19 | +eo_elasticsearch_cr_cluster_management_state{state="unmanaged"} 0 |
| 20 | +---- |
| 21 | + |
| 22 | +`eo_elasticsearch_cr_restart_total`:: Shows the number of times the Elasticsearch nodes have restarted for certificate restarts, rolling restarts, or scheduled restarts. For example: |
| 23 | ++ |
| 24 | +[source,terminal] |
| 25 | +---- |
| 26 | +eo_elasticsearch_cr_restart_total{reason="cert_restart"} 1 |
| 27 | +eo_elasticsearch_cr_restart_total{reason="rolling_restart"} 1 |
| 28 | +eo_elasticsearch_cr_restart_total{reason="scheduled_restart"} 3 |
| 29 | +---- |
| 30 | + |
| 31 | +`es_index_namespaces_total`:: Shows the total number of Elasticsearch index namespaces. For example: |
| 32 | ++ |
| 33 | +[source,terminal] |
| 34 | +---- |
| 35 | +Total number of Namespaces. |
| 36 | +es_index_namespaces_total 5 |
| 37 | +---- |
| 38 | + |
| 39 | +`es_index_document_count`:: Shows the number of records for each namespace. For example: |
| 40 | ++ |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +es_index_document_count{namespace="namespace_1"} 25 |
| 44 | +es_index_document_count{namespace="namespace_2"} 10 |
| 45 | +es_index_document_count{namespace="namespace_3"} 5 |
| 46 | +---- |
| 47 | + |
| 48 | +.The "Secret Elasticsearch fields are either missing or empty" message |
| 49 | + |
| 50 | +If Elasticsearch is missing the `admin-cert`, `admin-key`, `logging-es.crt`, or `logging-es.key` files, the dashboard shows a status message similar to the following example: |
| 51 | + |
| 52 | +[source,terminal] |
| 53 | +---- |
| 54 | +message": "Secret \"elasticsearch\" fields are either missing or empty: [admin-cert, admin-key, logging-es.crt, logging-es.key]", |
| 55 | +"reason": "Missing Required Secrets", |
| 56 | +---- |
0 commit comments