2022-11-06 13:04:30 +01:00
{
2022-11-06 13:50:39 +01:00
"pluginAlias" : "PrometheusExporter" ,
"pluginType" : "platform" ,
"singular" : true ,
"schema" : {
"type" : "object" ,
2022-11-08 19:13:34 +01:00
"required" : [ "pin" ] ,
2022-11-06 13:50:39 +01:00
"properties" : {
"pin" : {
"title" : "Pin" ,
"description" : "Homebridge PIN for service authentication" ,
"type" : "string" ,
2022-11-08 19:13:34 +01:00
"pattern" : "^\\d{3}-\\d{2}-\\d{3}$" ,
2022-11-06 13:50:39 +01:00
"required" : true
} ,
"debug" : {
"title" : "Debug" ,
"type" : "boolean" ,
"required" : false ,
"default" : false
} ,
2022-11-08 14:28:13 +01:00
"prefix" : {
"title" : "Metrics prefix" ,
"type" : "string" ,
"required" : false ,
"default" : "homebridge"
} ,
2022-11-08 14:26:08 +01:00
"port" : {
2022-11-17 13:15:07 +01:00
"title" : "Metrics server port" ,
"description" : "TCP port where the Prometheus metrics server listens" ,
2022-11-06 13:50:39 +01:00
"type" : "integer" ,
"required" : false ,
"default" : 36123
} ,
2022-11-17 13:15:07 +01:00
"interface" : {
"title" : "Metrics server interface" ,
"description" : "Interface where the Prometheus metrics server listens. Can be an IP, a hostname, \"0.0.0.0\" for all IPv4 interfaces, \"::1\" for all IPv6 interfaces. Default is \"::\" which means \"any interface\"" ,
"type" : "string" ,
"default" : "::"
} ,
2022-11-06 13:50:39 +01:00
"refresh_interval" : {
"title" : "Service refresh interval" ,
"description" : "Discover new services every <interval> seconds" ,
"type" : "integer" ,
"required" : false ,
"default" : 60
} ,
"request_timeout" : {
"title" : "Request timeout" ,
"description" : "Request timeout when interacting with homebridge instances" ,
"type" : "integer" ,
"required" : false ,
"default" : 10
} ,
"discovery_timeout" : {
"title" : "Service discovery timeout" ,
"description" : "Discovery timeout after which the current discovery is considered failed" ,
"type" : "integer" ,
"required" : false ,
"default" : 20
2022-11-16 22:19:08 +01:00
} ,
"tls_cert_file" : {
2022-11-17 13:15:07 +01:00
"title" : "TLS cert file" ,
2022-11-16 22:19:08 +01:00
"description" : "Path to TLS certificate file (in PEM format)" ,
"type" : "string" ,
"required" : false
} ,
"tls_key_file" : {
2022-11-17 13:15:07 +01:00
"title" : "TLS key file" ,
2022-11-16 22:19:08 +01:00
"description" : "Path to TLS key file" ,
"type" : "string" ,
"required" : false
} ,
"basic_auth" : {
2022-11-17 13:15:07 +01:00
"title" : "Basic auth username/password pairs" ,
"description" : "Usernames and passwords for basic auth. Object key is the username, object value is the password. Password must be encoded with bcrypt. Example: {\"joanna\": \"$2a$12$5/mmmRB28wg9yzaXhee5Iupq3UrFr/qMgAe9LvAxGoY5jLcfVGTUq\"}" ,
2022-11-16 22:19:08 +01:00
"type" : "object" ,
"additionalProperties" : { "type" : "string" } ,
"required" : false
2022-11-06 13:50:39 +01:00
}
}
2022-11-06 13:04:30 +01:00
}
2022-11-06 13:50:39 +01:00
}