Last active
February 6, 2019 14:51
-
-
Save jaycdave88/fbed6794ea4119469b607d7a58e0518d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instances: | |
# location of tomcat | |
- host: 10.112.9.6 | |
port: 9999 | |
max_returned_metrics: 9500 | |
# user: username | |
# password: password | |
# process_name_regex: .*process_name.* # Instead of specifying a host, and port. The agent can connect using the attach api. | |
# # This requires the JDK to be installed and the path to tools.jar to be set below. | |
# tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar # To be set when process_name_regex is set | |
# name: solr_instance | |
# java_bin_path: /path/to/java # Optional, should be set if the agent cannot find your java executable | |
# java_options: "-Xmx200m -Xms50m" # Optional, Java JVM options | |
# | |
# trust_store_path: /path/to/trustStore.jks # Optional, should be set if "com.sun.management.jmxremote.ssl" is set to true on the target JVM. | |
# trust_store_password: password | |
# key_store_path: /path/to/keyStore.jks # Optional, should be set if "com.sun.management.jmxremote.ssl.need.client.auth" is set to true on the target JVM. | |
# key_store_password: password | |
# rmi_registry_ssl: false # Optional, should be set to true if "com.sun.management.jmxremote.registry.ssl" is set to true on the target JVM. | |
# | |
# tags: | |
# env: stage | |
# newTag: test | |
init_config: | |
is_jmx: true | |
collect_default_metrics: true | |
# List of metrics to be collected by the integration | |
# Read http://docs.datadoghq.com/integrations/java/ to learn how to customize it | |
# Agent 5: Customize all your metrics below | |
# Agent 6: The default metrics to be collected are kept in metrics.yaml, but you can still add your own metrics here | |
conf: | |
# Solr 7 MBeans | |
- include: | |
category: SEARCHER | |
name: | |
- numDocs | |
scope: | |
- searcher | |
attribute: | |
Value: | |
alias: solr.searcher.numdocs | |
metric_type: gauge | |
- include: | |
category: SEARCHER | |
name: maxDoc | |
scope: | |
- searcher | |
attribute: | |
Value: | |
alias: solr.searcher.maxdocs | |
metric_type: gauge | |
- include: | |
category: SEARCHER | |
name: warmupTime | |
scope: | |
- searcher | |
attribute: | |
Value: | |
alias: solr.searcher.warmup | |
metric_type: gauge | |
- include: | |
category: CACHE | |
name: documentCache | |
scope: | |
- searcher | |
attribute: | |
cumulative_lookups: | |
alias: solr.document_cache.lookups | |
metric_type: counter | |
cumulative_hits: | |
alias: solr.document_cache.hits | |
metric_type: counter | |
cumulative_inserts: | |
alias: solr.document_cache.inserts | |
metric_type: counter | |
cumulative_evictions: | |
alias: solr.document_cache.evictions | |
metric_type: counter | |
- include: | |
category: CACHE | |
name: queryResultCache | |
scope: | |
- searcher | |
attribute: | |
cumulative_lookups: | |
alias: solr.query_result_cache.lookups | |
metric_type: counter | |
cumulative_hits: | |
alias: solr.query_result_cache.hits | |
metric_type: counter | |
cumulative_inserts: | |
alias: solr.query_result_cache.inserts | |
metric_type: counter | |
cumulative_evictions: | |
alias: solr.query_result_cache.evictions | |
metric_type: counter | |
- include: | |
category: CACHE | |
name: filterCache | |
scope: | |
- searcher | |
attribute: | |
cumulative_lookups: | |
alias: solr.filter_cache.lookups | |
metric_type: counter | |
cumulative_hits: | |
alias: solr.filter_cache.hits | |
metric_type: counter | |
cumulative_inserts: | |
alias: solr.filter_cache.inserts | |
metric_type: counter | |
cumulative_evictions: | |
alias: solr.filter_cache.evictions | |
metric_type: counter | |
- include: | |
category: QUERY | |
name: requests | |
attribute: | |
Count: | |
alias: solr.search_handler.requests | |
metric_type: counter | |
- include: | |
category: QUERY | |
name: timeouts | |
attribute: | |
Count: | |
alias: solr.search_handler.timeouts | |
metric_type: counter | |
- include: | |
category: QUERY | |
name: errors | |
attribute: | |
Count: | |
alias: solr.search_handler.errors | |
metric_type: counter | |
- include: | |
category: QUERY | |
name: totalTime | |
attribute: | |
Count: | |
alias: solr.search_handler.time | |
metric_type: counter | |
- include: | |
category: QUERY | |
name: requestTimes | |
attribute: | |
avgRequestsPerSecond: | |
alias: solr.search_handler.avg_requests_per_sec | |
metric_type: gauge | |
avgTimePerRequest: | |
alias: solr.search_handler.avg_time_per_req | |
metric_type: gauge | |
# Solr version < 7 MBeans | |
- include: | |
type: searcher | |
attribute: | |
maxDoc: | |
alias: solr.searcher.maxdoc | |
metric_type: gauge | |
numDocs: | |
alias: solr.searcher.numdocs | |
metric_type: gauge | |
warmupTime: | |
alias: solr.searcher.warmup | |
metric_type: gauge | |
- include: | |
id: org.apache.solr.search.FastLRUCache | |
attribute: | |
cumulative_lookups: | |
alias: solr.cache.lookups | |
metric_type: counter | |
cumulative_hits: | |
alias: solr.cache.hits | |
metric_type: counter | |
cumulative_inserts: | |
alias: solr.cache.inserts | |
metric_type: counter | |
cumulative_evictions: | |
alias: solr.cache.evictions | |
metric_type: counter | |
- include: | |
id: org.apache.solr.search.LRUCache | |
attribute: | |
cumulative_lookups: | |
alias: solr.cache.lookups | |
metric_type: counter | |
cumulative_hits: | |
alias: solr.cache.hits | |
metric_type: counter | |
cumulative_inserts: | |
alias: solr.cache.inserts | |
metric_type: counter | |
cumulative_evictions: | |
alias: solr.cache.evictions | |
metric_type: counter | |
- include: | |
id: org.apache.solr.handler.component.SearchHandler | |
attribute: | |
errors: | |
alias: solr.search_handler.errors | |
metric_type: counter | |
requests: | |
alias: solr.search_handler.requests | |
metric_type: counter | |
timeouts: | |
alias: solr.search_handler.timeouts | |
metric_type: counter | |
totalTime: | |
alias: solr.search_handler.time | |
metric_type: counter | |
avgTimePerRequest: | |
alias: solr.search_handler.avg_time_per_req | |
metric_type: gauge | |
avgRequestsPerSecond: | |
alias: solr.search_handler.avg_requests_per_sec | |
metric_type: gauge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment