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

[Heartbeat] Remove not needed flags from setup command #11856

Merged
merged 1 commit into from
May 9, 2019

Commits on May 9, 2019

  1. [Heartbeat] Remove not needed flags from setup command

    The setup command until now contained all the possible options from the other Beats. As Heartbeat does not ship anymore with dashboards, the --dashboards command is not needed anymore and is only confusing. I also removed all the other commands except `--ilm-policy` and `--template`. I'm not aware that `--pipelines` or `--machine-learning` would be used.
    
    Here the comparison between `./heartbeat setup -h` from before and after.
    
    Before:
    
    ```
    This command does initial setup of the environment:
    
     * Index mapping template in Elasticsearch to ensure fields are mapped.
     * Kibana dashboards (where available).
     * ML jobs (where available).
     * Ingest pipelines (where available).
     * ILM policy (for Elasticsearch 6.5 and newer).
    
    Usage:
      heartbeat setup [flags]
    
    Flags:
          --dashboards         Setup dashboards
      -h, --help               help for setup
          --ilm-policy         Setup ILM policy
          --machine-learning   Setup machine learning job configurations
          --pipelines          Setup Ingest pipelines
          --template           Setup index template
    ```
    
    After:
    
    ```
    This command does initial setup of the environment:
     * Index mapping template in Elasticsearch to ensure fields are mapped.
     * ILM Policy
    
    Usage:
      heartbeat setup [flags]
    
    Flags:
      -h, --help         help for setup
          --ilm-policy   Setup ILM policy
          --template     Setup index template
    ```
    
    In this PR I did not include a check for the config option `setup.dashboards` to make sure they are not there like apm-server does (https://github.com/elastic/apm-server/blob/2baefab778fdfe70c47bc2fb488677b2e43e4635/beater/beater.go#L60) as I don't think it's necessary.
    ruflin committed May 9, 2019
    Configuration menu
    Copy the full SHA
    e07a3f8 View commit details
    Browse the repository at this point in the history