Skip to content

Commit 811e30a

Browse files
committed
1 parent a3ac971 commit 811e30a

File tree

1 file changed

+37
-21
lines changed

1 file changed

+37
-21
lines changed

src/data/relay_metrics.json

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252
"features": []
5353
},
5454
{
55-
"type": "Histogram",
55+
"type": "Distribution",
5656
"name": "buffer.envelope_body_size",
5757
"description": "The amount of bytes in the item payloads of an envelope pushed to the envelope buffer.\n\nThis is not quite the same as the actual size of a serialized envelope, because it ignores\nthe envelope header and item headers.",
5858
"features": []
5959
},
6060
{
61-
"type": "Histogram",
61+
"type": "Distribution",
6262
"name": "buffer.envelope_size",
6363
"description": "Size of a serialized envelope pushed to the envelope buffer.",
6464
"features": []
6565
},
6666
{
67-
"type": "Histogram",
67+
"type": "Distribution",
6868
"name": "buffer.envelope_size.compressed",
6969
"description": "Size of a compressed envelope pushed to the envelope buffer.",
7070
"features": []
@@ -76,7 +76,7 @@
7676
"features": []
7777
},
7878
{
79-
"type": "Histogram",
79+
"type": "Distribution",
8080
"name": "buffer.envelopes_count",
8181
"description": "Number of elements in the envelope buffer across all the stacks.\n\nThis metric is tagged with:\n- `storage_type`: The type of storage used in the envelope buffer.",
8282
"features": []
@@ -202,7 +202,7 @@
202202
"features": []
203203
},
204204
{
205-
"type": "Histogram",
205+
"type": "Distribution",
206206
"name": "event.item_size",
207207
"description": "The number of bytes received by Relay for each individual envelope item type.\n\nThis metric is tagged with:\n- `item_type`: The type of the items being counted.\n- `is_container`: Whether this item is a container holding multiple items.",
208208
"features": []
@@ -238,7 +238,7 @@
238238
"features": []
239239
},
240240
{
241-
"type": "Histogram",
241+
"type": "Distribution",
242242
"name": "event.spans",
243243
"description": "The number of spans per processed transaction event.\n\nThis metric is tagged with:\n- `platform`: The event's platform, such as `\"javascript\"`.\n- `sdk`: The name of the Sentry SDK sending the transaction. This tag is only set for\nSentry's SDKs and defaults to \"proprietary\".",
244244
"features": []
@@ -346,7 +346,7 @@
346346
"features": []
347347
},
348348
{
349-
"type": "Histogram",
349+
"type": "Distribution",
350350
"name": "http_queue.size",
351351
"description": "The number of upstream requests queued up for sending.\n\nRelay employs connection keep-alive whenever possible. Connections are kept open for _15_\nseconds of inactivity or _75_ seconds of activity. If all connections are busy, they are\nqueued, which is reflected in this metric.\n\nThis metric is tagged with:\n- `priority`: The queueing priority of the request, either `\"high\"` or `\"low\"`. The\npriority determines precedence in executing requests.\n\nThe number of concurrent connections can be configured with:\n- `limits.max_concurrent_requests` for the overall number of connections\n- `limits.max_concurrent_queries` for the number of concurrent high-priority requests",
352352
"features": []
@@ -358,7 +358,7 @@
358358
"features": []
359359
},
360360
{
361-
"type": "Histogram",
361+
"type": "Distribution",
362362
"name": "kafka.message_size",
363363
"description": "Size of emitted kafka message in bytes.\n\nThis metric is tagged with:\n- `topic`: The Kafka topic being produced to.\n- `variant`: The Kafka message variant.\n- `producer_name`: The configured producer name/deployment identifier.",
364364
"features": []
@@ -478,7 +478,7 @@
478478
"features": []
479479
},
480480
{
481-
"type": "Histogram",
481+
"type": "Distribution",
482482
"name": "metrics.buckets.batches_per_partition",
483483
"description": "The number of batches emitted per partition.",
484484
"features": []
@@ -526,13 +526,13 @@
526526
"features": []
527527
},
528528
{
529-
"type": "Histogram",
529+
"type": "Distribution",
530530
"name": "metrics.buckets.partition_keys",
531531
"description": "Distribution of flush buckets over partition keys.\n\nThe distribution of buckets should be even.\nIf it is not, this metric should expose it.",
532532
"features": []
533533
},
534534
{
535-
"type": "Histogram",
535+
"type": "Distribution",
536536
"name": "metrics.buckets.per_batch",
537537
"description": "The number of buckets in a batch emitted.\n\nThis corresponds to the number of buckets that will end up in an envelope.",
538538
"features": []
@@ -580,7 +580,7 @@
580580
"features": []
581581
},
582582
{
583-
"type": "Histogram",
583+
"type": "Distribution",
584584
"name": "partition_splits",
585585
"description": "Measures how many splits were performed when sending out a partition.",
586586
"features": []
@@ -683,7 +683,7 @@
683683
"features": []
684684
},
685685
{
686-
"type": "Histogram",
686+
"type": "Distribution",
687687
"name": "project_cache.size",
688688
"description": "Number of project states currently held in the in-memory project cache.\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.\n\nThere is no limit to the number of cached projects.",
689689
"features": []
@@ -695,7 +695,7 @@
695695
"features": []
696696
},
697697
{
698-
"type": "Histogram",
698+
"type": "Distribution",
699699
"name": "project_state.attempts",
700700
"description": "Number of attempts required to fetch the config for a given project key.",
701701
"features": []
@@ -715,13 +715,13 @@
715715
"features": []
716716
},
717717
{
718-
"type": "Histogram",
718+
"type": "Distribution",
719719
"name": "project_state.pending",
720720
"description": "Number of projects in the in-memory project cache that are waiting for their state to be\nupdated.\n\nSee `project_cache.size` for more description of the project cache.",
721721
"features": []
722722
},
723723
{
724-
"type": "Histogram",
724+
"type": "Distribution",
725725
"name": "project_state.received",
726726
"description": "Number of project states **returned** from the upstream for each batch request.\n\nIf multiple batches are updated concurrently, this metric is reported multiple times.\n\nSee `project_cache.size` for more description of the project cache.",
727727
"features": []
@@ -741,7 +741,7 @@
741741
"features": []
742742
},
743743
{
744-
"type": "Histogram",
744+
"type": "Distribution",
745745
"name": "project_state.request.batch_size",
746746
"description": "Number of project states **requested** from the upstream for each batch request.\n\nIf multiple batches are updated concurrently, this metric is reported multiple times.\n\nThe batch size can be configured with `cache.batch_size`. See `project_cache.size` for more\ndescription of the project cache.",
747747
"features": []
@@ -752,6 +752,22 @@
752752
"description": "Total time in milliseconds spent fetching queued project configuration updates requests to\nresolve.\n\nRelay updates projects in batches. Every update cycle, Relay requests\n`limits.max_concurrent_queries * cache.batch_size` projects from the upstream. This metric\nmeasures the wall clock time for all concurrent requests in this loop.\n\nNote that after an update loop has completed, there may be more projects pending updates.\nThis is indicated by `project_state.pending`.",
753753
"features": []
754754
},
755+
{
756+
"type": "Distribution",
757+
"name": "project_state.size_bytes.compressed",
758+
"description": "The size of the compressed project config in the redis cache, in bytes.",
759+
"features": [
760+
"processing"
761+
]
762+
},
763+
{
764+
"type": "Distribution",
765+
"name": "project_state.size_bytes.decompressed",
766+
"description": "The size of the uncompressed project config in the redis cache, in bytes.",
767+
"features": [
768+
"processing"
769+
]
770+
},
755771
{
756772
"type": "Counter",
757773
"name": "project_upstream.completed",
@@ -1035,13 +1051,13 @@
10351051
]
10361052
},
10371053
{
1038-
"type": "Histogram",
1054+
"type": "Distribution",
10391055
"name": "upstream.envelope.body_size",
10401056
"description": "Size of queries (projectconfig queries, i.e. the request payload, not the response) sent by\nRelay over HTTP in bytes.",
10411057
"features": []
10421058
},
10431059
{
1044-
"type": "Histogram",
1060+
"type": "Distribution",
10451061
"name": "upstream.metrics.body_size",
10461062
"description": "Size of batched global metrics requests sent by Relay over HTTP in bytes.",
10471063
"features": []
@@ -1053,7 +1069,7 @@
10531069
"features": []
10541070
},
10551071
{
1056-
"type": "Histogram",
1072+
"type": "Distribution",
10571073
"name": "upstream.query.body_size",
10581074
"description": "Size of envelopes sent over HTTP in bytes.",
10591075
"features": []
@@ -1065,7 +1081,7 @@
10651081
"features": []
10661082
},
10671083
{
1068-
"type": "Histogram",
1084+
"type": "Distribution",
10691085
"name": "upstream.retries",
10701086
"description": "Counts the number of retries for each upstream http request.\n\nThis metric is tagged with:\n\n- `result`: What happened to the request, an enumeration with the following values:\n* `success`: The request was sent and returned a success code `HTTP 2xx`\n* `response_error`: The request was sent and it returned an HTTP error.\n* `payload_failed`: The request was sent but there was an error in interpreting the response.\n* `send_failed`: Failed to send the request due to a network error.\n* `rate_limited`: The request was rate limited.\n* `invalid_json`: The response could not be parsed back into JSON.\n- `route`: The endpoint that was called on the upstream.\n- `status-code`: The status code of the request when available, otherwise \"-\".",
10711087
"features": []

0 commit comments

Comments
 (0)