Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
6 contributors

Users who have contributed to this file

@l0k0ms @ofek @nmuesch @gmmeyer @FlorianVeaux @arbll
306 lines (275 sloc) 8.63 KB
instances:
## @param host - string - required
## Solr host to connect to.
#
- host: localhost
## @param port - integer - required
## Solr port to connect to.
#
port: 9999
## @param user - string - optional
## Username from the credentials needed to connect to the host.
#
# user: <USERNAME>
## @param password - string - optional
## Password from the credentials needed to connect to the host.
#
# password: <PASSWORD>
## @param process_name_regex - string - optional
## 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 in `tools_jar_path` parameter.
#
# process_name_regex: .*process_name.*
## @param tools_jar_path - string - optional
## Needs to be set when process_name_regex parameter is set.
#
# tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
## @param name - string - optional
## Set your instance name.
#
# name: solr_instance
## @param java_bin_path - string - optional
## java_bin_path should be set if the agent cannot find your java executable
#
# java_bin_path: <JAVA_PATH>
## @param java_options - string - optional
## List of Java JVM options.
#
# java_options: "-Xmx200m -Xms50m"
## @param trust_store_path - string - optional
## trust_store_path should be set if "com.sun.management.jmxremote.ssl" is
## set to true on the target JVM.
## It's the path to your trusted store
#
# trust_store_path: <TRUSTSTORE.JKS_PATH>
## @param trust_store_password - string - optional
## `trust_store_password` should be set if "com.sun.management.jmxremote.ssl" is
## set to true on the target JVM. It's the password for your TrustStore.jks file.
#
# trust_store_password: <PASSWORD>
## @param key_store_path - string - optional
## key_store_path should be set if "com.sun.management.jmxremote.ssl.need.client.auth"
## is set to true on the target JVM.
## It's the path to your key store.
#
# key_store_path: <KEYSTORE.JKS_PATH>
## @param key_store_password - string - optional
## key_store_password should be set if "com.sun.management.jmxremote.ssl.need.client.auth"
## is set to true on the target JVM.
## It's the password for your KeyStore.jks file.
#
# key_store_password: <PASSWORD>
## @param rmi_registry_ssl - boolean - optional
## Whether or not the agent should connect to the rmi registry using ssl.
## should be set to true if "com.sun.management.jmxremote.registry.ssl" is set to true on the target JVM.
#
# rmi_registry_ssl: false
## @param tags - list of key:value element - optional
## List of tags to attach to every metric, event and service check emitted by this integration.
##
## Learn more about tagging: https://docs.datadoghq.com/tagging/
#
# tags:
# - <KEY_1>:<VALUE_1>
# - <KEY_2>:<VALUE_2>
init_config:
## @param is_jmx - boolean - required
## Whether or not this file is a configuration for a JMX integration
#
is_jmx: true
## @param collect_default_metrics - boolean - required
## Whether or not the check should collect all default metrics for this integration.
#
collect_default_metrics: true
## @param conf - list of objects - required
## 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
You can’t perform that action at this time.