#Where to See Metrics?

11 messages · Page 1 of 1 (latest)

granite burrow
#

Hi, we are on a team plan, and I am trying to set up metric alerts.

I am sending metrics like this:

increment("test_metric")

Where am I supposed to see these things in the dashboard and how do I set up alerts based on the counts thereof?

Thanks

mighty current
granite burrow
#

the code the LLM gave me "works" lol, that increment function is real, and debug output vaguely suggests the expected thing is happening. The code in the above documentation doesn't quite work because the import seems to be wrong/out-of-date

#

But anyways, yeah, so you guys don't have "non-telemetry" metrics that are just "literally count every time this happens when I say so" and then possibly connect an alarm to that, kind of like Cloud Watch Metrics?

mighty current
#

Correct - You need to attach attributes to your spans or Logs (which is on open Beta) and we let you aggregate them without any cardinality constraints

granite burrow
#

Can you tell me a little more about using Logs for this use-case? Is it something like “alert based on count of all logs with this attr or tag”?

#

Thnx

mighty current
#

Currently you can attach any attribute to your logs

We're working on the freely aggregate any log attribute and alert on it side of features - they're 3-4 weeks away

But here's an example from my testing org - I attach payment amount as a numeric attribute to the log and I can do a p90 of it

granite burrow
#

Cool thanks 👍

unique lantern
#

@mighty current hello, i did not get about generic metrics do not exist in sentry.
Can't i use this one: https://docs.sentry.io/platforms/javascript/metrics/#emit-a-gauge ?
Basically i was planning to use it instead of prometheus/grafana etc.

Now that sentry has support for logs, traces and metrics seems i no longer need grafana stack with loki, tempo etc...