Leon van Dyk
12/12/2024, 10:12 AM$meter ??= Globals::meterProvider()->getMeter('swoole_stats');
$histrogramConnectionNum = $meter->createUpDownCounter('swoole.connection_num');
$histrogramConnectionNum->add($stats['connection_num']);
Globals::meterProvider()->forceFlush();
The metrics are showing up if I search them on the Signoz dashboard 🙌
My question: I would like to query that value via some sort of API. Reason: I want to use KEDA (https://keda.sh/) to query that value every second(s) to determine whether to scale my application instances.
The issue I'm having is I cannot figure out a way to query custom metrics without using the interface. All roads say "use prometheus". Do I need to setup an additional prometheus instance and rather push my metrics there? I feel that I'm possibly missing some key piece of information somehwere.
Thank you!SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by