Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8403008] Add client connection related edgeHub metrics #4060

Merged

Conversation

davilu
Copy link
Contributor

@davilu davilu commented Dec 8, 2020

  1. Added following metrics
  • (Gauge) edgehub_connected_clients: current number of connected clients to edge hub
  • (Counter) edgehub_client_connect_success_total: total number of times individual client successfully connect to edgeHub
  • (Counter) edgehub_client_disconnect_total: total number of times individual client disconnected from edgeHub
  1. fixed (Counter) edgehub_client_connect_failed_total report failure while re-auth failed

doc/BuiltInMetrics.md Outdated Show resolved Hide resolved
davilu and others added 4 commits December 8, 2020 14:12
…ctionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
…ctionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
…ctionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
doc/BuiltInMetrics.md Outdated Show resolved Hide resolved
doc/BuiltInMetrics.md Outdated Show resolved Hide resolved
davilu and others added 2 commits December 8, 2020 14:14
Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
doc/BuiltInMetrics.md Outdated Show resolved Hide resolved
Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
Copy link
Contributor

@lfitchett lfitchett left a comment

Choose a reason for hiding this comment

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

LGTM

@davilu davilu merged commit 40b2de9 into Azure:release/1.0.10 Dec 10, 2020
@davilu davilu deleted the davilu/add-device-connection-metrics branch December 10, 2020 01:01
yophilav pushed a commit to yophilav/iotedge that referenced this pull request Dec 17, 2020
* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test
yophilav pushed a commit to yophilav/iotedge that referenced this pull request Dec 17, 2020
* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test
davilu added a commit to davilu/iotedge that referenced this pull request Dec 18, 2020
* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test
davilu added a commit to davilu/iotedge that referenced this pull request Dec 18, 2020
* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test
davilu added a commit that referenced this pull request Dec 18, 2020
)

* [8403008] Add client connection related edgeHub metrics (#4060)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* [8982026] fix metrics e2e test (#4125)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge

* fixed metrics description

* fixed UT ConnectionManagerTest by adding missing mock which impacted by metrics change

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* modified to use Array.Empty

* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* fixed typo in md file

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* moved new cs file to modified location

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
davilu added a commit that referenced this pull request Dec 18, 2020
…#4134)

* [8403008] Add client connection related edgeHub metrics (#4060)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* [8982026] fix metrics e2e test (#4125)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge

* fixed metrics description

* fixed UT ConnectionManagerTest by adding missing mock which impacted by metrics change

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* modified to use Array.Empty

* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* fixed typo in md file

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* moved new cs file to modified location

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
gordonwang0 pushed a commit to gordonwang0/iotedge that referenced this pull request Jan 5, 2021
…ure#4132)

* [8403008] Add client connection related edgeHub metrics (Azure#4060)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* [8982026] fix metrics e2e test (Azure#4125)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge

* fixed metrics description

* fixed UT ConnectionManagerTest by adding missing mock which impacted by metrics change

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* modified to use Array.Empty

* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* fixed typo in md file

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* moved new cs file to modified location

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
gordonwang0 pushed a commit to gordonwang0/iotedge that referenced this pull request Jan 12, 2021
…ure#4132)

* [8403008] Add client connection related edgeHub metrics (Azure#4060)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge
* updated doc/BuiltInMetrics.md
* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* [8982026] fix metrics e2e test (Azure#4125)

* added metrics for current number of connected clients, individual device connect/disconnected to/from iot edge

* fixed metrics description

* fixed UT ConnectionManagerTest by adding missing mock which impacted by metrics change

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Core/DeviceConnectionMetrics.cs

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* Update doc/BuiltInMetrics.md

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* modified to use Array.Empty

* modified failed connection metrics description to align with doc and added ignore disconnect in e2e test

* fixed typo in md file

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>

* moved new cs file to modified location

Co-authored-by: Venkat Yalla <veyalla@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants