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

feat(instrumentation-runtime-node)!: add prom-client-metrics #2136

Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ed6596f
feat(prom-client) add implementation for collecting event loop lag, g…
pikalovArtemN Apr 22, 2024
046072e
test(prom-client) add tests for check implementation
pikalovArtemN Apr 22, 2024
d7c5108
chore(prom-client) change version and fix README.md
pikalovArtemN Apr 22, 2024
ad88f98
Merge branch 'main' into feat/node/prom-client-implementation
pikalovArtemN Apr 22, 2024
2cd9093
chore(instrumentation-runtime-node): fetch loop lag format in convention
pikalovArtemN May 3, 2024
184b212
chore(instrumentation-runtime-node): fetch other metrics to convention
pikalovArtemN May 3, 2024
922d677
test(instrumentation-runtime-node):fix some tests
pikalovArtemN May 3, 2024
3cba596
chore(instrumentation-runtime-node): sync with conventions
pikalovArtemN May 17, 2024
54858de
test(instrumentation-runtime-node): fix tests
pikalovArtemN May 17, 2024
926f052
test(instrumentation-runtime-node): fix tests
pikalovArtemN May 17, 2024
dbb34ff
lint(instrumentation-runtime-node): lint
pikalovArtemN May 17, 2024
ade0ab9
Merge remote-tracking branch 'origin/feat/node/prom-client-implementa…
pikalovArtemN May 17, 2024
7a98bfd
Merge branch 'main' into feat/node/prom-client-implementation
pikalovArtemN May 17, 2024
7418c78
chore(instrumentation-runtime-node): synchronize with convention
pikalovArtemN Jul 6, 2024
fdfea51
Merge remote-tracking branch 'origin/feat/node/prom-client-implementa…
pikalovArtemN Jul 6, 2024
6a84254
chore(instrumentation-runtime-node): remove scrape interval, remove u…
pikalovArtemN Jul 15, 2024
5efdd9d
chore(instrumentation-runtime-node): set default monitoringPrecision …
pikalovArtemN Jul 16, 2024
a69fc5c
chore(instrumentation-runtime-node): addnodejs.eventloop.time, fix tests
pikalovArtemN Aug 3, 2024
2d31e98
Merge branch 'main' into feat/node/prom-client-implementation
pikalovArtemN Oct 7, 2024
184be5e
chore(instrumentation-runtime-node): fix conflicts
pikalovArtemN Oct 7, 2024
8bf14b5
chore(instrumentation-runtime-node): fix event loop utilization colle…
pikalovArtemN Oct 8, 2024
5121a0b
chore(instrumentation-runtime-node): fix package.json
pikalovArtemN Oct 8, 2024
fd8d803
chore(instrumentation-runtime-node): fix conflicts
pikalovArtemN Oct 8, 2024
6506489
chore(instrumentation-runtime-node): lint
pikalovArtemN Oct 8, 2024
012f370
Merge branch 'main' into feat/node/prom-client-implementation
pikalovArtemN Oct 8, 2024
247403e
chore(instrumentation-runtime-node): fix test
pikalovArtemN Oct 9, 2024
d99c458
Merge remote-tracking branch 'origin/feat/node/prom-client-implementa…
pikalovArtemN Oct 9, 2024
43ba51c
Merge branch 'main' into feat/node/prom-client-implementation
pikalovArtemN Oct 9, 2024
2189d51
Merge branch 'main' into feat/node/prom-client-implementation
david-luna Oct 10, 2024
460003f
chore(instrumentation-runtime-node): fix package-lock.json
pikalovArtemN Oct 10, 2024
310a2b2
Merge remote-tracking branch 'origin/feat/node/prom-client-implementa…
pikalovArtemN Oct 10, 2024
feb3f36
Merge branch 'main' into feat/node/prom-client-implementation
david-luna Oct 17, 2024
6b5fc8b
chore(instrumentation-runtime-node): fix attributes names
pikalovArtemN Nov 3, 2024
97d8d92
Merge remote-tracking branch 'origin/feat/node/prom-client-implementa…
pikalovArtemN Nov 3, 2024
cab7e6c
chore(instrumentation-runtime-node): merge main
pikalovArtemN Nov 3, 2024
b663012
chore(instrumentation-runtime-node): lint
pikalovArtemN Nov 4, 2024
a6a9e81
chore: add skip lint directive
david-luna Nov 5, 2024
4941407
Merge branch 'main' into feat/node/prom-client-implementation
david-luna Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into feat/node/prom-client-implementation
  • Loading branch information
pikalovArtemN authored Oct 7, 2024
commit 2d31e98c2cd223ee7901a38be7136776444ffdca
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ const DEFAULT_CONFIG: RuntimeNodeInstrumentationConfig = {
monitoringPrecision: 10,
};

export class RuntimeNodeInstrumentation extends InstrumentationBase {
export class RuntimeNodeInstrumentation extends InstrumentationBase<RuntimeNodeInstrumentationConfig> {
private _ELUs: EventLoopUtilization[] = [];
private _interval: NodeJS.Timeout | undefined;
private _collectors: MetricCollector[] = [];


constructor(config: RuntimeNodeInstrumentationConfig = {}) {
super(
PACKAGE_NAME,
Expand Down Expand Up @@ -77,6 +80,15 @@ export class RuntimeNodeInstrumentation extends InstrumentationBase {
override enable() {
if (!this._collectors) return;

this._clearELU();
this._addELU();
clearInterval(this._interval);
this._interval = setInterval(
() => this._addELU(),
this.getConfig().eventLoopUtilizationMeasurementInterval
);


for (const collector of this._collectors) {
collector.enable();
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.