Add Prometheus with 1 metric

This commit is contained in:
runebaas 2020-04-17 23:48:50 +02:00
parent 2a616f8c5d
commit ee548390a5
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 27 additions and 0 deletions

View file

@ -72,5 +72,14 @@ namespace Geekbot.net.Lib
[Option("api-port", Default = "12995", HelpText = "Port on which the WebApi listens")]
public string ApiPort { get; set; }
/************************************
* Prometheus *
************************************/
[Option("prometheus-host", Default = "localhost", HelpText = "Host on which the Prometheus Metric Server listens")]
public string PrometheusHost { get; set; }
[Option("prometheus-port", Default = "12991", HelpText = "Port on which the Prometheus Metric Server listens")]
public string PrometheusPort { get; set; }
}
}