Skip to content

Instantly share code, notes, and snippets.

@ycombinator
Created April 2, 2019 14:19
Show Gist options
  • Save ycombinator/20495f20f9cb798105f5fbdfcd1d309e to your computer and use it in GitHub Desktop.
Save ycombinator/20495f20f9cb798105f5fbdfcd1d309e to your computer and use it in GitHub Desktop.
Testing Monitoring Across Versions

Test if Monitoring Cluster version X is able to monitor Production Cluster version Y, where X > Y.

  1. Download and install Elasticsearch version X. This will be the Monitoring Cluster
  2. Download and install Elasticearch version Y. This will be the Production Cluster
  3. Download and install Kibana version Y. This will be the Production Kibana
  4. Start the Monitoring Cluster:
    bin/elasticsearch -E cluster.name=esmon -E node.name=esmon_1 -E http.port=9400
    
  5. Start the Production Cluster:
    bin/elasticsearch -E cluster.name=es1 -E node.name=es1_1
    
  6. Start the Production Kibana:
    bin/kibana
    
  7. Setup the Production Cluster to export monitoring data to the Monitoring Cluster. In the Production Kibana Console app, run:
    PUT _cluster/settings
    {
      "persistent": {
        "xpack.monitoring.exporters": {
          "mon_cluster": {
            "type": "http",
            "host": [ "localhost:9400"]
          }
        }
      }
    }
    
  8. Stop the Production Kibana.
  9. Edit the Production Kibana's config/kibana.yml and add:
    xpack.monitoring.elasticsearch.hosts: [ "http://localhost:9400" ]
    
  10. Start the Production Kibana.
  11. In the Production Kibana's Stack Monitoring app, enable Monitoring.
  12. Click around in the Stack Monitoring app to make sure everything works. Make sure that there are no errors in the Kibana server logs either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment