All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.m3y.prometheus.exporter.knox.Config Maven / Gradle / Ivy

Go to download

The Prometheus blackbox exporter samples Apache Knox WebHdfs/HBase/Hive endpoints collecting error and duration metrics.

There is a newer version: 1.0
Show newest version
package de.m3y.prometheus.exporter.knox;

/**
 * Config options for collector.
 */
public class Config {
    private String username;
    private String password;

    private String webHdfStatusPath;
    private String hiveJdbcUrl;
    private String hiveQuery;

    /**
     * The knox user for connecting.
     *
     * @return the user name.
     */
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * The knox user password for connecting.
     *
     * @return the user password.
     */
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * The WebHDFS status path of a file or directory, eg '/'
     */
    public String getWebHdfStatusPath() {
        return webHdfStatusPath;
    }

    public void setWebHdfStatusPath(String webHdfStatusPath) {
        this.webHdfStatusPath = webHdfStatusPath;
    }

    /**
     * The Hive JDBC url.
     *
     * @return the Hive JDBC url.
     */
    public String getHiveJdbcUrl() {
        return hiveJdbcUrl;
    }

    public void setHiveJdbcUrl(String hiveJdbcUrl) {
        this.hiveJdbcUrl = hiveJdbcUrl;
    }

    /**
     * The Hive query for performing a health check.
     *
     * @return the SQL query.
     */
    public String getHiveQuery() {
        return hiveQuery;
    }

    public void setHiveQuery(String hiveQuery) {
        this.hiveQuery = hiveQuery;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy