Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide same data structure as X-Pack for ES node_stats #6807

Merged
merged 2 commits into from
Apr 26, 2018

Commits on Apr 26, 2018

  1. Provide same data structure as X-Pack for ES node_stats

    This PR adds a flag `xpack.enabled` to the Elasticsearch Metricbeat module. If enabled the data is transformed to the format as X-Pack Monitoring needs for the UI. It overwrites the index with `monitoring`.
    
    A config to enable the feature currently looks as following:
    
    ```
    metricbeat.modules:
    - module: elasticsearch
      metricsets: ["node_stats"]
      hosts: ["localhost:9200"]
      period: 1s
      xpack.enabled: true
    ```
    
    * Data is sent to the index `.monitoring-es-6-mb-{date}`. This is hard coded.
    * To enabled the feature `xpack.enabled` has to be set in the module
    * If a node is master is checked on each request as it can change over time. The master request is not atomic so this information could be inaccurate. The master detection also only works correctly, if data is fetched from only 1 node.
    * The cluser_uuid is fetched on the first request and cached from then based on the assumption that the cluster_id for a node id does not change over time.
    * `limit_in_bytes` and `usage_in_bytes` are provided as string by ES and not converted to int as they could overflow in ES.
    * Experimental message is logged when used. The feature is not documented yet on purpose.
    
    As the data goes into a separate index it is expected that monitoring already has loaded the template.
    ruflin committed Apr 26, 2018
    Configuration menu
    Copy the full SHA
    5633d7a View commit details
    Browse the repository at this point in the history
  2. remove deep update

    ruflin committed Apr 26, 2018
    Configuration menu
    Copy the full SHA
    7b01883 View commit details
    Browse the repository at this point in the history