Skip to content

Commit

Permalink
Label endpoint metrics (#26)
Browse files Browse the repository at this point in the history
* Label endpoint metrics

* Tune metrics

* nit: typo
  • Loading branch information
kishansairam9 authored Feb 20, 2023
1 parent 9bbf011 commit 45ac7cf
Showing 1 changed file with 54 additions and 4 deletions.
58 changes: 54 additions & 4 deletions helm/templates/jmx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,59 @@ data:
ssl: false
rules:
- pattern : 'kafka.schema.registry<type=jetty-metrics>([^:]+):'
name: "cp_kafka_schema_registry_jetty_metrics_$1"
name: schema_registry_$1
labels:
type: jetty_metrics
- pattern : 'kafka.schema.registry<type=master-slave-role>([^:]+):'
name: "cp_kafka_schema_registry_master_slave_role"
- pattern : 'kafka.schema.registry<type=jersey-metrics>([^:]+):'
name: "cp_kafka_schema_registry_jersey_metrics_$1"
name: schema_registry_$1
labels:
type: master_slave_role
- pattern : 'kafka.schema.registry<type=jersey-metrics><>(.+)\.(.+):'
name: schema_registry_$2
labels:
api_endpoint: $1
type: jersey_metrics
- pattern : 'kafka.schema.registry<type=(api-(.+))-count>(.*):'
name: schema_registry_$1
labels:
type: api-metrics
- pattern : 'kafka.schema.registry<type=([^-]+)-schemas-([^>]+)>(.*):'
name: schema_registry_schemas_stats
labels:
schema: $1
operation: $2
type: schemas_stats
- pattern : 'kafka.schema.registry<type=(registered|deleted|custom-schema-provider)-count>(.*):'
name: schema_registry_schemas_stats
labels:
schema: total
operation: $1
type: schemas_stats
- pattern: 'java.lang<type=Memory><(\w+)MemoryUsage>(\w+): (\d+)'
name: jvm_memory_$2_bytes
labels:
area: $1
value: $3
type: GAUGE
- pattern: 'java.nio<name=(direct|mapped), type=BufferPool><>MemoryUsed: (\d+)'
name: java_nio_$1_memoryused
value: $2
type: GAUGE
- pattern: 'java.lang<name=([^,]+), type=GarbageCollector><>CollectionTime: (\d+)'
name: jvm_gc_duration_millis
value: $2
labels:
area: $1
type: GAUGE
- pattern: 'java.lang<name=([^,]+), type=GarbageCollector><>CollectionCount: (\d+)'
name: jvm_gc_collection_count
value: $2
labels:
area: $1
type: GAUGE
- pattern: "java.lang<type=OperatingSystem><>((System|Process|(.*FileDescriptorCount))(.*)): (.*)"
name: "java_lang_operatingsystem_$1"
value: $5
- pattern: "java.lang<type=Threading><>(.*)ThreadCount"
name: "java_lang_threading_$1threadcount"
{{- end }}

0 comments on commit 45ac7cf

Please sign in to comment.