From 57d5e3c1ac78f22f1e1ea40a34796495dcf679c4 Mon Sep 17 00:00:00 2001 From: rkarg-blizz <114196805+rkarg-blizz@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:20:06 -0800 Subject: [PATCH] Delete examples/prometheus directory --- examples/prometheus/Prometheus.cs | 29 --------------------------- examples/prometheus/prometheus.csproj | 7 ------- 2 files changed, 36 deletions(-) delete mode 100755 examples/prometheus/Prometheus.cs delete mode 100755 examples/prometheus/prometheus.csproj diff --git a/examples/prometheus/Prometheus.cs b/examples/prometheus/Prometheus.cs deleted file mode 100755 index fc7baa7b5..000000000 --- a/examples/prometheus/Prometheus.cs +++ /dev/null @@ -1,29 +0,0 @@ -using k8s; -using Prometheus; -using System; -using System.Threading; - -namespace prom -{ - internal class Prometheus - { - private static void Main(string[] args) - { - var config = KubernetesClientConfiguration.BuildDefaultConfig(); - var handler = new PrometheusHandler(); - IKubernetes client = new Kubernetes(config, handler); - - var server = new MetricServer(hostname: "localhost", port: 1234); - server.Start(); - - Console.WriteLine("Making requests!"); - while (true) - { - client.CoreV1.ListNamespacedPod("default"); - client.CoreV1.ListNode(); - client.AppsV1.ListNamespacedDeployment("default"); - Thread.Sleep(1000); - } - } - } -} diff --git a/examples/prometheus/prometheus.csproj b/examples/prometheus/prometheus.csproj deleted file mode 100755 index 52e6553de..000000000 --- a/examples/prometheus/prometheus.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - - Exe - - -