Mark Raynsford
10/04/2022, 6:48 PMfinal var meter =
inTelemetry.openTelemetry()
.meterBuilder("IdUserSessionService")
.build();
this.sessionsGauge =
meter.gaugeBuilder("userSessions")
.setDescription("Active user sessions.")
.ofLongs()
.buildWithCallback(m -> {
m.record(Integer.toUnsignedLong(this.sessions.size()));
});
i don't see anything in the signoz UI related to this meter, but i'm not sure if that's because the UI isn't showing it, or if no data is being produced for some reason...Pranay
10/04/2022, 7:06 PMMark Raynsford
10/04/2022, 7:57 PMSrikanth Chekuri
10/05/2022, 2:43 PMMark Raynsford
10/05/2022, 8:22 PMSrikanth Chekuri
10/06/2022, 3:01 AMMark Raynsford
10/06/2022, 8:28 AMdocker ps
Srikanth Chekuri
10/06/2022, 9:02 AMi am seeing metrics being collected in the debugger and sent to signozAre you saying you are seeing the console output for the session metrics and they are sent to SigNoz as well?
Mark Raynsford
10/06/2022, 9:13 AMSrikanth Chekuri
10/06/2022, 9:14 AMMark Raynsford
10/06/2022, 9:15 AMIdUserSessionService.userSessions
, and there's nothing in the UI with this nameSrikanth Chekuri
10/06/2022, 9:16 AMuserSessions
not IdUserSessionService.userSessions
Mark Raynsford
10/06/2022, 9:16 AMSrikanth Chekuri
10/06/2022, 9:17 AMMark Raynsford
10/06/2022, 9:17 AMSrikanth Chekuri
10/06/2022, 9:19 AMMark Raynsford
10/06/2022, 9:20 AMuserSessions
meter shows up as an option when creating a panel