Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Attach rate metrics via Heartbeat for Azure exporter#930

Merged
lzchen merged 7 commits intocensus-instrumentation:masterfrom
lzchen:attach
Jul 18, 2020
Merged

Attach rate metrics via Heartbeat for Azure exporter#930
lzchen merged 7 commits intocensus-instrumentation:masterfrom
lzchen:attach

Conversation

@lzchen
Copy link
Contributor

@lzchen lzchen commented Jul 16, 2020

Azure exporters will now emit a "heartbeat" metric every 15minutes. The payload is a simple customMetric telemetry with certain customDimensions filled in depending on the environment that the application is running in (azure web app, function, app, VM, AKS). For now, the only defined environments are web apps and functions apps.

We want the heartbeat metrics producer to be a singleton that is run if ANY of the exporters are instantiated, so we set it as a global variable with a locking mechanism. Heartbeat is also not configurable and cannot be turned off.

Also, due to the vast amount of threads running, added names to the workers so it'll be easier to identify which thread is for what purpose.

@hectorhdzg

Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@hectorhdzg hectorhdzg left a comment

Choose a reason for hiding this comment

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

LGTM

@lzchen lzchen merged commit b7c7a67 into census-instrumentation:master Jul 18, 2020
@lzchen lzchen deleted the attach branch July 18, 2020 01:14
This was referenced Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants