From 9461a58cf3cba6edaa3aefce20a9231b2394616f Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 08:45:39 +0000 Subject: [PATCH 1/8] 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 From 74a60497a523a683716d102d335a403714f933ce Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 08:51:54 +0000 Subject: [PATCH 2/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 5 ----- 1 file changed, 5 deletions(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index 93ba53c..ba86e25 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -1,10 +1,5 @@ agent { - proxy { - hostname = "localhost" // Proxy hostname - port = 50440 // Proxy port - } - metrics { standardExportsEnabled = true // Include standard export metrics memoryPoolsExportsEnabled = true // Include JVM memory pool metrics From efe6a6423f9118ff6ea4e1e277d731f658e7ebe0 Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 09:06:57 +0000 Subject: [PATCH 3/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index ba86e25..1ad2623 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -1,5 +1,11 @@ agent { + proxy { + hostname = "prom_prox" // Proxy hostname + port = 50051 // Proxy port + } + + metrics { standardExportsEnabled = true // Include standard export metrics memoryPoolsExportsEnabled = true // Include JVM memory pool metrics @@ -13,7 +19,7 @@ agent { { name: "Proxy metrics" path: proxy_metrics - url: "http://localhost:8082/metrics" + url: "http://prom_prox:8082/metrics" //url: "http://"${?HOSTNAME}":8082/metrics" } { From ba3a06ec4c32c94c65052ccd17e89c4871b9ba87 Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 09:42:51 +0000 Subject: [PATCH 4/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index 1ad2623..d9a084e 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -1,7 +1,7 @@ agent { proxy { - hostname = "prom_prox" // Proxy hostname + hostname = prom_prox // Proxy hostname port = 50051 // Proxy port } @@ -19,7 +19,7 @@ agent { { name: "Proxy metrics" path: proxy_metrics - url: "http://prom_prox:8082/metrics" + url: "http://172.17.0.2:8082/metrics" //url: "http://"${?HOSTNAME}":8082/metrics" } { From a19185037437d7e0908f922aa3827a327e7eef96 Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 09:50:16 +0000 Subject: [PATCH 5/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index d9a084e..c70a1c2 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -1,7 +1,7 @@ agent { proxy { - hostname = prom_prox // Proxy hostname + hostname = 172.20.0.7 // Proxy hostname port = 50051 // Proxy port } @@ -19,7 +19,7 @@ agent { { name: "Proxy metrics" path: proxy_metrics - url: "http://172.17.0.2:8082/metrics" + url: "http://172.20.0.7:8082/metrics" //url: "http://"${?HOSTNAME}":8082/metrics" } { From 162cf5748daaf1ac7728ee7e20134a5ff09d874f Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 10:06:23 +0000 Subject: [PATCH 6/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index c70a1c2..038590f 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -26,7 +26,6 @@ agent { name: "Agent metrics" path: agent_metrics url: "http://localhost:8083/metrics" - //url: "http://"${?HOSTNAME}":8083/metrics" } { name: "App1 metrics" From f1150ca624ab21b39466df7b7538177a5f4063f7 Mon Sep 17 00:00:00 2001 From: petep Date: Sun, 10 Apr 2022 10:06:47 +0000 Subject: [PATCH 7/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index 038590f..d0a8711 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -20,7 +20,6 @@ agent { name: "Proxy metrics" path: proxy_metrics url: "http://172.20.0.7:8082/metrics" - //url: "http://"${?HOSTNAME}":8082/metrics" } { name: "Agent metrics" From a04e0772f8a0c6a97e7286dcec2db2a464e6f13c Mon Sep 17 00:00:00 2001 From: petep Date: Mon, 11 Apr 2022 08:51:10 +0000 Subject: [PATCH 8/8] Update 'monitoring/agent.conf' --- monitoring/agent.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monitoring/agent.conf b/monitoring/agent.conf index d0a8711..84b4b00 100644 --- a/monitoring/agent.conf +++ b/monitoring/agent.conf @@ -31,5 +31,10 @@ agent { path: app1_metrics url: "http://167.99.43.82:9090/metrics" } + { + name: "tfchainmainpub0302 metrics" + path: tfchainmainpub0302 + url: "http://10.41.4.2:9100/metrics" + } ] } \ No newline at end of file