Skip to content

[Monitoring Kibana] System test for ensuring parity in indexed docs #7589

@ycombinator

Description

@ycombinator

We are currently working on a solution that will allow users to use Metricbeat to monitor the Elastic stack. The first piece of this is to try and use Metricbeat to monitor Kibana.

The idea is that metricbeat will create exactly the same documents in .monitoring-kibana-* indices as Kibana's bulk uploader does today. In order to verify that this parity is indeed maintained at all times, we should write an automated system test that will do something like the following:

  1. Start up Elasticsearch (with the default Basic license is okay)
  2. Enable Monitoring in Elasticsearch (via the cluster setting xpack.monitoring.collection.enabled: true )
  3. Start up Kibana (with the default Basic license is okay)
  4. Let Kibana run for ~20 seconds so a few documents are indexed into .monitoring-kibana-*.
  5. Stop Kibana
  6. From .monitoring-kibana-*, retrieve a document each for type = kibana_stats and type = kibana_settings.
  7. Delete the .monitoring-kibana-* indices.
  8. In kibana.yml, set xpack.monitoring.kibana.collection.enabled: false.
  9. Start up Kibana again.
  10. Enable the kibana module with the stats and settings metricsets in metricbeat.
  11. Set xpack.enabled: true in the modules.kibana section in metricbeat.yml.
  12. Start metricbeat.
  13. Let metricbeat run for ~20 seconds so a few documents are indexed into .monitoring-kibana-*.
  14. Stop metricbeat
  15. From .monitoring-kibana-*, retrieve a document each for type = kibana_stats and type = kibana_settings.
  16. Compare the documents retrieved indexed by Kibana's with those indexed by metricbeat. Verify that their structures are identical (same fields, not necessarily same values).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions