using System.Collections.Generic;
public static void Main()
using var server = new Prometheus.MetricServer(port: 5099);
Gauge DesiredServersCount = Metrics.CreateGauge("desired_servers_count", "The desired number of servers.");
Gauge ServersUsage = Metrics.CreateGauge("servers_usage", "The desired number of servers.", labelNames: new[] { "server_name" });
DesiredServersCount.Set(5);
ServersUsage.WithLabels("game-server-1").Set(5);
ServersUsage.WithLabels("game-server-2").Set(1);
ServersUsage.WithLabels("game-server-3").Set(0);
ServersUsage.WithLabels("game-server-4").Set(11);
ServersUsage.WithLabels("game-server-5").Set(0);
ServersUsage.WithLabels("game-server-6").Set(10);
ServersUsage.WithLabels("game-server-7").Set(0);