Elasticsearch node is offline on Stack Monitoring

Hello everyone!
My node dispalyed as offline, but it's working.

How to fix this problem?
Elk and metricbeat are installed on the same VM.

GET /

{
  "name" : "elk-0",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "XkM2smx7Td2rJ8bvipf-cQ",
  "version" : {
    "number" : "7.16.3",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "4e6e4eab2297e949ec994e688dad46290d018022",
    "build_date" : "2022-01-06T23:43:02.825887787Z",
    "build_snapshot" : false,
    "lucene_version" : "8.10.1",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

metricbeat.yml version 7.16.3

queue:
  mem:
    events: 4096
    flush:
      min_events: 0
      timeout: 0s
logging:
  level: info
  selectors: 
  to_syslog: false
  to_eventlog: false
  json: false
  to_files: true
  files:
    path: "/var/log/metricbeat"
    name: metricbeat
    keepfiles: 7
    rotateeverybytes: 10485760
    permissions: '0640'
  metrics:
    enabled: false
output:
  elasticsearch:
    hosts:
    - http://localhost:9200
    username: "username"
    password: "password"
metricbeat:
  config:
    modules:
      path: "/etc/metricbeat/modules.d/*.yml"
  xpack.enabled: true
  tags:
  - elk-magento

elastic.yml

discovery.type: single-node
http.port: 9200
network.host: 0.0.0.0
node.name: elk-0
path.data: "/var/lib/elasticsearch"
path.logs: "/var/log/elasticsearch"
xpack.monitoring.collection.enabled: true
xpack.monitoring.enabled: false
xpack.monitoring.elasticsearch.collection.enabled: false
xpack.security.enabled: true
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.certificate: ssl/cert.pem
xpack.security.transport.ssl.certificate_authorities:
- ssl/ca.pem
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.key: ssl/key.pem
xpack.security.transport.ssl.verification_mode: certificate

elasticsearch-xpack.yml

- module: elasticsearch
  metricsets:
    - node
    - node_stats
    - index
    - index_recovery
    - index_summary
    - shard
    - ml_job
  period: 10s
  hosts: ["http://localhost:9200"]
  username: username
  password: password
  xpack.enabled: true