@@ -63,6 +63,7 @@ func TestStatefulServer(t *testing.T) {
6363 var mcpCallsDurationSecondsInfBucketBefore int64
6464 if td .name == "http" {
6565 mcpCallsTotalMetricBefore , mcpCallsDurationSecondsInfBucketBefore = getMetrics (t , "http://localhost:50081" , map [string ]string {
66+ "server" : "argocd-mcp-server" ,
6667 "method" : "tools/call" ,
6768 "name" : "unhealthyApplications" ,
6869 "success" : "true" ,
@@ -99,6 +100,7 @@ func TestStatefulServer(t *testing.T) {
99100 if td .name == "http" {
100101 // get the metrics after the call
101102 mcpCallsTotalMetricAfter , mcpCallsDurationSecondsInfBucketAfter := getMetrics (t , "http://localhost:50081" , map [string ]string {
103+ "server" : "argocd-mcp-server" ,
102104 "method" : "tools/call" ,
103105 "name" : "unhealthyApplications" ,
104106 "success" : "true" ,
@@ -114,6 +116,7 @@ func TestStatefulServer(t *testing.T) {
114116 var mcpCallsDurationSecondsInfBucketBefore int64
115117 if td .name == "http" {
116118 mcpCallsTotalMetricBefore , mcpCallsDurationSecondsInfBucketBefore = getMetrics (t , "http://localhost:50081" , map [string ]string {
119+ "server" : "argocd-mcp-server" ,
117120 "method" : "tools/call" ,
118121 "name" : "unhealthyApplicationResources" ,
119122 "success" : "true" ,
@@ -181,6 +184,7 @@ func TestStatefulServer(t *testing.T) {
181184 if td .name == "http" {
182185 // get the metrics after the call
183186 mcpCallsTotalMetricAfter , mcpCallsDurationSecondsInfBucketAfter := getMetrics (t , "http://localhost:50081" , map [string ]string {
187+ "server" : "argocd-mcp-server" ,
184188 "method" : "tools/call" ,
185189 "name" : "unhealthyApplicationResources" ,
186190 "success" : "true" ,
@@ -195,6 +199,7 @@ func TestStatefulServer(t *testing.T) {
195199 var mcpCallsDurationSecondsInfBucketBefore int64
196200 if td .name == "http" {
197201 mcpCallsTotalMetricBefore , mcpCallsDurationSecondsInfBucketBefore = getMetrics (t , "http://localhost:50081" , map [string ]string {
202+ "server" : "argocd-mcp-server" ,
198203 "method" : "tools/call" ,
199204 "name" : "unhealthyApplicationResources" ,
200205 "success" : "false" ,
@@ -215,6 +220,7 @@ func TestStatefulServer(t *testing.T) {
215220 if td .name == "http" {
216221 // get the metrics after the call
217222 mcpCallsTotalMetricAfter , mcpCallsDurationSecondsInfBucketAfter := getMetrics (t , "http://localhost:50081" , map [string ]string {
223+ "server" : "argocd-mcp-server" ,
218224 "method" : "tools/call" ,
219225 "name" : "unhealthyApplicationResources" ,
220226 "success" : "false" ,
0 commit comments