Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Oct 31, 2024
1 parent 941310b commit 1024393
Showing 1 changed file with 63 additions and 7 deletions.
70 changes: 63 additions & 7 deletions src/data/relay_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,6 @@
"description": "The maximum total size of messages allowed in the producer queues.",
"features": []
},
{
"type": "Timer",
"name": "legacy_project_cache.task.duration",
"description": "Timing in milliseconds for processing a task in the legacy project cache service.\n\nA task is a unit of work the service does. Each branch of the\n`tokio::select` is a different task type.\n\nThis metric is tagged with:\n- `task`: The type of the task the project cache does.",
"features": []
},
{
"type": "Timer",
"name": "metrics.aggregator.message.duration",
Expand Down Expand Up @@ -535,6 +529,32 @@
"description": "The average number of elements in a bucket when flushed.\n\nThis metric is tagged with:\n- `metric_type`: \"c\", \"d\", \"g\" or \"s\".\n- `namespace`: The namespace of the metric.",
"features": []
},
{
"type": "Counter",
"name": "metrics.meta.agg.items",
"description": "Incremnted for every metric meta item added to the metric meta aggregator.",
"features": []
},
{
"type": "Counter",
"name": "metrics.meta.agg.update",
"description": "Incremented every time the meta aggregator emitted an update that needs to be stored or\nsent upstream.",
"features": []
},
{
"type": "Counter",
"name": "metrics.meta.parsing_failed",
"description": "Number of times that parsing a metric meta item from an envelope failed.",
"features": []
},
{
"type": "Counter",
"name": "metrics.meta.redis.update",
"description": "Incremented every time a redis key is updated to store or update metadata.",
"features": [
"redis"
]
},
{
"type": "Histogram",
"name": "metrics.partitions.flushed",
Expand Down Expand Up @@ -611,12 +631,24 @@
"description": "Number of evicted stale projects from the cache.\n\nRelay scans the in-memory project cache for stale entries in a regular interval configured\nby `cache.eviction_interval`.\n\nThe cache duration for project states can be configured with the following options:\n\n- `cache.project_expiry`: The time after which a project state counts as expired. It is\nautomatically refreshed if a request references the project after it has expired.\n- `cache.project_grace_period`: The time after expiry at which the project state will still\nbe used to ingest events. Once the grace period expires, the cache is evicted and new\nrequests wait for an update.",
"features": []
},
{
"type": "Gauge",
"name": "project_cache.garbage.queue_size",
"description": "The number of items currently in the garbage disposal queue.",
"features": []
},
{
"type": "Counter",
"name": "project_cache.hit",
"description": "Number of times a project is looked up from the cache.\n\nThe cache may contain and outdated or expired project state. In that case, the project state\nis updated even after a cache hit.",
"features": []
},
{
"type": "Timer",
"name": "project_cache.message.duration",
"description": "Timing in milliseconds for handling a project cache message.\n\nThis metric is tagged with:\n- `message`: The type of message that was processed.",
"features": []
},
{
"type": "Counter",
"name": "project_cache.miss",
Expand All @@ -632,7 +664,7 @@
{
"type": "Timer",
"name": "project_cache.task.duration",
"description": "Timing in milliseconds for processing a task in the project cache service.\n\nThis metric is tagged with:\n- `task`: The type of the task the project cache does.",
"description": "Timing in milliseconds for processing a task in the project cache service.\n\nA task is a unit of work the service does. Each branch of the\n`tokio::select` is a different task type.\n\nThis metric is tagged with:\n- `task`: The type of the task the processor does.",
"features": []
},
{
Expand All @@ -649,12 +681,36 @@
"processing"
]
},
{
"type": "Timer",
"name": "project_state.eviction.duration",
"description": "Total time in milliseconds spent evicting outdated and unused projects happens.",
"features": []
},
{
"type": "Counter",
"name": "project_state.flush_all_metric_meta",
"description": "Number of full metric data flushes.\n\nA full flush takes all contained items of the aggregator and flushes them upstream,\nat best this happens once per freshly loaded project.",
"features": []
},
{
"type": "Counter",
"name": "project_state.get",
"description": "Number of times a project state is looked up from the cache.\n\nThis includes lookups for both cached and new projects. As part of this, updates for\noutdated or expired project caches are triggered.\n\nRelated metrics:\n- `project_cache.hit`: For successful cache lookups, even for outdated projects.\n- `project_cache.miss`: For failed lookups resulting in an update.",
"features": []
},
{
"type": "Counter",
"name": "project_state.metrics.no_project",
"description": "The amount of times metrics of a project have been flushed without the project being\nfetched/available.",
"features": []
},
{
"type": "Counter",
"name": "project_state.no_cache",
"description": "Number of times a project config was requested with `.no-cache`.\n\nThis effectively counts the number of envelopes or events that have been sent with a\ncorresponding DSN. Actual queries to the upstream may still be deduplicated for these\nproject state requests.\n\nA maximum of 1 such requests per second is allowed per project key. This metric counts only\npermitted requests.",
"features": []
},
{
"type": "Histogram",
"name": "project_state.pending",
Expand Down

0 comments on commit 1024393

Please sign in to comment.