Skip to content

Instantly share code, notes, and snippets.

@chaudum
Created January 27, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaudum/0a28d3cb5ba5701088b736b3b0225608 to your computer and use it in GitHub Desktop.
Save chaudum/0a28d3cb5ba5701088b736b3b0225608 to your computer and use it in GitHub Desktop.
1,34d0
< crate_circuitbreakers{name="fielddata",property="limit",}
< crate_circuitbreakers{name="fielddata",property="overhead",}
< crate_circuitbreakers{name="fielddata",property="trippedCount",}
< crate_circuitbreakers{name="fielddata",property="used",}
< crate_circuitbreakers{name="in_flight_requests",property="limit",}
< crate_circuitbreakers{name="in_flight_requests",property="overhead",}
< crate_circuitbreakers{name="in_flight_requests",property="trippedCount",}
< crate_circuitbreakers{name="in_flight_requests",property="used",}
< crate_circuitbreakers{name="jobs_log",property="limit",}
< crate_circuitbreakers{name="jobs_log",property="overhead",}
< crate_circuitbreakers{name="jobs_log",property="trippedCount",}
< crate_circuitbreakers{name="jobs_log",property="used",}
< crate_circuitbreakers{name="operations_log",property="limit",}
< crate_circuitbreakers{name="operations_log",property="overhead",}
< crate_circuitbreakers{name="operations_log",property="trippedCount",}
< crate_circuitbreakers{name="operations_log",property="used",}
< crate_circuitbreakers{name="parent",property="limit",}
< crate_circuitbreakers{name="parent",property="overhead",}
< crate_circuitbreakers{name="parent",property="trippedCount",}
< crate_circuitbreakers{name="parent",property="used",}
< crate_circuitbreakers{name="query",property="limit",}
< crate_circuitbreakers{name="query",property="overhead",}
< crate_circuitbreakers{name="query",property="trippedCount",}
< crate_circuitbreakers{name="query",property="used",}
< crate_circuitbreakers{name="request",property="limit",}
< crate_circuitbreakers{name="request",property="overhead",}
< crate_circuitbreakers{name="request",property="trippedCount",}
< crate_circuitbreakers{name="request",property="used",}
< crate_cluster_state_version
< crate_connections{protocol="http",property="open",}
< crate_connections{protocol="http",property="total",}
< crate_connections{protocol="psql",property="open",}
< crate_connections{protocol="psql",property="total",}
< crate_connections{protocol="transport",property="open",}
45,129c11,14
< crate_ready
< crate_threadpools{name="bulk",property="active",}
< crate_threadpools{name="bulk",property="completed",}
< crate_threadpools{name="bulk",property="largestPoolSize",}
< crate_threadpools{name="bulk",property="poolSize",}
< crate_threadpools{name="bulk",property="queueSize",}
< crate_threadpools{name="bulk",property="rejected",}
< crate_threadpools{name="fetch_shard_started",property="active",}
< crate_threadpools{name="fetch_shard_started",property="completed",}
< crate_threadpools{name="fetch_shard_started",property="largestPoolSize",}
< crate_threadpools{name="fetch_shard_started",property="poolSize",}
< crate_threadpools{name="fetch_shard_started",property="queueSize",}
< crate_threadpools{name="fetch_shard_started",property="rejected",}
< crate_threadpools{name="fetch_shard_store",property="active",}
< crate_threadpools{name="fetch_shard_store",property="completed",}
< crate_threadpools{name="fetch_shard_store",property="largestPoolSize",}
< crate_threadpools{name="fetch_shard_store",property="poolSize",}
< crate_threadpools{name="fetch_shard_store",property="queueSize",}
< crate_threadpools{name="fetch_shard_store",property="rejected",}
< crate_threadpools{name="flush",property="active",}
< crate_threadpools{name="flush",property="completed",}
< crate_threadpools{name="flush",property="largestPoolSize",}
< crate_threadpools{name="flush",property="poolSize",}
< crate_threadpools{name="flush",property="queueSize",}
< crate_threadpools{name="flush",property="rejected",}
< crate_threadpools{name="force_merge",property="active",}
< crate_threadpools{name="force_merge",property="completed",}
< crate_threadpools{name="force_merge",property="largestPoolSize",}
< crate_threadpools{name="force_merge",property="poolSize",}
< crate_threadpools{name="force_merge",property="queueSize",}
< crate_threadpools{name="force_merge",property="rejected",}
< crate_threadpools{name="generic",property="active",}
< crate_threadpools{name="generic",property="completed",}
< crate_threadpools{name="generic",property="largestPoolSize",}
< crate_threadpools{name="generic",property="poolSize",}
< crate_threadpools{name="generic",property="queueSize",}
< crate_threadpools{name="generic",property="rejected",}
< crate_threadpools{name="get",property="active",}
< crate_threadpools{name="get",property="completed",}
< crate_threadpools{name="get",property="largestPoolSize",}
< crate_threadpools{name="get",property="poolSize",}
< crate_threadpools{name="get",property="queueSize",}
< crate_threadpools{name="get",property="rejected",}
< crate_threadpools{name="index",property="active",}
< crate_threadpools{name="index",property="completed",}
< crate_threadpools{name="index",property="largestPoolSize",}
< crate_threadpools{name="index",property="poolSize",}
< crate_threadpools{name="index",property="queueSize",}
< crate_threadpools{name="index",property="rejected",}
< crate_threadpools{name="listener",property="active",}
< crate_threadpools{name="listener",property="completed",}
< crate_threadpools{name="listener",property="largestPoolSize",}
< crate_threadpools{name="listener",property="poolSize",}
< crate_threadpools{name="listener",property="queueSize",}
< crate_threadpools{name="listener",property="rejected",}
< crate_threadpools{name="management",property="active",}
< crate_threadpools{name="management",property="completed",}
< crate_threadpools{name="management",property="largestPoolSize",}
< crate_threadpools{name="management",property="poolSize",}
< crate_threadpools{name="management",property="queueSize",}
< crate_threadpools{name="management",property="rejected",}
< crate_threadpools{name="refresh",property="active",}
< crate_threadpools{name="refresh",property="completed",}
< crate_threadpools{name="refresh",property="largestPoolSize",}
< crate_threadpools{name="refresh",property="poolSize",}
< crate_threadpools{name="refresh",property="queueSize",}
< crate_threadpools{name="refresh",property="rejected",}
< crate_threadpools{name="search",property="active",}
< crate_threadpools{name="search",property="completed",}
< crate_threadpools{name="search",property="largestPoolSize",}
< crate_threadpools{name="search",property="poolSize",}
< crate_threadpools{name="search",property="queueSize",}
< crate_threadpools{name="search",property="rejected",}
< crate_threadpools{name="snapshot",property="active",}
< crate_threadpools{name="snapshot",property="completed",}
< crate_threadpools{name="snapshot",property="largestPoolSize",}
< crate_threadpools{name="snapshot",property="poolSize",}
< crate_threadpools{name="snapshot",property="queueSize",}
< crate_threadpools{name="snapshot",property="rejected",}
< jvm_buffer_pool_capacity_bytes{pool="direct",}
< jvm_buffer_pool_capacity_bytes{pool="mapped",}
< jvm_buffer_pool_used_buffers{pool="direct",}
< jvm_buffer_pool_used_buffers{pool="mapped",}
< jvm_buffer_pool_used_bytes{pool="direct",}
< jvm_buffer_pool_used_bytes{pool="mapped",}
---
> jmx_config_reload_failure_total
> jmx_config_reload_success_total
> jmx_scrape_duration_seconds
> jmx_scrape_error
140,141d24
< jvm_memory_bytes_init{area="heap",}
< jvm_memory_bytes_init{area="nonheap",}
154,161d36
< jvm_memory_pool_bytes_init{pool="CMS
< jvm_memory_pool_bytes_init{pool="CodeHeap
< jvm_memory_pool_bytes_init{pool="CodeHeap
< jvm_memory_pool_bytes_init{pool="CodeHeap
< jvm_memory_pool_bytes_init{pool="Compressed
< jvm_memory_pool_bytes_init{pool="Metaspace",}
< jvm_memory_pool_bytes_init{pool="Par
< jvm_memory_pool_bytes_init{pool="Par
184d58
< process_cpu_seconds_total
@chaudum
Copy link
Author

chaudum commented Jan 27, 2019

crate jmx exporter on port 8081
jmx prometheus exporter on port 8082
storing the respective outputs of /metrics endpoints in 8081.txt and 8082.txt

$ grep -v "#" 8081.txt | awk 'split($0, a, "\"") {$2 = a[2]} {$3 = $(NF - 1)} {$4 = $NF} {print $1}' | sort -h > 8081_keys.txt 
$ grep -v "#" 8082.txt | awk 'split($0, a, "\"") {$2 = a[2]} {$3 = $(NF - 1)} {$4 = $NF} {print $1}' | sort -h > 8082_keys.txt
$ diff 8081_keys.txt 8082_keys.txt| vim -R -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment