Skip to content

Instantly share code, notes, and snippets.

@mseemann
Last active December 24, 2019 11:14
Show Gist options
  • Save mseemann/2665c40b23a6fa6ad5b7dcb1f91e50d7 to your computer and use it in GitHub Desktop.
Save mseemann/2665c40b23a6fa6ad5b7dcb1f91e50d7 to your computer and use it in GitHub Desktop.
rules:
- pattern: "jmxpg.mbeans<type=AppInfo, Version=([^:]+)><>Status: ([^:]+)"
name: "msee_jmxpg_mbeans_app_info_status"
type: UNTYPED
help: "Version and status of the app. Status values: running, failed, starting and exited."
value: 1
labels:
version: $1
status: $2
- pattern: "jmxpg.mbeans<type=Requests, verb=([^:]+)><>([^:]+)"
name: "msee_jmxpg_mbeans_requests_$2"
help: "Number of request."
attrNameSnakeCase: true
type: COUNTER
labels:
verb: $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment