integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java
private static void installPrometheusGrafanaWebHookMySqlCoordinator() throws Exception {
    prometheusPort = "30500";
    String crdCmd = " cp " + resourceExporterDir + "/promvalues.yaml"
        + " " + monitoringExporterEndToEndDir
        + "/prometheus/promvalues.yaml";
    TestUtils.execOrAbortProcess(crdCmd, true);
    String promalertmanagerPort = String.valueOf(32500 + getNewSuffixCount());
    replaceStringInFile(
        monitoringExporterEndToEndDir + "/prometheus/promvalues.yaml", "32500", promalertmanagerPort);
    grafanaPort = String.valueOf(31000 + getNewSuffixCount());
    replaceStringInFile(monitoringExporterEndToEndDir + "/grafana/values.yaml",
        "31000", grafanaPort);
    
    executeShelScript(
        resourceExporterDir,
        monitoringExporterScriptDir,
        "createPromGrafanaMySqlCoordWebhook.sh",
        monitoringExporterDir
            + " " + resourceExporterDir
            + " " + PROMETHEUS_CHART_VERSION
            + " " + GRAFANA_CHART_VERSION
            + " " + domainNS1
            + " " + domainNS2,
            "createPromGrafanaMySqlCoordWebhook.out");
    executeShelScript(
        resourceExporterDir,
        monitoringExporterScriptDir,
        "createGrafana.sh",
        monitoringExporterDir
            + " " + resourceExporterDir
            + " " + GRAFANA_CHART_VERSION,
        "createGrafana.out");


    String webhookPod = getPodName("app=webhook", "webhook");
    assertNotNull(webhookPod, "Can't retrieve webhook pod name");
    TestUtils.checkPodReady(webhookPod, "webhook");

    //update with current WDT version
    replaceStringInFile(monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh",
        "0.24", WDT_VERSION);
    //update with current Exporter version
    replaceStringInFile(monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh",
        "1.1.1", MONITORING_EXPORTER_VERSION);
    installPromGrafanaWebHookMySqlCoord = true;
  }
/**
   * Install Prometheus and Grafana using helm chart, MySql, webhook, coordinator.
   *
   * @throws Exception if could not run the command successfully to install Prometheus and Grafana
   */
Install Prometheus and Grafana using helm chart, MySql, webhook, coordinator.
@throws Exception if could not run the command successfully to install Prometheus and Grafana
Install Prometheus and Grafana using helm chart MySql webhook coordinator . @throws Exception if could not run the command successfully to install Prometheus and Grafana
private static void installPrometheusGrafanaWebHookMySqlCoordinator() throws Exception {
    prometheusPort = "30500";
    String crdCmd = " cp " + resourceExporterDir + "/promvalues.yaml"
        + " " + monitoringExporterEndToEndDir
        + "/prometheus/promvalues.yaml";
    TestUtils.execOrAbortProcess(crdCmd, true);
    String promalertmanagerPort = String.valueOf(32500 + getNewSuffixCount());
    replaceStringInFile(
        monitoringExporterEndToEndDir + "/prometheus/promvalues.yaml", "32500", promalertmanagerPort);
    grafanaPort = String.valueOf(31000 + getNewSuffixCount());
    replaceStringInFile(monitoringExporterEndToEndDir + "/grafana/values.yaml",
        "31000", grafanaPort);
    executeShelScript(
        resourceExporterDir,
        monitoringExporterScriptDir,
        "createPromGrafanaMySqlCoordWebhook.sh",
        monitoringExporterDir
            + " " + resourceExporterDir
            + " " + PROMETHEUS_CHART_VERSION
            + " " + GRAFANA_CHART_VERSION
            + " " + domainNS1
            + " " + domainNS2,
            "createPromGrafanaMySqlCoordWebhook.out");
    executeShelScript(
        resourceExporterDir,
        monitoringExporterScriptDir,
        "createGrafana.sh",
        monitoringExporterDir
            + " " + resourceExporterDir
            + " " + GRAFANA_CHART_VERSION,
        "createGrafana.out");
    String webhookPod = getPodName("app=webhook", "webhook");
    assertNotNull(webhookPod, "Can't retrieve webhook pod name");
    TestUtils.checkPodReady(webhookPod, "webhook");
    replaceStringInFile(monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh",
        "0.24", WDT_VERSION);
    replaceStringInFile(monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh",
        "1.1.1", MONITORING_EXPORTER_VERSION);
    installPromGrafanaWebHookMySqlCoord = true;
  }
private static void installPrometheusGrafanaWebHookMySqlCoordinator ( ) throws Exception { prometheusPort = "30500" ; String crdCmd = " cp " + resourceExporterDir + "/promvalues.yaml" + " " + monitoringExporterEndToEndDir + "/prometheus/promvalues.yaml" ; TestUtils . execOrAbortProcess ( crdCmd , true ) ; String promalertmanagerPort = String . valueOf ( 32500 + getNewSuffixCount ( ) ) ; replaceStringInFile ( monitoringExporterEndToEndDir + "/prometheus/promvalues.yaml" , "32500" , promalertmanagerPort ) ; grafanaPort = String . valueOf ( 31000 + getNewSuffixCount ( ) ) ; replaceStringInFile ( monitoringExporterEndToEndDir + "/grafana/values.yaml" , "31000" , grafanaPort ) ; executeShelScript ( resourceExporterDir , monitoringExporterScriptDir , "createPromGrafanaMySqlCoordWebhook.sh" , monitoringExporterDir + " " + resourceExporterDir + " " + PROMETHEUS_CHART_VERSION + " " + GRAFANA_CHART_VERSION + " " + domainNS1 + " " + domainNS2 , "createPromGrafanaMySqlCoordWebhook.out" ) ; executeShelScript ( resourceExporterDir , monitoringExporterScriptDir , "createGrafana.sh" , monitoringExporterDir + " " + resourceExporterDir + " " + GRAFANA_CHART_VERSION , "createGrafana.out" ) ; String webhookPod = getPodName ( "app=webhook" , "webhook" ) ; assertNotNull ( webhookPod , "Can't retrieve webhook pod name" ) ; TestUtils . checkPodReady ( webhookPod , "webhook" ) ; replaceStringInFile ( monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh" , "0.24" , WDT_VERSION ) ; replaceStringInFile ( monitoringExporterEndToEndDir + "/demo-domains/domainBuilder/build.sh" , "1.1.1" , MONITORING_EXPORTER_VERSION ) ; installPromGrafanaWebHookMySqlCoord = true ; }
Install Prometheus and Grafana using helm chart, MySql, webhook, coordinator.
Install Prometheus and Grafana using helm chart MySql webhook coordinator .
//update with current WDT version //update with current Exporter version