Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

metrics: expose metrics for number of connected proxies #2278

Merged
merged 1 commit into from
Jan 9, 2021

Conversation

shashankram
Copy link
Member

Description:

Adds a metric for the number of connected proxies.

Part of #902

Signed-off-by: Shashank Ram shashr2204@gmail.com

Affected area:

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [ ]
  • CI System [ ]
  • Performance [ ]
  • Other [ ]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

Adds a metric for the number of connected proxies.

Part of openservicemesh#902

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
@shashankram shashankram requested a review from a team as a code owner January 9, 2021 00:05
# TYPE osm_k8s_api_event_count counter
osm_k8s_api_event_count %d
`, i /* api event count */)
assert.Contains(rr.Body.String(), expectedResp)
}
}

func TestProxyConnectCount(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is not too important. Eventually we will group metrics by their category (counter, guage etc.) for basic coverage.

@shashankram shashankram merged commit 7a4e24a into openservicemesh:main Jan 9, 2021
@shashankram shashankram deleted the metric-proxy-cx branch January 9, 2021 01:07
eduser25 pushed a commit to eduser25/osm that referenced this pull request Jan 11, 2021
…esh#2278)

Adds a metric for the number of connected proxies.

Part of openservicemesh#902

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
Signed-off-by: Eduard Serra <eduser25@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants