new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Prometheus.java
public static Callable<Boolean> isReady(String namespace) {
    Map<String,String> labelMapPromSvc = new HashMap<>();
    labelMapPromSvc.put("component", "server");
    Map<String,String> labelMapAlertMgr = new HashMap<>();
    labelMapAlertMgr.put("component", "alertmanager");
    return () -> {
      return (Kubernetes.isPodReady(namespace, labelMapAlertMgr, "prometheus-alertmanager")
              && Kubernetes.isPodReady(namespace, labelMapPromSvc, "prometheus-server"));
    };
  }
/**
   * Check if the prometheus pods are running in a given namespace.
   * @param namespace in which to check for the prometheus pods
   * @return true if found and running otherwise false
   */
Check if the prometheus pods are running in a given namespace.
@param namespace in which to check for the prometheus pods
@return true if found and running otherwise false
Check if the prometheus pods are running in a given namespace . @param namespace in which to check for the prometheus pods @return true if found and running otherwise false
public static Callable<Boolean> isReady(String namespace) {
    Map<String,String> labelMapPromSvc = new HashMap<>();
    labelMapPromSvc.put("component", "server");
    Map<String,String> labelMapAlertMgr = new HashMap<>();
    labelMapAlertMgr.put("component", "alertmanager");
    return () -> {
      return (Kubernetes.isPodReady(namespace, labelMapAlertMgr, "prometheus-alertmanager")
              && Kubernetes.isPodReady(namespace, labelMapPromSvc, "prometheus-server"));
    };
  }
public static Callable < Boolean > isReady ( String namespace ) { Map < String , String > labelMapPromSvc = new HashMap < > ( ) ; labelMapPromSvc . put ( "component" , "server" ) ; Map < String , String > labelMapAlertMgr = new HashMap < > ( ) ; labelMapAlertMgr . put ( "component" , "alertmanager" ) ; return ( ) -> { return ( Kubernetes . isPodReady ( namespace , labelMapAlertMgr , "prometheus-alertmanager" ) && Kubernetes . isPodReady ( namespace , labelMapPromSvc , "prometheus-server" ) ) ; } ; }
Check if the prometheus pods are running in a given namespace.
Check if the prometheus pods are running in a given namespace .