sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

Clarify docs about configuring Sentry metrics

Open yayapao opened this issue 2 years ago • 3 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Version

21.6.3

Steps to Reproduce

When i study sentry source code, i found it use metric.timing and metric.incr somewhere, i wonder how to get close to these metrics?

Metrics like:

metrics.timing(
      "events.synthetic-monitoring.time-to-ingest-total",
      now - data["timestamp"],
      tags=tags,
      sample_rate=1.0,
  )

And i found relay can start a server to get these metrics, like metrics and collected metrics

Have a great day, bro.

Expected Result

A way to get metrics value which was collected by sentry.

Actual Result

No doc indicates i can do this.

yayapao avatar Sep 23 '22 08:09 yayapao

Routing to @getsentry/open-source for triage. ⏲️

getsentry-release avatar Sep 26 '22 13:09 getsentry-release

You need to configure a metrics backend with settings.SENTRY_METRICS_BACKEND. There are adapters in the code base for statsd + datadog.

markstory avatar Sep 26 '22 17:09 markstory

@markstory - Is there an update here that needs to be made to in docs.sentry.io or develop.sentry.dev?

imatwawana avatar Oct 05 '22 14:10 imatwawana

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Oct 27 '22 00:10 github-actions[bot]

@imatwawana I don't think so. The internal metrics backend isn't something we generally expect self-hosted users to use or need to configure.

markstory avatar Oct 27 '22 14:10 markstory