From 9461a58cf3cba6edaa3aefce20a9231b2394616f Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 08:45:39 +0000 Subject: [PATCH] prom agent conf file --- monitoring/agent.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 monitoring/agent.conf diff --git a/monitoring/agent.conf b/monitoring/agent.conf new file mode 100644 index 0000000..93ba53c --- /dev/null +++ b/monitoring/agent.conf @@ -0,0 +1,36 @@ +agent { + + proxy { + hostname = "localhost" // Proxy hostname + port = 50440 // Proxy port + } + + metrics { + standardExportsEnabled = true // Include standard export metrics + memoryPoolsExportsEnabled = true // Include JVM memory pool metrics + garbageCollectorExportsEnabled = true // Include JVM garbage collector metrics + threadExportsEnabled = true // Include JVM thread metrics + classLoadingExportsEnabled = true // Include JVM class loading metrics + versionInfoExportsEnabled = true // Include JVM version info metrics + } + + pathConfigs: [ + { + name: "Proxy metrics" + path: proxy_metrics + url: "http://localhost:8082/metrics" + //url: "http://"${?HOSTNAME}":8082/metrics" + } + { + name: "Agent metrics" + path: agent_metrics + url: "http://localhost:8083/metrics" + //url: "http://"${?HOSTNAME}":8083/metrics" + } + { + name: "App1 metrics" + path: app1_metrics + url: "http://167.99.43.82:9090/metrics" + } + ] +} \ No newline at end of file