|
| 1 | +# Example summary configuration |
| 2 | +# This file demonstrates how to configure summary metrics tracking |
| 3 | + |
| 4 | +# Message pattern rules - count messages matching specific prefixes |
| 5 | +message_patterns: |
| 6 | + # Count messages starting with "gh_client__queue_oid:" |
| 7 | + - prefix: "gh_client__queue_oid:" |
| 8 | + field_name: "queuedCount" |
| 9 | + |
| 10 | + # Count messages starting with "gh_client__get_immediate:" |
| 11 | + - prefix: "gh_client__get_immediate:" |
| 12 | + field_name: "immediateCount" |
| 13 | + |
| 14 | +# Region timer rules - aggregate time spent in regions by category/label |
| 15 | +region_timers: |
| 16 | + # Track prefetch operations |
| 17 | + - category: "gh-client" |
| 18 | + label: "objects/prefetch" |
| 19 | + count_field: "prefetchCount" |
| 20 | + time_field: "prefetchTime" |
| 21 | + |
| 22 | + # Track immediate get operations |
| 23 | + - category: "gh-client" |
| 24 | + label: "objects/get" |
| 25 | + count_field: "getCount" |
| 26 | + time_field: "getTime" |
| 27 | + |
| 28 | + # Track batch operations |
| 29 | + - category: "gvfs-helper" |
| 30 | + label: "objects/post" |
| 31 | + count_field: "batchCount" |
| 32 | + time_field: "batchTime" |
| 33 | + |
| 34 | +# Example output in OTEL span attributes: |
| 35 | +# { |
| 36 | +# "trace2.process.summary": { |
| 37 | +# "queuedCount": 405, |
| 38 | +# "immediateCount": 128, |
| 39 | +# "prefetchCount": 1, |
| 40 | +# "prefetchTime": 30.4, |
| 41 | +# "getCount": 127, |
| 42 | +# "getTime": 50.3, |
| 43 | +# "batchCount": 1, |
| 44 | +# "batchTime": 12.3 |
| 45 | +# } |
| 46 | +# } |
0 commit comments