de.m3y.prometheus.exporter.knox.Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of knox-exporter Show documentation
Show all versions of knox-exporter Show documentation
The Prometheus blackbox exporter samples Apache Knox WebHdfs/HBase/Hive endpoints collecting error and duration metrics.
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;
}
}