Skip to content

Instantly share code, notes, and snippets.

@buuhsmead
Last active August 28, 2020 21:08
Show Gist options
  • Save buuhsmead/9cb2dacf357a282409de21975c421ea0 to your computer and use it in GitHub Desktop.
Save buuhsmead/9cb2dacf357a282409de21975c421ea0 to your computer and use it in GitHub Desktop.
jmx-exporter for Red Hat Fuse 7.7 with added RouteState and ContextState
startDelaySecs: 5
ssl: false
blacklistObjectNames: ["java.lang:*"]
rules:
# Context level
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesCompleted'
name: org.apache.camel.ExchangesCompleted
help: Exchanges Completed
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesFailed'
name: org.apache.camel.ExchangesFailed
help: Exchanges Failed
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesInflight'
name: org.apache.camel.ExchangesInflight
help: Exchanges Inflight
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>FailuresHandled'
name: org.apache.camel.FailuresHandled
help: Failures Handled
labels:
context: $1
type: context
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>ExternalRedeliveries'
name: org.apache.camel.ExternalRedeliveries
help: External Redeliveries
labels:
context: $1
type: context
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>MaxProcessingTime'
name: org.apache.camel.MaxProcessingTime
help: Maximum Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>MeanProcessingTime'
name: org.apache.camel.MeanProcessingTime
help: Mean Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>MinProcessingTime'
name: org.apache.camel.MinProcessingTime
help: Minimum Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>LastProcessingTime'
name: org.apache.camel.LastProcessingTime
help: Last Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>DeltaProcessingTime'
name: org.apache.camel.DeltaProcessingTime
help: Delta Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>Redeliveries'
name: org.apache.camel.Redeliveries
help: Redeliveries
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name="([^"]+)"><>TotalProcessingTime'
name: org.apache.camel.TotalProcessingTime
help: Total Processing Time
labels:
context: $1
type: context
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>StartedRoutes'
name: org.apache.camel.StartedRoutes
help: Started Routes
type: GAUGE
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>TotalRoutes'
name: org.apache.camel.TotalRoutes
help: Total Routes
type: COUNTER
labels:
context: $1
type: context
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Starting.*)'
name: org.apache.camel.ContextState
help: Context State
value: 1
labels:
context: $1
type: context
state: $2
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Started.*)'
name: org.apache.camel.ContextState
help: Context State
value: 2
labels:
context: $1
type: context
state: 'Started'
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Stopping.*)'
name: org.apache.camel.ContextState
help: Context State
value: 3
labels:
context: $1
type: context
state: $2
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Stopped.*)'
name: org.apache.camel.ContextState
help: Context State
value: 4
labels:
context: $1
type: context
state: $3
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Suspending.*)'
name: org.apache.camel.ContextState
help: Context State
value: 5
labels:
context: $1
type: context
state: $3
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=context, name=([^,]+)><>State: (.*Suspended.*)'
name: org.apache.camel.ContextState
help: Context State
value: 6
labels:
context: $1
type: context
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=consumers, name="([^"]+)"><>InflightExchanges'
name: org.apache.camel.InflightExchanges
help: Inflight Exchanges
labels:
context: $1
type: context
type: GAUGE
# Route level
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExchangesCompleted'
name: org.apache.camel.ExchangesCompleted
help: Exchanges Completed
type: COUNTER
labels:
context: $1
route: $2
type: routes
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExchangesFailed'
name: org.apache.camel.ExchangesFailed
help: Exchanges Failed
type: COUNTER
labels:
context: $1
route: $2
type: routes
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExchangesInflight'
name: org.apache.camel.ExchangesInflight
help: Exchanges Inflight
type: COUNTER
labels:
context: $1
route: $2
type: routes
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
route: $2
type: routes
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
route: $2
type: routes
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>FailuresHandled'
name: org.apache.camel.FailuresHandled
help: Failures Handled
labels:
context: $1
route: $2
type: routes
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>ExternalRedeliveries'
name: org.apache.camel.ExternalRedeliveries
help: External Redeliveries
labels:
context: $1
route: $2
type: routes
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>MaxProcessingTime'
name: org.apache.camel.MaxProcessingTime
help: Maximum Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>MeanProcessingTime'
name: org.apache.camel.MeanProcessingTime
help: Mean Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>MinProcessingTime'
name: org.apache.camel.MinProcessingTime
help: Minimum Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>LastProcessingTime'
name: org.apache.camel.LastProcessingTime
help: Last Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>DeltaProcessingTime'
name: org.apache.camel.DeltaProcessingTime
help: Delta Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>Redeliveries'
name: org.apache.camel.Redeliveries
help: Redeliveries
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>TotalProcessingTime'
name: org.apache.camel.TotalProcessingTime
help: Total Processing Time
labels:
context: $1
route: $2
type: routes
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>InflightExchanges'
name: org.apache.camel.InflightExchanges
help: Inflight Exchanges
labels:
context: $1
route: $2
type: routes
type: GAUGE
# Starting:1, Started:2, Stopping:3, Stopped:4, Suspending:5, Suspended:6
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Starting.*)'
name: org.apache.camel.RouteState
help: Route State
value: 1
labels:
context: $1
route: $2
type: routes
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Started.*)'
name: org.apache.camel.RouteState
help: Route State
value: 2
labels:
context: $1
route: $2
type: routes
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Stopping.*)'
name: org.apache.camel.RouteState
help: Route State
value: 3
labels:
context: $1
route: $2
type: routes
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Stopped.*)'
name: org.apache.camel.RouteState
help: Route State
value: 4
labels:
context: $1
route: $2
type: routes
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Suspending.*)'
name: org.apache.camel.RouteState
help: Route State
value: 5
labels:
context: $1
route: $2
type: routes
state: $3
- pattern: 'org.apache.camel<context=([^,]+), type=routes, name="([^"]+)"><>State: (.*Suspended.*)'
name: org.apache.camel.RouteState
help: Route State
value: 6
labels:
context: $1
route: $2
type: routes
state: $3
# Processor level
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExchangesCompleted'
name: org.apache.camel.ExchangesCompleted
help: Exchanges Completed
type: COUNTER
labels:
context: $1
processor: $2
type: processors
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExchangesFailed'
name: org.apache.camel.ExchangesFailed
help: Exchanges Failed
type: COUNTER
labels:
context: $1
processor: $2
type: processors
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExchangesInflight'
name: org.apache.camel.ExchangesInflight
help: Exchanges Inflight
type: COUNTER
labels:
context: $1
processor: $2
type: processors
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
processor: $2
type: processors
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExchangesTotal'
name: org.apache.camel.ExchangesTotal
help: Exchanges Total
type: COUNTER
labels:
context: $1
processor: $2
type: processors
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>FailuresHandled'
name: org.apache.camel.FailuresHandled
help: Failures Handled
labels:
context: $1
processor: $2
type: processors
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>ExternalRedeliveries'
name: org.apache.camel.ExternalRedeliveries
help: External Redeliveries
labels:
context: $1
processor: $2
type: processors
type: COUNTER
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>MaxProcessingTime'
name: org.apache.camel.MaxProcessingTime
help: Maximum Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>MeanProcessingTime'
name: org.apache.camel.MeanProcessingTime
help: Mean Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>MinProcessingTime'
name: org.apache.camel.MinProcessingTime
help: Minimum Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>LastProcessingTime'
name: org.apache.camel.LastProcessingTime
help: Last Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>DeltaProcessingTime'
name: org.apache.camel.DeltaProcessingTime
help: Delta Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>Redeliveries'
name: org.apache.camel.Redeliveries
help: Redeliveries
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>TotalProcessingTime'
name: org.apache.camel.TotalProcessingTime
help: Total Processing Time
labels:
context: $1
processor: $2
type: processors
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=processors, name="([^"]+)"><>InflightExchanges'
name: org.apache.camel.InflightExchanges
help: Inflight Exchanges
labels:
context: $1
processor: $2
type: processors
type: COUNTER
# Consumers
- pattern: 'org.apache.camel<context=([^,]+), type=consumers, name="([^"]+)"><>InflightExchanges'
name: org.apache.camel.InflightExchanges
help: Inflight Exchanges
labels:
context: $1
consumer: $2
type: consumers
type: GAUGE
# Services
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>MaxDuration'
name: org.apache.camel.MaxDuration
help: Maximum Duration
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>MeanDuration'
name: org.apache.camel.MeanDuration
help: Mean Duration
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>MinDuration'
name: org.apache.camel.MinDuration
help: Minimum Duration
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>TotalDuration'
name: org.apache.camel.TotalDuration
help: Total Duration
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>ThreadsBlocked'
name: org.apache.camel.ThreadsBlocked
help: Threads Blocked
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.camel<context=([^,]+), type=services, name="([^"]+)"><>ThreadsInterrupted'
name: org.apache.camel.ThreadsInterrupted
help: Threads Interrupted
labels:
context: $1
service: $2
type: services
type: GAUGE
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>NumLogicalRuntimeFaults'
name: org.apache.cxf.NumLogicalRuntimeFaults
help: Number of logical runtime faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>NumLogicalRuntimeFaults'
name: org.apache.cxf.NumLogicalRuntimeFaults
help: Number of logical runtime faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>AvgResponseTime'
name: org.apache.cxf.AvgResponseTime
help: Average Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>AvgResponseTime'
name: org.apache.cxf.AvgResponseTime
help: Average Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>NumInvocations'
name: org.apache.cxf.NumInvocations
help: Number of invocations
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>NumInvocations'
name: org.apache.cxf.NumInvocations
help: Number of invocations
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>MaxResponseTime'
name: org.apache.cxf.MaxResponseTime
help: Maximum Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>MaxResponseTime'
name: org.apache.cxf.MaxResponseTime
help: Maximum Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>MinResponseTime'
name: org.apache.cxf.MinResponseTime
help: Minimum Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>MinResponseTime'
name: org.apache.cxf.MinResponseTime
help: Minimum Response Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>TotalHandlingTime'
name: org.apache.cxf.TotalHandlingTime
help: Total Handling Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>TotalHandlingTime'
name: org.apache.cxf.TotalHandlingTime
help: Total Handling Time
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>NumRuntimeFaults'
name: org.apache.cxf.NumRuntimeFaults
help: Number of runtime faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>NumRuntimeFaults'
name: org.apache.cxf.NumRuntimeFaults
help: Number of runtime faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>NumUnCheckedApplicationFaults'
name: org.apache.cxf.NumUnCheckedApplicationFaults
help: Number of unchecked application faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>NumUnCheckedApplicationFaults'
name: org.apache.cxf.NumUnCheckedApplicationFaults
help: Number of unchecked application faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+), operation=([^,]+)><>NumCheckedApplicationFaults'
name: org.apache.cxf.NumCheckedApplicationFaults
help: Number of checked application faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
operation: $5
- pattern: 'org.apache.cxf<bus.id=([^,]+), type=([^,]+), service=([^,]+), port=([^,]+)><>NumCheckedApplicationFaults'
name: org.apache.cxf.NumCheckedApplicationFaults
help: Number of checked application faults
type: GAUGE
labels:
bus.id: $1
type: $2
service: $3
port: $4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment