Apache Solr open-source search software
SOLR-17828: Remove Prometheus exporter (#3470)
Matthew Biscochoe02bd5367a9c
diff --git a/.github/labeler.yml b/.github/labeler.ymlindex beb19670e48..ed1221dd7cc 100644--- a/.github/labeler.yml+++ b/.github/labeler.yml@@ -98,12 +98,6 @@ admin-ui:- solr/webapp/**- solr/ui/**-# Add 'prometheus-exporter' label-prometheus-exporter:- - changed-files:- - any-glob-to-any-file:- - solr/prometheus-exporter/**-# Add labels for changes to solr modulesmodule:analysis-extras:- changed-files:diff --git a/.github/workflows/bin-solr-test.yml b/.github/workflows/bin-solr-test.ymlindex 7684da03375..8bb4e6fea47 100644--- a/.github/workflows/bin-solr-test.yml+++ b/.github/workflows/bin-solr-test.yml@@ -9,7 +9,6 @@ on:- 'solr/bin/**'- 'solr/packaging/**'- 'solr/core/src/java/org/apache/solr/cli/**'- - 'solr/prometheus-exporter/**'jobs:test:diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.ymlindex c36cda412d4..47856e7e305 100644--- a/.github/workflows/docker-test.yml+++ b/.github/workflows/docker-test.yml@@ -7,7 +7,6 @@ on:paths:- '.github/workflows/docker-test.yml'- 'solr/bin/**'- - 'solr/prometheus-exporter/bin/**'- 'solr/docker/**'- 'solr/packaging/**'diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.pyindex 38fa01f872c..9ff1e24774c 100755--- a/dev-tools/scripts/smokeTestRelease.py+++ b/dev-tools/scripts/smokeTestRelease.py@@ -636,7 +636,7 @@ def verifyUnpacked(java, artifact, unpackPath, gitRevision, version, testArgs):expected_src_root_folders = ['build-tools', 'dev-docs', 'dev-tools', 'gradle', 'help', 'solr']expected_src_root_files = ['build.gradle', 'gradlew', 'gradlew.bat', 'settings.gradle', 'settings-gradle.lockfile', 'versions.lock']expected_src_solr_files = ['build.gradle']- expected_src_solr_folders = ['benchmark', 'bin', 'modules', 'api', 'core', 'cross-dc-manager', 'docker', 'documentation', 'example', 'licenses', 'packaging', 'distribution', 'prometheus-exporter', 'server', 'solr-ref-guide', 'solrj', 'solrj-streaming', 'solrj-zookeeper', 'test-framework', 'webapp', '.gitignore', '.gitattributes']+ expected_src_solr_folders = ['benchmark', 'bin', 'modules', 'api', 'core', 'cross-dc-manager', 'docker', 'documentation', 'example', 'licenses', 'packaging', 'distribution', 'server', 'solr-ref-guide', 'solrj', 'solrj-streaming', 'solrj-zookeeper', 'test-framework', 'webapp', '.gitignore', '.gitattributes']is_in_list(in_root_folder, expected_src_root_folders)is_in_list(in_root_folder, expected_src_root_files)is_in_list(in_solr_folder, expected_src_solr_folders)@@ -646,7 +646,7 @@ def verifyUnpacked(java, artifact, unpackPath, gitRevision, version, testArgs):elif isSlim:is_in_list(in_root_folder, ['bin', 'docker', 'docs', 'example', 'licenses', 'server', 'lib'])else:- is_in_list(in_root_folder, ['bin', 'modules', 'cross-dc-manager', 'docker', 'prometheus-exporter', 'docs', 'example', 'licenses', 'server', 'lib'])+ is_in_list(in_root_folder, ['bin', 'modules', 'cross-dc-manager', 'docker', 'docs', 'example', 'licenses', 'server', 'lib'])if len(in_root_folder) > 0:raise RuntimeError('solr: unexpected files/dirs in artifact %s: %s' % (artifact, in_root_folder))diff --git a/gradle/maven/defaults-maven.gradle b/gradle/maven/defaults-maven.gradleindex beba30c6a9f..7e4954a0498 100644--- a/gradle/maven/defaults-maven.gradle+++ b/gradle/maven/defaults-maven.gradle@@ -30,7 +30,6 @@ configure(rootProject) {":solr:solrj",":solr:solrj-streaming",":solr:solrj-zookeeper",- ":solr:prometheus-exporter",":solr:test-framework",] + project(":solr:modules").getChildProjects().values().pathdiff --git a/gradle/solr/packaging.gradle b/gradle/solr/packaging.gradleindex 1b5325f908b..d8988555dad 100644--- a/gradle/solr/packaging.gradle+++ b/gradle/solr/packaging.gradle@@ -36,11 +36,11 @@// I don't know how to untie these two cleanly.//-configure(allprojects.findAll {project -> project.path.startsWith(":solr:modules:") || project.path == ":solr:prometheus-exporter" || project.path == ":solr:cross-dc-manager" }) {+configure(allprojects.findAll {project -> project.path.startsWith(":solr:modules:") || project.path == ":solr:cross-dc-manager" }) {plugins.withType(JavaPlugin) {project.ext {packagingDir = file("${buildDir}/packaging")- if (project.path.startsWith(":solr:prometheus-exporter") || project.path.startsWith(":solr:cross-dc-manager")) {+ if (project.path.startsWith(":solr:cross-dc-manager")) {deps = packagingDir} else {deps = file("${packagingDir}/${project.name}")diff --git a/settings.gradle b/settings.gradleindex 4a16234cc52..2dd9363de8b 100644--- a/settings.gradle+++ b/settings.gradle@@ -65,7 +65,6 @@ include "solr:documentation"include "solr:packaging"include "solr:distribution"include "solr:docker"-include "solr:prometheus-exporter"def disableUiModuleValue = providers.gradleProperty('disableUiModule').orNullgradle.ext.withUiModule = disableUiModuleValue == null || disableUiModuleValue != 'true'diff --git a/solr/README.adoc b/solr/README.adocindex 8ddabdffa92..6b77d17288c 100644--- a/solr/README.adoc+++ b/solr/README.adoc@@ -55,9 +55,6 @@ Contains modules to extend the functionality of Solr.link:packaging/[]::Gradle project to build the binary release of Solr.-link:prometheus-exporter/[]::-Contains a separate application to monitor Solr instances and export Prometheus metrics.-link:server/[]::Gradle project that builds the Jetty server to run Solr.diff --git a/solr/docker/build.gradle b/solr/docker/build.gradleindex bda15db92f1..9d0f8b02aa3 100644--- a/solr/docker/build.gradle+++ b/solr/docker/build.gradle@@ -224,11 +224,6 @@ task testDocker(type: TestDockerImageTask, dependsOn: tasks.dockerBuild) {// include/exclude options are designed for people who know their customizations will break some teststestCasesInclude.value(Arrays.asList(propertyOrEnvOrDefault("solr.docker.tests.include", "SOLR_DOCKER_TESTS_INCLUDE", ",").split(",")))var excludeCases = new HashSet(Arrays.asList(propertyOrEnvOrDefault("solr.docker.tests.exclude", "SOLR_DOCKER_TESTS_EXCLUDE", ",").split(",")))- if (isImageSlim()) {- // The slim image does not contain the prometheus-exporter.- excludeCases.add("prometheus-exporter-standalone")- excludeCases.add("prometheus-exporter-cloud")- }testCasesExclude.value(excludeCases)}@@ -549,7 +544,6 @@ task testDockerfileOfficialSlim(type: TestDockerImageTask, dependsOn: configurat// This test does not respect the include/exclude properties that `testDocker` does.// All docker tests will be run, no matter the properties specified.testCasesInclude.empty()- testCasesExclude = ['prometheus-exporter-cloud', 'prometheus-exporter-standalone']}task testDockerfileOfficial {diff --git a/solr/docker/templates/Dockerfile.body.template b/solr/docker/templates/Dockerfile.body.templateindex 4d9d537419a..ce7c292ed56 100644--- a/solr/docker/templates/Dockerfile.body.template+++ b/solr/docker/templates/Dockerfile.body.template@@ -39,7 +39,7 @@ ENV SOLR_USER="solr" \SOLR_UID="8983" \SOLR_GROUP="solr" \SOLR_GID="8983" \- PATH="/opt/solr/bin:/opt/solr/docker/scripts:/opt/solr/prometheus-exporter/bin:/opt/solr/cross-dc-manager/bin:$PATH" \+ PATH="/opt/solr/cross-dc-manager/bin:$PATH" \SOLR_INCLUDE=/etc/default/solr.in.sh \SOLR_HOME=/var/solr/data \SOLR_PID_DIR=/var/solr \@@ -66,8 +66,7 @@ RUN set -ex; \chmod 0664 /etc/default/solr.in.sh; \mkdir -p -m0770 /var/solr; \chown -R "$SOLR_USER:0" /var/solr; \- test ! -e /opt/solr/modules || ln -s /opt/solr/modules /opt/solr/contrib; \- test ! -e /opt/solr/prometheus-exporter || ln -s /opt/solr/prometheus-exporter /opt/solr/modules/prometheus-exporter;+ test ! -e /opt/solr/modules || ln -s /opt/solr/modules /opt/solr/contrib;RUN set -ex; \apt-get update; \diff --git a/solr/licenses/jackson-jq-0.0.13.jar.sha1 b/solr/licenses/jackson-jq-0.0.13.jar.sha1deleted file mode 100644index b20dc335fe4..00000000000--- a/solr/licenses/jackson-jq-0.0.13.jar.sha1+++ /dev/null@@ -1 +0,0 @@-66479e34ce27a86a924bb5f2b1556db3e117f591diff --git a/solr/licenses/simpleclient-0.16.0.jar.sha1 b/solr/licenses/simpleclient-0.16.0.jar.sha1deleted file mode 100644index 837c12a3bef..00000000000--- a/solr/licenses/simpleclient-0.16.0.jar.sha1+++ /dev/null@@ -1 +0,0 @@-28b0eaf7c500c506976da8d0fc9cad6c278e8d87diff --git a/solr/licenses/simpleclient_common-0.16.0.jar.sha1 b/solr/licenses/simpleclient_common-0.16.0.jar.sha1deleted file mode 100644index 4b9f4251f45..00000000000--- a/solr/licenses/simpleclient_common-0.16.0.jar.sha1+++ /dev/null@@ -1 +0,0 @@-a09a8c790a20309b942a9fdbfe77da22407096e6diff --git a/solr/licenses/simpleclient_httpserver-0.16.0.jar.sha1 b/solr/licenses/simpleclient_httpserver-0.16.0.jar.sha1deleted file mode 100644index c4a863ea39b..00000000000--- a/solr/licenses/simpleclient_httpserver-0.16.0.jar.sha1+++ /dev/null@@ -1 +0,0 @@-2c23f53ca22d7d8885fc4522ddcadcfe7f01a783diff --git a/solr/packaging/README.txt b/solr/packaging/README.txtindex 83cf0c3fef0..8c5a69cbd5e 100644--- a/solr/packaging/README.txt+++ b/solr/packaging/README.txt@@ -76,10 +76,6 @@ modules/Contains modules to extend the functionality of Solr.Libraries for these modules can be found under modules/*/lib-prometheus-exporter/- (Not included in the "slim" release)- Contains a separate application to monitor Solr instances and export Prometheus metrics-docker/Contains a Dockerfile to build a Docker image using the source or binary distribution.`docker/scripts` contains scripts that the Docker image uses to manage Solr.diff --git a/solr/packaging/build.gradle b/solr/packaging/build.gradleindex 913aab3a6c0..21f765322b6 100644--- a/solr/packaging/build.gradle+++ b/solr/packaging/build.gradle@@ -37,7 +37,6 @@ ext {configurations {modulesexample- prometheusExportercrossDcManagerserverdocs@@ -53,8 +52,6 @@ dependencies {modules project(path: module, configuration: "packaging")}- prometheusExporter project(path: ":solr:prometheus-exporter", configuration: "packaging")-crossDcManager project(path: ":solr:cross-dc-manager", configuration: "packaging")example project(path: ":solr:example", configuration: "packaging")@@ -142,15 +139,6 @@ distributions {into "modules"})- from(configurations.prometheusExporter, {- into "prometheus-exporter"- filesMatching([- "bin/*",- ]) { copy ->- copy.setMode(0755)- }- })-from(configurations.crossDcManager, {into "cross-dc-manager"filesMatching([diff --git a/solr/packaging/gradle.lockfile b/solr/packaging/gradle.lockfileindex 8dca76ebfe3..a947eb7ac54 100644--- a/solr/packaging/gradle.lockfile+++ b/solr/packaging/gradle.lockfile@@ -1,4 +1,4 @@# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.-empty=crossDcManager,docker,docs,example,jarValidation,modules,prometheusExporter,server,solrFullTgz,solrFullTgzSignature,solrSlimTgz,solrSlimTgzSignature+empty=crossDcManager,docker,docs,example,jarValidation,modules,server,solrFullTgz,solrFullTgzSignature,solrSlimTgz,solrSlimTgzSignaturediff --git a/solr/packaging/test/bats_helper.bash b/solr/packaging/test/bats_helper.bashindex ac7c8a6fdf3..23c3629bea6 100644--- a/solr/packaging/test/bats_helper.bash+++ b/solr/packaging/test/bats_helper.bash@@ -33,7 +33,7 @@ common_setup() {load "${BATS_LIB_PREFIX}/bats-assert/load.bash"load "${BATS_LIB_PREFIX}/bats-file/load.bash"- PATH="${SOLR_TIP:-.}/bin:${SOLR_TIP:-.}/prometheus-exporter/bin:$PATH"+ PATH="${SOLR_TIP:-.}/bin:$PATH"export SOLR_ULIMIT_CHECKS=false}diff --git a/solr/prometheus-exporter/README.md b/solr/prometheus-exporter/README.mddeleted file mode 100644index c1c9b2f3f2d..00000000000--- a/solr/prometheus-exporter/README.md+++ /dev/null@@ -1,40 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--Welcome to Apache Solr Prometheus Exporter-========--Apache Solr Prometheus Exporter (solr-exporter) provides a way for you to expose metrics for Solr to Prometheus.--# Getting Started With Solr Prometheus Exporter--For information on how to get started with solr-exporter please see:- * [Solr Reference Guide's section on Monitoring Solr with Prometheus and Grafana](https://solr.apache.org/guide/solr/latest/deployment-guide/monitoring-with-prometheus-and-grafana.html)--# Docker--The Solr Prometheus Exporter can be run via the official or local Solr docker image.-Please refer to the `docker` directory's `README.md` for information on building the image-and the [Solr Reference Guide](https://solr.apache.org/guide/solr/latest/deployment-guide/solr-in-docker.html) for information on using the image.--The `solr-exporter` script is available on the path by default in the Docker image, so the Prometheus Exporter can be run using:--```bash-docker run <image> solr-exporter-```--The environment variables and command line arguments that the Prometheus Exporter accepts can be used the same way in the Docker image.diff --git a/solr/prometheus-exporter/bin/solr-exporter b/solr/prometheus-exporter/bin/solr-exporterdeleted file mode 100755index 20377c4b171..00000000000--- a/solr/prometheus-exporter/bin/solr-exporter+++ /dev/null@@ -1,152 +0,0 @@-#!/usr/bin/env bash-#-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-#--BASEDIR=`dirname $0`/..-BASEDIR=`(cd "$BASEDIR"; pwd)`--# OS specific support. $var _must_ be set to either true or false.-cygwin=false;-darwin=false;-case "`uname`" in- CYGWIN*) cygwin=true ;;- Darwin*) darwin=true- if [ -z "$JAVA_VERSION" ] ; then- JAVA_VERSION="CurrentJDK"- else- echo "Using Java version: $JAVA_VERSION"- fi- if [ -z "$JAVA_HOME" ] ; then- JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home- fi- ;;-esac--if [ -z "$JAVA_HOME" ] ; then- if [ -r /etc/gentoo-release ] ; then- JAVA_HOME=`java-config --jre-home`- fi-fi--# For Cygwin, ensure paths are in UNIX format before anything is touched-if $cygwin ; then- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`- [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`-fi--# If a specific java binary isn't specified search for the standard 'java' binary-if [ -z "$JAVACMD" ] ; then- if [ -n "$JAVA_HOME" ] ; then- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then- # IBM's JDK on AIX uses strange locations for the executables- JAVACMD="$JAVA_HOME/jre/sh/java"- else- JAVACMD="$JAVA_HOME/bin/java"- fi- else- JAVACMD=`which java`- fi-fi--if [ ! -x "$JAVACMD" ] ; then- echo "Error: JAVA_HOME is not defined correctly."- echo " We cannot execute $JAVACMD"- exit 1-fi--if [ -z "$REPO" ]-then- REPO="$BASEDIR"/lib-fi--CLASSPATH=$CLASSPATH_PREFIX:"$BASEDIR/conf":"$REPO/*":"$BASEDIR/../server/solr-webapp/webapp/WEB-INF/lib/*":"$BASEDIR/../server/lib/ext/*"--# Memory settings-JAVA_MEM_OPTS=-if [ -z "$JAVA_HEAP" ] && [ -n "$JAVA_MEM" ]; then- JAVA_MEM_OPTS="$JAVA_MEM"-else- JAVA_HEAP="${JAVA_HEAP:-512m}"- JAVA_MEM_OPTS="-Xms$JAVA_HEAP -Xmx$JAVA_HEAP"-fi--# define default GC_TUNE-if [ -z ${GC_TUNE+x} ]; then- GC_TUNE='-XX:+UseG1GC'-else- GC_TUNE="$GC_TUNE"-fi--# For Cygwin, switch paths to Windows format before running java-if $cygwin; then- [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --windows "$CLASSPATH"`- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`- [ -n "$HOME" ] && HOME=`cygpath --path --windows "$HOME"`- [ -n "$BASEDIR" ] && BASEDIR=`cygpath --path --windows "$BASEDIR"`- [ -n "$REPO" ] && REPO=`cygpath --path --windows "$REPO"`-fi--# Convert Environment Variables to Command Line Options-EXPORTER_ARGS=()--if [[ -n "$CONFIG_FILE" ]]; then- EXPORTER_ARGS+=(--config-file "$CONFIG_FILE")-fi--if [[ -n "$PORT" ]]; then- EXPORTER_ARGS+=(-p "$PORT")-fi--if [[ -n "$SCRAPE_INTERVAL" ]]; then- EXPORTER_ARGS+=(--scrape-interval "$SCRAPE_INTERVAL")-fi--if [[ -n "$NUM_THREADS" ]]; then- EXPORTER_ARGS+=(--num-threads "$NUM_THREADS")-fi--if [[ -n "$ZK_HOST" ]]; then- EXPORTER_ARGS+=(--zk-host "$ZK_HOST")-elif [[ -n "$SOLR_URL" ]]; then- EXPORTER_ARGS+=(--solr-url "$SOLR_URL")-fi--if [[ -n "$CLUSTER_ID" ]]; then- EXPORTER_ARGS+=(--cluster-id "$CLUSTER_ID")-fi--if [[ -n "$CREDENTIALS" ]]; then- EXPORTER_ARGS+=(--credentials "$CREDENTIALS")-fi--if [[ -n "$SSL_ENABLED" ]]; then- EXPORTER_ARGS+=(--ssl-enabled "$SSL_ENABLED")-fi--exec "$JAVACMD" \- $JAVA_MEM_OPTS \- $GC_TUNE \- $JAVA_OPTS \- $ZK_CREDS_AND_ACLS \- -classpath "$CLASSPATH" \- -Dapp.name="solr-exporter" \- -Dapp.pid="$$" \- -Dapp.repo="$REPO" \- -Dbasedir="$BASEDIR" \- org.apache.solr.prometheus.exporter.SolrExporter \- "${EXPORTER_ARGS[@]}" \- "$@"diff --git a/solr/prometheus-exporter/bin/solr-exporter.cmd b/solr/prometheus-exporter/bin/solr-exporter.cmddeleted file mode 100644index c55133db616..00000000000--- a/solr/prometheus-exporter/bin/solr-exporter.cmd+++ /dev/null@@ -1,119 +0,0 @@-@REM-@REM Licensed to the Apache Software Foundation (ASF) under one or more-@REM contributor license agreements. See the NOTICE file distributed with-@REM this work for additional information regarding copyright ownership.-@REM The ASF licenses this file to You under the Apache License, Version 2.0-@REM (the "License"); you may not use this file except in compliance with-@REM the License. You may obtain a copy of the License at-@REM-@REM http://www.apache.org/licenses/LICENSE-2.0-@REM-@REM Unless required by applicable law or agreed to in writing, software-@REM distributed under the License is distributed on an "AS IS" BASIS,-@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-@REM See the License for the specific language governing permissions and-@REM limitations under the License.--@echo off--set ERROR_CODE=0--:init-@REM Decide how to startup depending on the version of windows--@REM -- Win98ME-if NOT "%OS%"=="Windows_NT" goto Win9xArg--@REM set local scope for the variables with windows NT shell-if "%OS%"=="Windows_NT" @setlocal--@REM -- 4NT shell-if "%eval[2+2]" == "4" goto 4NTArgs--@REM -- Regular WinNT shell-set CMD_LINE_ARGS=%*-goto WinNTGetScriptDir--@REM The 4NT Shell from jp software-:4NTArgs-set CMD_LINE_ARGS=%$-goto WinNTGetScriptDir--:Win9xArg-@REM Slurp the command line arguments. This loop allows for an unlimited number-@REM of agruments (up to the command line limit, anyway).-set CMD_LINE_ARGS=-:Win9xApp-if %1a==a goto Win9xGetScriptDir-set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1-shift-goto Win9xApp--:Win9xGetScriptDir-set SAVEDIR=%CD%-%0\-cd %0\..\..-set BASEDIR=%CD%-cd %SAVEDIR%-set SAVE_DIR=-goto repoSetup--:WinNTGetScriptDir-set BASEDIR=%~dp0..--:repoSetup--IF NOT "%JAVA_HEAP%"=="" set JAVA_MEM=-Xms%JAVA_HEAP% -Xmx%JAVA_HEAP%-IF "%JAVA_MEM%"=="" set JAVA_MEM=-Xms512m -Xmx512m-IF "%GC_TUNE%"=="" set GC_TUNE=-XX:+UseG1GC--if "%JAVACMD%"=="" set JAVACMD=java--if "%REPO%"=="" set REPO=%BASEDIR%\lib--set CLASSPATH=%REPO%\*;%BASEDIR%\conf;%BASEDIR%\..\server\lib\ext\*;%BASEDIR%\..\server\solr-webapp\webapp\WEB-INF\lib\*--@REM Convert Environment Variables to Command Line Options-set EXPORTER_ARGS=--IF NOT "%CONFIG_FILE%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --config-file %CONFIG_FILE%-IF NOT "%PORT%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% -p %PORT%-IF NOT "%SCRAPE_INTERVAL%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --scrape-interval %SCRAPE_INTERVAL%-IF NOT "%NUM_THREADS%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --num-threads %NUM_THREADS%-IF NOT "%ZK_HOST%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --zk-host %ZK_HOST%-IF NOT "%SOLR_URL%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --solr-url %SOLR_URL%-IF NOT "%CLUSTER_ID%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --cluster-id "%CLUSTER_ID%"-IF NOT "%CREDENTIALS%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --credentials "%CREDENTIALS%"-IF NOT "%SSL_ENABLED%"=="" set EXPORTER_ARGS=%EXPORTER_ARGS% --ssl-enabled "%SSL_ENABLED%"-goto endInit--@REM Reaching here means variables are defined and arguments have been captured-:endInit--%JAVACMD% %JAVA_MEM% %GC_TUNE% %JAVA_OPTS% %ZK_CREDS_AND_ACLS% -classpath "%CLASSPATH_PREFIX%;%CLASSPATH%" -Dapp.name="solr-exporter" -Dapp.repo="%REPO%" -Dbasedir="%BASEDIR%" org.apache.solr.prometheus.exporter.SolrExporter %EXPORTER_ARGS% %CMD_LINE_ARGS%-if ERRORLEVEL 1 goto error-goto end--:error-if "%OS%"=="Windows_NT" @endlocal-set ERROR_CODE=1--:end-@REM set local scope for the variables with windows NT shell-if "%OS%"=="Windows_NT" goto endNT--@REM For old DOS remove the set variables from ENV - we assume they were not set-@REM before we started - at least we don't leave any baggage around-set CMD_LINE_ARGS=-goto postExec--:endNT-@endlocal--:postExec--if "%FORCE_EXIT_ON_ERROR%" == "on" (- if %ERROR_CODE% NEQ 0 exit %ERROR_CODE%-)--exit /B %ERROR_CODE%diff --git a/solr/prometheus-exporter/conf/grafana-solr-dashboard.json b/solr/prometheus-exporter/conf/grafana-solr-dashboard.jsondeleted file mode 100644index 5a4db0cf377..00000000000--- a/solr/prometheus-exporter/conf/grafana-solr-dashboard.json+++ /dev/null@@ -1,7864 +0,0 @@-{- "__inputs": [- {- "name": "DS_PROMETHEUS",- "label": "Prometheus",- "description": "",- "type": "datasource",- "pluginId": "prometheus",- "pluginName": "Prometheus"- }- ],- "__requires": [- {- "type": "panel",- "id": "gauge",- "name": "Gauge",- "version": ""- },- {- "type": "grafana",- "id": "grafana",- "name": "Grafana",- "version": "7.3.0"- },- {- "type": "panel",- "id": "graph",- "name": "Graph",- "version": ""- },- {- "type": "datasource",- "id": "prometheus",- "name": "Prometheus",- "version": "1.0.0"- },- {- "type": "panel",- "id": "stat",- "name": "Stat",- "version": ""- }- ],- "annotations": {- "list": [- {- "builtIn": 1,- "datasource": "-- Grafana --",- "enable": true,- "hide": true,- "iconColor": "rgba(0, 211, 255, 1)",- "name": "Annotations & Alerts",- "type": "dashboard"- }- ]- },- "description": "Default dashboard for Solr Exporter",- "editable": true,- "gnetId": 12456,- "graphTooltip": 0,- "id": null,- "iteration": 1619091548109,- "links": [- {- "icon": "external link",- "tags": [],- "title": "Solr project",- "type": "link",- "url": "https://solr.apache.org/"- },- {- "icon": "external link",- "tags": [],- "title": "Solr Prometheus documentation",- "type": "link",- "url": "https://solr.apache.org/guide/solr/latest/deployment-guide/monitoring-with-prometheus-and-grafana.html"- }- ],- "panels": [- {- "collapsed": false,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 0- },- "id": 64,- "panels": [],- "title": "Solr Cluster",- "type": "row"- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {- "align": null,- "filterable": false- },- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "fill": 0,- "fillGradient": 0,- "gridPos": {- "h": 8,- "w": 6,- "x": 0,- "y": 1- },- "hiddenSeries": false,- "id": 62,- "legend": {- "alignAsTable": false,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 2,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [- {- "alias": "Total nodes",- "lines": true- },- {- "alias": "Live nodes",- "bars": true,- "color": "#37872D",- "lines": false- }- ],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_collections_live_nodes{cluster_id=~\"$cluster_id\"}",- "format": "time_series",- "instant": false,- "interval": "",- "legendFormat": "Live nodes ({{cluster_id}})",- "refId": "A"- },- {- "expr": "count(count by (node_name) (solr_collections_replica_state{cluster_id=~\"$cluster_id\"})) < solr_collections_live_nodes{cluster_id=~\"$cluster_id\"} or solr_collections_live_nodes{cluster_id=~\"$cluster_id\"}",- "hide": false,- "interval": "",- "intervalFactor": 1,- "legendFormat": "Total nodes ({{cluster_id}})",- "refId": "B"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Number of live nodes",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "decimals": 0,- "format": "short",- "label": "",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "Prometheus",- "description": "",- "fieldConfig": {- "defaults": {- "unit": "short"- },- "overrides": []- },- "fill": 0,- "fillGradient": 0,- "gridPos": {- "h": 8,- "w": 6,- "x": 6,- "y": 1- },- "hiddenSeries": false,- "id": 221,- "legend": {- "alignAsTable": false,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 2,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.5.4",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [- {- "$$hashKey": "object:395",- "alias": "Ensemble size",- "lines": true- },- {- "$$hashKey": "object:396",- "alias": "Healthy nodes",- "bars": true,- "color": "#5794F2",- "lines": false- }- ],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "count(solr_zookeeper_nodestatus{cluster_id=~\"$cluster_id\"} == 1)",- "format": "time_series",- "instant": false,- "interval": "",- "legendFormat": "Healthy nodes ({{cluster_id}})",- "refId": "A"- },- {- "expr": "solr_zookeeper_ensemble_size{cluster_id=~\"$cluster_id\"}",- "hide": false,- "interval": "",- "intervalFactor": 1,- "legendFormat": "Ensemble size ({{cluster_id}})",- "refId": "B"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Zookeepers",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "$$hashKey": "object:413",- "decimals": 0,- "format": "short",- "label": "",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "$$hashKey": "object:414",- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": true,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 0,- "fillGradient": 0,- "gridPos": {- "h": 8,- "w": 12,- "x": 12,- "y": 1- },- "hiddenSeries": false,- "id": 68,- "legend": {- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": false,- "linewidth": 1,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": true,- "steppedLine": false,- "targets": [- {- "expr": "solr_collections_shard_leader{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "interval": "",- "legendFormat": "{{cluster_id}} {{collection}} {{shard}} {{replica}} ({{node_name}})",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Shard leaders",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "transformations": [],- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "decimals": 0,- "format": "short",- "label": "Leaders",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "datasource": "${DS_PROMETHEUS}",- "description": "",- "fieldConfig": {- "defaults": {- "custom": {},- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "gridPos": {- "h": 8,- "w": 3,- "x": 0,- "y": 9- },- "id": 74,- "options": {- "colorMode": "value",- "graphMode": "none",- "justifyMode": "auto",- "orientation": "auto",- "reduceOptions": {- "calcs": [- "lastNotNull"- ],- "fields": "",- "values": false- },- "textMode": "auto"- },- "pluginVersion": "7.3.0",- "targets": [- {- "expr": "count(count by (collection) (solr_collections_replica_state{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}))",- "interval": "",- "legendFormat": "",- "refId": "A"- }- ],- "timeFrom": null,- "timeShift": null,- "title": "Number of collections",- "type": "stat"- },- {- "datasource": "${DS_PROMETHEUS}",- "description": "",- "fieldConfig": {- "defaults": {- "custom": {},- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "gridPos": {- "h": 8,- "w": 9,- "x": 3,- "y": 9- },- "id": 70,- "options": {- "orientation": "auto",- "reduceOptions": {- "calcs": [- "lastNotNull"- ],- "fields": "",- "values": false- },- "showThresholdLabels": false,- "showThresholdMarkers": true- },- "pluginVersion": "7.3.0",- "targets": [- {- "expr": "count(solr_collections_replica_state{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"})",- "interval": "",- "legendFormat": "Total replicas",- "refId": "B"- },- {- "expr": "count(solr_collections_replica_state{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"} == 1) OR on() vector(0)",- "interval": "",- "legendFormat": "Active",- "refId": "D"- },- {- "expr": "count(solr_collections_replica_state{state=\"down\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}) OR on() vector(0)",- "interval": "",- "legendFormat": "Down",- "refId": "A"- },- {- "expr": "count(solr_collections_replica_state{state=\"recovering\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}) OR on() vector(0)",- "interval": "",- "legendFormat": "Recovering",- "refId": "C"- },- {- "expr": "count(solr_collections_replica_state{state=\"recovery_failed\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}) OR on() vector(0)",- "interval": "",- "legendFormat": "Recovery failed",- "refId": "E"- }- ],- "timeFrom": null,- "timeShift": null,- "title": "Current replica state",- "type": "gauge"- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {- "align": null,- "filterable": false- },- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 8,- "w": 12,- "x": 12,- "y": 9- },- "hiddenSeries": false,- "id": 72,- "legend": {- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": true,- "steppedLine": false,- "targets": [- {- "expr": "1 - solr_collections_replica_state{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "interval": "",- "legendFormat": "{{cluster_id}} {{collection}} {{shard}} {{replica}} ({{node_name}})={{state}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Replica state history",- "description": "Active replicas have value 0. Non-active replicas will show stacked in the graph.",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "decimals": 0,- "format": "short",- "label": "Non-active states",- "logBase": 1,- "max": null,- "min": 0,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 17- },- "id": 211,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "description": "Distributed QPS 1-min rate aggregated by collection, roughly the current QPS across all nodes per collection",- "fieldConfig": {- "defaults": {- "custom": {},- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 18- },- "hiddenSeries": false,- "id": 201,- "legend": {- "avg": false,- "current": true,- "hideEmpty": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "sum by (cluster_id, collection) (solr_metrics_core_query_1minRate{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"})",- "interval": "",- "legendFormat": "{{collection}} ({{cluster_id}})",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Total QPS (by collection)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": "qps",- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "description": "Distributed QPS 1-min rate aggregated by base_url (Solr node)",- "fieldConfig": {- "defaults": {- "custom": {},- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 18- },- "hiddenSeries": false,- "id": 202,- "legend": {- "avg": false,- "current": true,- "hideEmpty": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "sum by (base_url) (solr_metrics_core_query_1minRate{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"})",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}",- "refId": "A"- }- ],- "thresholds": [- {- "colorMode": "critical",- "fill": true,- "line": true,- "op": "gt",- "yaxis": "left"- }- ],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Total QPS (by node)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 18- },- "hiddenSeries": false,- "id": 206,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_p95_ms{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Distributed Query Time per Core (p95 ms)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 25- },- "hiddenSeries": false,- "id": 204,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_5minRate{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Distributed QPS per Core (5-min rate)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 25- },- "hiddenSeries": false,- "id": 205,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_p99_ms{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Distributed Query Time per Core (p99 ms)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": "ms",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 25- },- "hiddenSeries": false,- "id": 203,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_1minRate{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "instant": false,- "interval": "",- "intervalFactor": 3,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Distributed QPS per Core (1-min rate)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": "qps",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 32- },- "hiddenSeries": false,- "id": 207,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_p75_ms{internal=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Distributed Query Time per Core (p75 ms)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "description": "Helps identify if a core is receiving more traffic than other cores, possibly indicating unbalanced load.",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 32- },- "hiddenSeries": false,- "id": 218,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_query_requests_total{internal!=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}[1m])",- "format": "time_series",- "instant": false,- "interval": "",- "intervalFactor": 3,- "legendFormat": "{{base_url}}/{{core}}{{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Local Query Count per Core",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": "qps",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 32- },- "hiddenSeries": false,- "id": 219,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_1minRate{internal!=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "instant": false,- "interval": "",- "intervalFactor": 3,- "legendFormat": "{{base_url}}/{{core}}{{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Local QPS per Core (1-min rate)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": "qps",- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 39- },- "hiddenSeries": false,- "id": 217,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "connected",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_p95_ms{internal!=\"false\",cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 3,- "legendFormat": "{{base_url}}/{{core}}{{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Local Query Time per Core (p95 ms)",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 39- },- "hiddenSeries": false,- "id": 210,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_client_errors_1minRate{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Query Client Errors per Core (1-min rate)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 39- },- "hiddenSeries": false,- "id": 209,- "legend": {- "alignAsTable": true,- "avg": false,- "current": true,- "hideEmpty": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_query_errors_1minRate{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\",searchHandler=~\"$searchHandler\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{core}} {{searchHandler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Query Errors per Core (1-min rate)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "Query Metrics",- "type": "row"- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 18- },- "id": 212,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 19- },- "hiddenSeries": false,- "id": 2,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jetty_requests_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{method}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Requests",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "description": "",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 19- },- "hiddenSeries": false,- "id": 1,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jetty_response_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{status}}",- "refId": "A",- "step": 40- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Response",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 26- },- "hiddenSeries": false,- "id": 55,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jetty_dispatches_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Dispatches",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "Jetty Metrics",- "type": "row"- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 19- },- "id": 213,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 20- },- "hiddenSeries": false,- "id": 3,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_buffers{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{pool}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Buffers",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 20- },- "hiddenSeries": false,- "id": 4,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_buffers_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{pool}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Buffer Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 27- },- "hiddenSeries": false,- "id": 5,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jvm_gc_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "GC Count",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 27- },- "hiddenSeries": false,- "id": 6,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jvm_gc_seconds_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "GC Time",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "decimals": null,- "format": "s",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 34- },- "hiddenSeries": false,- "id": 7,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_memory_heap_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Heap Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 34- },- "hiddenSeries": false,- "id": 8,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_memory_non_heap_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Non-Heap Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 41- },- "hiddenSeries": false,- "id": 9,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_memory_pools_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{space}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Pool Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 41- },- "hiddenSeries": false,- "id": 10,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_memory_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Memory Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 48- },- "hiddenSeries": false,- "id": 16,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_threads{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Threads",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "JVM Metrics",- "type": "row"- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 20- },- "id": 214,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 21- },- "hiddenSeries": false,- "id": 11,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_os_memory_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Memory Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 21- },- "hiddenSeries": false,- "id": 12,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_os_file_descriptors{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "File Descriptors",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 28- },- "hiddenSeries": false,- "id": 13,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_os_cpu_load{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "CPU Load",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "percentunit",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "unit": "s"- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 28- },- "hiddenSeries": false,- "id": 14,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_jvm_os_cpu_time_seconds{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "CPU Time",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 35- },- "hiddenSeries": false,- "id": 15,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_jvm_os_load_average{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Load Average",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "OS Metrics",- "type": "row"- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 21- },- "id": 215,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 22- },- "hiddenSeries": false,- "id": 19,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_requests_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Requests",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "unit": "s"- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 22- },- "hiddenSeries": false,- "id": 22,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_node_time_seconds_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Request Time",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 29- },- "hiddenSeries": false,- "id": 17,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_node_client_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Client Errors",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 29- },- "hiddenSeries": false,- "id": 20,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_node_server_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Server Errors",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 36- },- "hiddenSeries": false,- "id": 18,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_node_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Errors",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 36- },- "hiddenSeries": false,- "id": 21,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_node_timeouts_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Timeouts",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 43- },- "hiddenSeries": false,- "id": 23,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_cores{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Cores",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 43- },- "hiddenSeries": false,- "id": 24,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_core_root_fs_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Core Root File System",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 50- },- "hiddenSeries": false,- "id": 25,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_thread_pool_completed_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{handler}} {{executor}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Thread Pool Completed",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 50- },- "hiddenSeries": false,- "id": 26,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_thread_pool_submitted_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{handler}} {{executor}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Thread Pool Submitted",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 57- },- "hiddenSeries": false,- "id": 27,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_thread_pool_running{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{handler}} {{executor}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Thread Pool Running",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 16,- "x": 0,- "y": 64- },- "hiddenSeries": false,- "id": 28,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_node_connections{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}} {{handler}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Connections",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "description": "Number of leaders on each node",- "fieldConfig": {- "defaults": {- "custom": {},- "mappings": [],- "thresholds": {- "mode": "absolute",- "steps": [- {- "color": "green",- "value": null- },- {- "color": "red",- "value": 80- }- ]- }- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 64- },- "hiddenSeries": false,- "id": 220,- "legend": {- "avg": false,- "current": true,- "hideEmpty": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": true- },- "lines": true,- "linewidth": 1,- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 2,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "sum by (base_url) (solr_collections_shard_leader{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"})",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}",- "refId": "A"- }- ],- "thresholds": [- {- "colorMode": "critical",- "fill": true,- "line": true,- "op": "gt",- "yaxis": "left"- }- ],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Leader Count (by node)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "Node Metrics",- "type": "row"- },- {- "collapsed": true,- "datasource": "${DS_PROMETHEUS}",- "gridPos": {- "h": 1,- "w": 24,- "x": 0,- "y": 22- },- "id": 216,- "panels": [- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 23- },- "hiddenSeries": false,- "id": 31,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_requests_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Requests",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "unit": "s"- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 23- },- "hiddenSeries": false,- "id": 34,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_time_seconds_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Request Time",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 30- },- "hiddenSeries": false,- "id": 29,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_client_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Client Errors",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 30- },- "hiddenSeries": false,- "id": 32,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_server_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Server Errors",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 37- },- "hiddenSeries": false,- "id": 30,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Errors",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 37- },- "hiddenSeries": false,- "id": 33,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_timeouts_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}{{handler}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Timeouts",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 44- },- "hiddenSeries": false,- "id": 35,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_searcher_cache_ratio{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}} {{type}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Searcher Cache Hit Ratio",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 44- },- "hiddenSeries": false,- "id": 36,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_searcher_cache{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}} {{type}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Searcher Cache",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 51- },- "hiddenSeries": false,- "id": 37,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_searcher_warmup_time_seconds{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}} {{type}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Searcher Warm Up Time",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 51- },- "hiddenSeries": false,- "id": 38,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_searcher_cumulative_cache_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}} {{type}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Searcher Cumulative Cache",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 58- },- "hiddenSeries": false,- "id": 39,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_fs_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "File System",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 58- },- "hiddenSeries": false,- "id": 40,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_index_size_bytes{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Index Size",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "decbytes",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 65- },- "hiddenSeries": false,- "id": 41,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_searcher_documents{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}} {{item}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Searcher Documents",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 72- },- "hiddenSeries": false,- "id": 42,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "rightSide": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_adds_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Adds (cumulative)",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 72- },- "hiddenSeries": false,- "id": 46,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "solr_metrics_core_update_handler_pending_docs{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Pending Docs",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 79- },- "hiddenSeries": false,- "id": 43,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_deletes_by_id_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Deletes By ID",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 79- },- "hiddenSeries": false,- "id": 44,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_deletes_by_query_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Deletes By Query",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 79- },- "hiddenSeries": false,- "id": 47,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_expunge_deletes_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Expunge Deletes",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 86- },- "hiddenSeries": false,- "id": 48,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_merges_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Merges",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 86- },- "hiddenSeries": false,- "id": 52,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_splits_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Splits",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 0,- "y": 93- },- "hiddenSeries": false,- "id": 49,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_optimizes_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Optimizes",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 12,- "x": 12,- "y": 93- },- "hiddenSeries": false,- "id": 50,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_rollbacks_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Rollbacks",- "tooltip": {- "shared": true,- "sort": 0,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 0,- "y": 100- },- "hiddenSeries": false,- "id": 51,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_soft_auto_commits_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Soft Auto Commits",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 8,- "y": 100- },- "hiddenSeries": false,- "id": 53,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_auto_commits_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Auto Commits",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 8,- "x": 16,- "y": 100- },- "hiddenSeries": false,- "id": 54,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_commits_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Commits",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- },- {- "aliasColors": {},- "bars": false,- "dashLength": 10,- "dashes": false,- "datasource": "${DS_PROMETHEUS}",- "fieldConfig": {- "defaults": {- "custom": {}- },- "overrides": []- },- "fill": 1,- "fillGradient": 0,- "gridPos": {- "h": 7,- "w": 24,- "x": 0,- "y": 107- },- "hiddenSeries": false,- "id": 45,- "legend": {- "alignAsTable": true,- "avg": false,- "current": false,- "hideEmpty": true,- "hideZero": true,- "max": false,- "min": false,- "rightSide": true,- "show": true,- "total": false,- "values": false- },- "lines": true,- "linewidth": 1,- "links": [],- "nullPointMode": "null",- "options": {- "alertThreshold": true- },- "percentage": false,- "pluginVersion": "7.3.0",- "pointradius": 5,- "points": false,- "renderer": "flot",- "seriesOverrides": [],- "spaceLength": 10,- "stack": false,- "steppedLine": false,- "targets": [- {- "expr": "increase(solr_metrics_core_update_handler_errors_total{cluster_id=~\"$cluster_id\",base_url=~\"$base_url\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\",core=~\"$core\"}[1m])",- "format": "time_series",- "interval": "",- "intervalFactor": 2,- "legendFormat": "{{base_url}}/{{core}}",- "refId": "A"- }- ],- "thresholds": [],- "timeFrom": null,- "timeRegions": [],- "timeShift": null,- "title": "Update Handler Errors",- "tooltip": {- "shared": true,- "sort": 2,- "value_type": "individual"- },- "type": "graph",- "xaxis": {- "buckets": null,- "mode": "time",- "name": null,- "show": true,- "values": []- },- "yaxes": [- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": "0",- "show": true- },- {- "format": "short",- "label": null,- "logBase": 1,- "max": null,- "min": null,- "show": true- }- ],- "yaxis": {- "align": false,- "alignLevel": null- }- }- ],- "repeat": null,- "title": "Core Metrics",- "type": "row"- }- ],- "refresh": "30s",- "schemaVersion": 26,- "style": "dark",- "tags": [],- "templating": {- "list": [- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "cluster_id",- "options": [],- "query": "label_values(solr_ping{cluster_id=~\".+\"},cluster_id)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "zk_host",- "options": [],- "query": "label_values(solr_ping{cluster_id=~\"$cluster_id\",zk_host=~\".+\"},zk_host)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "base_url",- "options": [],- "query": "label_values(solr_ping{cluster_id=~\"$cluster_id\",base_url=~\".+\"},base_url)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "collection",- "options": [],- "query": "label_values(solr_collections_shard_state{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\".+\"},collection)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "shard",- "options": [],- "query": "label_values(solr_collections_shard_state{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\"$collection\",shard=~\".+\"},shard)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "replica",- "options": [],- "query": "label_values(solr_collections_replica_state{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\"$collection\",shard=~\"$shard\",replica=~\".+\"},replica)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "core",- "options": [],- "query": "label_values(solr_collections_replica_state{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\"},core)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- },- {- "allValue": ".*",- "current": {},- "datasource": "${DS_PROMETHEUS}",- "definition": "label_values(solr_metrics_core_query_errors_1minRate{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\"},searchHandler)",- "error": null,- "hide": 0,- "includeAll": true,- "label": null,- "multi": true,- "name": "searchHandler",- "options": [],- "query": "label_values(solr_metrics_core_query_errors_1minRate{cluster_id=~\"$cluster_id\",zk_host=~\"$zk_host\",collection=~\"$collection\",shard=~\"$shard\",replica=~\"$replica\"},searchHandler)",- "refresh": 1,- "regex": "/(.+)/",- "skipUrlSync": false,- "sort": 1,- "tagValuesQuery": "",- "tags": [],- "tagsQuery": "",- "type": "query",- "useTags": false- }- ]- },- "time": {- "from": "now-15m",- "to": "now"- },- "timepicker": {- "refresh_intervals": [- "5s",- "10s",- "30s",- "1m",- "5m",- "15m",- "30m",- "1h",- "2h",- "1d"- ],- "time_options": [- "5m",- "15m",- "1h",- "6h",- "12h",- "24h",- "2d",- "7d",- "30d"- ]- },- "timezone": "browser",- "title": "Solr Dashboard",- "uid": "yt5eXHbMz5",- "version": 2-}diff --git a/solr/prometheus-exporter/conf/log4j2.xml b/solr/prometheus-exporter/conf/log4j2.xmldeleted file mode 100644index 47f533f1054..00000000000--- a/solr/prometheus-exporter/conf/log4j2.xml+++ /dev/null@@ -1,40 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.- -->--<!-- Use this file for logging exlusively to the console, useful for- some development tasks. Should not be used for production -->-<!-- Default production configuration is asnychronous logging -->-<Configuration>- <Appenders>- <Console name="STDERR" target="SYSTEM_ERR">- <PatternLayout>- <Pattern>- %maxLen{%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %c; %m%notEmpty{ =>%ex{short}}}{10240}%n- </Pattern>- </PatternLayout>- </Console>- </Appenders>- <Loggers>- <!-- Use <AsyncLogger/<AsyncRoot and <Logger/<Root for asynchronous logging or synchonous logging respectively -->- <AsyncRoot level="INFO">- <AppenderRef ref="STDERR"/>- </AsyncRoot>- </Loggers>-</Configuration>--diff --git a/solr/prometheus-exporter/conf/solr-exporter-config.xml b/solr/prometheus-exporter/conf/solr-exporter-config.xmldeleted file mode 100644index 275ab46f4f1..00000000000--- a/solr/prometheus-exporter/conf/solr-exporter-config.xml+++ /dev/null@@ -1,1134 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>-- <!--- Templates to help reduce jq boilerplate used by many metrics in this config;- mainly intended for metrics that don't require a bunch of jq magic to work and are mostly boilerplate.-- A regex with named groups is used to match template references to template + vars using the basic pattern:-- $jq:<TEMPLATE>( <UNIQUE>, <KEYSELECTOR>, <METRIC>, <TYPE> )-- For instance,-- $jq:core(requests_total, endswith(".requestTimes"), count, COUNTER)-- TEMPLATE = core- UNIQUE = requests_total (unique suffix for this metric, results in a metric named "solr_metrics_core_requests_total")- KEYSELECTOR = endswith(".requestTimes") (filter to select the specific key for this metric)- METRIC = count- TYPE = COUNTER-- Some templates may have a default type, so you can omit that from your template reference, such as:-- $jq:core(requests_total, endswith(".requestTimes"), count)-- Uses the defaultType=COUNTER as many uses of the core template are counts.-- If a template reference omits the metric, then the unique suffix is used, for instance:-- $jq:core-query(1minRate, endswith(".requestTimes"))-- Creates a GAUGE metric (default type) named "solr_metrics_core_query_1minRate" using the 1minRate value from the selected JSON object.-- Add templates as needed, three metrics using the same structure feels about right as the threshold for creating a new template.- -->- <jq-templates>- <template name="core-query" defaultType="GAUGE">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | {KEYSELECTOR} | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] | rtrimstr("]") | split("[") | .[0] as $handler | .[1] // "false" as $internal |- select($category | startswith("QUERY")) |- select($handler | startswith("/")) |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_query_{UNIQUE}",- type: "{TYPE}",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "internal", "core"],- label_values: [$category, $handler, $internal, $core],- value: $value- }- else- {- name: "solr_metrics_core_query_{UNIQUE}",- type: "{TYPE}",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "internal", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $internal, $core, $collection, $shard, $replica],- value: $value- }- end- </template>- <template name="core" defaultType="COUNTER">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | {KEYSELECTOR} as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] | rtrimstr("]") | split("[") | .[0] as $handler | .[1] // "false" as $internal |- select($handler | startswith("/")) |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "internal", "core"],- label_values: [$category, $handler, $internal, $core],- value: $value- }- else- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "internal", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $internal, $core, $collection, $shard, $replica],- value: $value- }- end- </template>- <template name="update-handler" defaultType="COUNTER">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | {KEYSELECTOR} as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </template>- <template name="node" defaultType="COUNTER">- .metrics["solr.node"] | to_entries | .[] | {KEYSELECTOR} as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- {METRIC} as $value |- {- name : "solr_metrics_node_{UNIQUE}",- type : "{TYPE}",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </template>- <template name="cache-searcher" defaultType="GAUGE">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | {KEYSELECTOR} as $target |- $target.key as $item |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </template>- <template name="node-thread-pool" defaultType="COUNTER">- .metrics["solr.node"] | to_entries | .[] | select(.key | contains(".threadPool.")) | {KEYSELECTOR} as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- (if $label_len >= 5 then $key_items[1] else "" end) as $handler |- (if $label_len >= 5 then $key_items[3] else $key_items[2] end) as $executor |- {METRIC} as $value |- {- name : "solr_metrics_node_thread_pool_{UNIQUE}",- type : "{TYPE}",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "executor"],- label_values : [$category, $handler, $executor],- value : $value- }- </template>- <template name="jvm-item" defaultType="GAUGE">- .metrics["solr.jvm"] | to_entries | .[] | {KEYSELECTOR} as $object |- $object.key | split(".") | last as $item |- {METRIC} as $value |- {- name : "solr_metrics_jvm_{UNIQUE}",- type : "{TYPE}",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </template>- </jq-templates>-- <rules>-- <ping>- <lst name="request">- <lst name="query">- <str name="path">/admin/ping</str>- </lst>- <arr name="jsonQueries">- <str>- . as $object | $object |- (if $object.status == "OK" then 1.0 else 0.0 end) as $value |- {- name : "solr_ping",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/ping.html",- label_names : [],- label_values : [],- value : $value- }- </str>- </arr>- </lst>- </ping>-- <metrics>- <lst name="request">- <lst name="query">- <str name="path">/admin/metrics</str>- <lst name="params">- <!--- trim some of these expressions as needed if you don't care about- a particular group of metrics.- -->- <str name="expr">solr\.jetty:.*DefaultHandler.*</str>- <str name="expr">solr\.jvm:.*</str>- <str name="expr">solr\.node:.*</str>- <str name="expr">solr\.overseer:.*</str>- <str name="expr">solr\.core\..*:QUERY\..*</str>- <str name="expr">solr\.core\..*:ADMIN\..*</str>- <str name="expr">solr\.core\..*:CACHE\..*</str>- <str name="expr">solr\.core\..*:UPDATE\.updateHandler\..*</str>- <str name="expr">solr\.core\..*:CORE\.fs\..*</str>- <str name="expr">solr\.core\..*:HIGHLIGHTER\..*</str>- <str name="expr">solr\.core\..*:INDEX\..*</str>- <str name="expr">solr\.core\..*:REPLICATION\./replication\..*</str>- <str name="expr">solr\.core\..*:SEARCHER\.searcher\..*</str>- </lst>- </lst>- <arr name="jsonQueries">- <!--- jetty metrics- -->- <str>- .metrics["solr.jetty"] | to_entries | .[] | select(.key | startswith("org.eclipse.jetty.server.handler.DefaultHandler")) | select(.key | endswith("xx-responses")) as $object |- $object.key | split(".") | last | split("-") | first as $status |- $object.value.count as $value |- {- name : "solr_metrics_jetty_response_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["status"],- label_values : [$status],- value : $value- }- </str>- <str>- .metrics["solr.jetty"] | to_entries | .[] | select(.key | startswith("org.eclipse.jetty.server.handler.DefaultHandler.")) | select(.key | endswith("-requests")) | select (.value | type == "object") as $object |- $object.key | split(".") | last | split("-") | first as $method |- $object.value.count as $value |- {- name : "solr_metrics_jetty_requests_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["method"],- label_values : [$method],- value : $value- }- </str>- <str>- .metrics["solr.jetty"] | to_entries | .[] | select(.key == "org.eclipse.jetty.server.handler.DefaultHandler.dispatches") as $object |- $object.value.count as $value |- {- name : "solr_metrics_jetty_dispatches_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : [],- label_values : [],- value : $value- }- </str>- <!--- jvm metrics- -->- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("buffers.")) | select(.key | endswith(".Count")) as $object |- $object.key | split(".")[1] as $pool |- $object.value as $value |- {- name : "solr_metrics_jvm_buffers",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["pool"],- label_values : [$pool],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("buffers.")) | select(.key | (endswith(".MemoryUsed") or endswith(".TotalCapacity"))) as $object |- $object.key | split(".")[1] as $pool |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_buffers_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["pool", "item"],- label_values : [$pool, $item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("gc.")) | select(.key | endswith(".count")) as $object |- $object.key | split(".")[1] as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_gc_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("gc.")) | select(.key | endswith(".time")) as $object |- $object.key | split(".")[1] as $item |- ($object.value / 1000) as $value |- {- name : "solr_metrics_jvm_gc_seconds_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- $jq:jvm-item(memory_heap_bytes,- select(.key | startswith("memory.heap.")) | select(.key | endswith(".usage") | not),- object.value)- </str>- <str>- $jq:jvm-item(memory_non_heap_bytes,- select(.key | startswith("memory.non-heap.")) | select(.key | endswith(".usage") | not),- object.value)- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("memory.pools.")) | select(.key | endswith(".usage") | not) as $object |- $object.key | split(".")[2] as $space |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_memory_pools_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["space", "item"],- label_values : [$space, $item],- value : $value- }- </str>- <str>- $jq:jvm-item(memory_bytes, select(.key | startswith("memory.total.")), object.value)- </str>- <str>- $jq:jvm-item(os_memory_bytes,- select(.key == "os.committedVirtualMemorySize" or .key == "os.freePhysicalMemorySize" or .key == "os.freeSwapSpaceSize" or .key =="os.totalPhysicalMemorySize" or .key == "os.totalSwapSpaceSize"),- object.value)- </str>- <str>- $jq:jvm-item(os_file_descriptors, select(.key == "os.maxFileDescriptorCount" or .key == "os.openFileDescriptorCount"), object.value)- </str>- <str>- $jq:jvm-item(os_cpu_load, select(.key == "os.processCpuLoad" or .key == "os.systemCpuLoad"), object.value)- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.processCpuTime") as $object |- ($object.value / 1000000000.0 ) as $value |- {- name : "solr_metrics_jvm_os_cpu_time_seconds",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : ["processCpuTime"],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.systemLoadAverage") as $object |- $object.value as $value |- {- name : "solr_metrics_jvm_os_load_average",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : ["systemLoadAverage"],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("threads.")) | select(.key | endswith(".count")) as $object |- $object.key | split(".")[1] as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_threads",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <!--- overseer metrics- -->- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.overseer")) as $object |- $object.value as $value | $value | to_entries | .[] |- select(.key | startswith("queue.") and endswith("collectionWorkQueueSize")) as $object |- $object.value as $value |- {- name : "solr_metrics_overseer_collectionWorkQueueSize",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : [],- label_values : [],- value : $value- }- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.overseer")) as $object |- $object.value as $value | $value | to_entries | .[] |- select(.key | startswith("queue.") and endswith("stateUpdateQueueSize")) as $object |- $object.value as $value |- {- name : "solr_metrics_overseer_stateUpdateQueueSize",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : [],- label_values : [],- value : $value- }- </str>- <!--- node metrics- -->- <str>- $jq:node(client_errors_total, select(.key | endswith(".clientErrors")), count)- </str>- <str>- $jq:node(errors_total, select(.key | endswith(".errors")), count)- </str>- <str>- $jq:node(requests_total, select(.key | endswith(".requestTimes")), count)- </str>- <str>- $jq:node(server_errors_total, select(.key | endswith(".serverErrors")), count)- </str>- <str>- $jq:node(timeouts_total, select(.key | endswith(".timeouts")), count)- </str>- <str>- $jq:node(time_seconds_total, select(.key | endswith(".totalTime")), ($object.value / 1000000000.0))- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | startswith("CONTAINER.cores.")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- {- name : "solr_metrics_node_cores",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "item"],- label_values : [$category, $item],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | startswith("CONTAINER.fs.coreRoot.")) | select(.key | endswith(".totalSpace") or endswith(".usableSpace")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- $key_items[3] as $item |- $object.value as $value |- {- name : "solr_metrics_node_core_root_fs_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "item"],- label_values : [$category, $item],- value : $value- }- </str>- <str>- $jq:node-thread-pool(completed_total, select(.key | endswith(".completed")) | select(.value | type=="object"), count)- </str>- <str>- $jq:node-thread-pool(running, select(.key | endswith(".running")), object.value, GAUGE)- </str>- <str>- $jq:node-thread-pool(submitted_total, select(.key | endswith(".submitted")), count)- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith("Connections")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- $key_items[1] as $handler |- $key_items[2] as $item |- $object.value as $value |- {- name : "solr_metrics_node_connections",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "item"],- label_values : [$category, $handler, $item],- value : $value- }- </str>-- <!--- Query related core metrics; see jq-templates for details on the core-query template used below- -->- <str>- $jq:core-query(requests_total, select(.key | endswith(".requestTimes")), count, COUNTER)- </str>- <str>- $jq:core-query(errors_1minRate, select(.key | endswith(".errors")), 1minRate)- </str>- <str>- $jq:core-query(client_errors_1minRate, select(.key | endswith(".clientErrors")), 1minRate)- </str>- <str>- $jq:core-query(1minRate, select(.key | endswith(".requestTimes")), 1minRate)- </str>- <str>- $jq:core-query(5minRate, select(.key | endswith(".requestTimes")), 5minRate)- </str>- <str>- $jq:core-query(median_ms, select(.key | endswith(".requestTimes")), median_ms)- </str>- <str>- $jq:core-query(p75_ms, select(.key | endswith(".requestTimes")), p75_ms)- </str>- <str>- $jq:core-query(p95_ms, select(.key | endswith(".requestTimes")), p95_ms)- </str>- <str>- $jq:core-query(p99_ms, select(.key | endswith(".requestTimes")), p99_ms)- </str>- <str>- $jq:core-query(mean_rate, select(.key | endswith(".requestTimes")), meanRate)- </str>-- <!-- core metrics other than query -->- <str>- $jq:core(client_errors_total, select(.key | endswith(".clientErrors")), count)- </str>- <str>- $jq:core(errors_total, select(.key | endswith(".errors")) | select (.value | type == "object"), count)- </str>- <str>- $jq:core(requests_total, select(.key | endswith(".requestTimes")) | select (.value | type == "object"), count)- </str>- <str>- $jq:core(server_errors_total, select(.key | endswith(".serverErrors")) | select (.value | type == "object"), count)- </str>- <str>- $jq:core(timeouts_total, select(.key | endswith(".timeouts")) | select (.value | type == "object"), count)- </str>- <str>- $jq:core(time_seconds_total, select(.key | endswith(".totalTime")), ($object.value / 1000000000.0))- </str>- <str>- .metrics | to_entries | .[] | select (.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "CACHE.core.fieldCache") as $object |- $object.key | split(".")[0] as $category |- $object.value.entries_count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_field_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core"],- label_values: [$category, $core],- value: $value- }- else- {- name: "solr_metrics_core_field_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica"],- label_values: [$category, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- $jq:update-handler(update_handler_adds, select(.key == "UPDATE.updateHandler.adds"), object.value, GAUGE)- </str>- <str>- $jq:update-handler(update_handler_auto_commits_total, select(.key == "UPDATE.updateHandler.autoCommits"), object.value)- </str>- <str>- $jq:update-handler(update_handler_commits_total, select(.key == "UPDATE.updateHandler.commits"), count)- </str>- <str>- $jq:update-handler(update_handler_adds_total, select(.key == "UPDATE.updateHandler.cumulativeAdds"), count)- </str>- <str>- $jq:update-handler(update_handler_deletes_by_id_total, select(.key == "UPDATE.updateHandler.cumulativeDeletesById"), count)- </str>- <str>- $jq:update-handler(update_handler_deletes_by_query_total, select(.key == "UPDATE.updateHandler.cumulativeDeletesByQuery"), count)- </str>- <str>- $jq:update-handler(update_handler_errors_total, select(.key == "UPDATE.updateHandler.cumulativeErrors"), count)- </str>- <str>- $jq:update-handler(update_handler_deletes_by_id, select(.key == "UPDATE.updateHandler.deletesById"), object.value, GAUGE)- </str>- <str>- $jq:update-handler(update_handler_deletes_by_query, select(.key == "UPDATE.updateHandler.deletesByQuery"), object.value, GAUGE)- </str>- <str>- $jq:update-handler(update_handler_pending_docs, select(.key == "UPDATE.updateHandler.docsPending"), object.value, GAUGE)- </str>- <str>- $jq:update-handler(update_handler_errors, select(.key == "UPDATE.updateHandler.errors"), object.value, GAUGE)- </str>- <str>- $jq:update-handler(update_handler_expunge_deletes_total, select(.key == "UPDATE.updateHandler.expungeDeletes"), count)- </str>- <str>- $jq:update-handler(update_handler_merges_total, select(.key == "UPDATE.updateHandler.merges"), count)- </str>- <str>- $jq:update-handler(update_handler_optimizes_total, select(.key == "UPDATE.updateHandler.optimizes"), count)- </str>- <str>- $jq:update-handler(update_handler_rollbacks_total, select(.key == "UPDATE.updateHandler.rollbacks"), count)- </str>- <str>- $jq:update-handler(update_handler_soft_auto_commits_total, select(.key == "UPDATE.updateHandler.softAutoCommits"), object.value)- </str>- <str>- $jq:update-handler(update_handler_splits_total, select(.key == "UPDATE.updateHandler.splits"), count)- </str>-- <str>- $jq:cache-searcher(cache, select(.key == "lookups" or .key == "hits" or .key == "size" or .key == "evictions" or .key == "inserts"), $target.value)- </str>- <str>- $jq:cache-searcher(cache_ratio, select(.key == "hitratio"), $target.value)- </str>- <str>- $jq:cache-searcher(warmup_time_seconds, select(.key == "warmupTime"), ($target.value / 1000))- </str>- <str>- $jq:cache-searcher(cumulative_cache_total,- select(.key == "cumulative_lookups" or .key == "cumulative_hits" or .key == "cumulative_evictions" or .key == "cumulative_inserts"),- $target.value,- COUNTER)- </str>- <str>- $jq:cache-searcher(cumulative_cache_ratio, select(.key == "cumulative_hitratio"), $target.value)- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CORE.fs.")) | select (.key | endswith(".totalSpace") or endswith(".usableSpace")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_fs_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "item"],- label_values: [$category, $core, $item],- value: $value- }- else- {- name: "solr_metrics_core_fs_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("HIGHLIGHTER.")) | select (.key | endswith(".requests")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $name |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_highlighter_request_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "name", "item"],- label_values: [$category, $core, $name, $item],- value: $value- }- else- {- name: "solr_metrics_core_highlighter_request_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "name", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $name, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "INDEX.sizeInBytes") as $object |- $object.key | split(".")[0] as $category |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_index_size_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core"],- label_values: [$category, $core],- value: $value- }- else- {- name: "solr_metrics_core_index_size_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica"],- label_values: [$category, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "REPLICATION./replication.isLeader") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- (if $object.value == true then 1.0 else 0.0 end) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_replication_leader",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_replication_leader",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "REPLICATION./replication.isFollower") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- (if $object.value == true then 1.0 else 0.0 end) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_replication_follower",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_replication_follower",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "SEARCHER.searcher.deletedDocs" or .key == "SEARCHER.searcher.maxDoc" or .key == "SEARCHER.searcher.numDocs") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_documents",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "item"],- label_values: [$category, $core, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_documents",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $item],- value: $value- }- end- </str>- </arr>- </lst>- </metrics>-- <collections>- <lst name="request">- <lst name="query">- <str name="path">/admin/collections</str>- <lst name="params">- <str name="action">CLUSTERSTATUS</str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .cluster.live_nodes | length as $value|- {- name : "solr_collections_live_nodes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : [],- label_values : [],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.pullReplicas | tonumber as $value |- {- name : "solr_collections_pull_replicas",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection"],- label_values : [$collection],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.nrtReplicas | tonumber as $value |- {- name : "solr_collections_nrt_replicas",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection"],- label_values : [$collection],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.tlogReplicas | tonumber as $value |- {- name : "solr_collections_tlog_replicas",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection"],- label_values : [$collection],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- (if $shard_obj.value.state == "active" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_shard_state",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection","shard"],- label_values : [$collection,$shard],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- $shard_obj.value.replicas | to_entries | .[] | . as $replica_obj |- $replica_obj.key as $replica_name |- $replica_obj.value.core as $core |- $core[$collection + "_" + $shard + "_" | length:] as $replica |- $replica_obj.value.base_url as $base_url |- $replica_obj.value.node_name as $node_name |- $replica_obj.value.type as $type |- $replica_obj.value.state as $state |- (if $state == "active" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_replica_state",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection", "shard", "replica", "replica_name", "core", "base_url", "node_name", "type", "state"],- label_values : [$collection, $shard, $replica, $replica_name, $core, $base_url, $node_name, $type, $state],- value : $value- }- </str>-- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- $shard_obj.value.replicas | to_entries | .[] | . as $replica_obj |- $replica_obj.key as $replica_name |- $replica_obj.value.core as $core |- $core[$collection + "_" + $shard + "_" | length:] as $replica |- $replica_obj.value.base_url as $base_url |- $replica_obj.value.node_name as $node_name |- $replica_obj.value.type as $type |- (if $replica_obj.value.leader == "true" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_shard_leader",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection", "shard", "replica", "replica_name", "core", "base_url", "node_name", "type"],- label_values : [$collection, $shard, $replica, $replica_name, $core, $base_url, $node_name, $type],- value : $value- }- </str>- </arr>- </lst>- <lst name="request">- <lst name="query">- <str name="path">/admin/zookeeper/status</str>- </lst>- <arr name="jsonQueries">- <str>- .zkStatus.ensembleSize as $value |- .zkStatus.mode as $mode |- {- name : "solr_zookeeper_ensemble_size",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cloud-screens.html#zk-status-view",- label_names : [],- label_values : [],- value : $value- }- </str>- <str>- .zkStatus.details[] as $object |- $object.host as $host |- $object.ok as $ok |- (if $object.clientPort != null and $ok then 1.0 else 0.0 end) as $value |- {- name : "solr_zookeeper_nodestatus",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cloud-screens.html#zk-status-view",- label_names : ["host"],- label_values : [$host],- value : $value- }- </str>- <str>- .zkStatus.status as $statusText |- (if $statusText == "green" then 1.0 else 0.0 end) as $value |- {- name : "solr_zookeeper_status",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cloud-screens.html#zk-status-view",- label_names : ["status"],- label_values : [$statusText],- value : $value- }- </str>- </arr>- </lst>- </collections>-- <!--- <search>- <lst name="request">- <lst name="query">- <str name="collection">collection1</str>- <str name="path">/select</str>- <lst name="params">- <str name="q">*:*</str>- <str name="start">0</str>- <str name="rows">0</str>- <str name="json.facet">- {- category: {- type: terms,- field: cat- }- }- </str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .facets.category.buckets[] as $object |- $object.val as $term |- $object.count as $value |- {- name : "solr_facets_category",- type : "GAUGE",- help : "Category facets",- label_names : ["term"],- label_values : [$term],- value : $value- }- </str>- </arr>- </lst>- </search>- -->-- </rules>--</config>diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/CollectionsCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/CollectionsCollector.javadeleted file mode 100644index c6262b784c7..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/CollectionsCollector.java+++ /dev/null@@ -1,37 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import org.apache.solr.prometheus.exporter.MetricsQuery;-import org.apache.solr.prometheus.scraper.SolrScraper;--public class CollectionsCollector implements MetricCollector {-- private final SolrScraper solrClient;- private final MetricsQuery metricsQuery;-- public CollectionsCollector(SolrScraper solrClient, MetricsQuery metricsQuery) {- this.solrClient = solrClient;- this.metricsQuery = metricsQuery;- }-- @Override- public MetricSamples collect() throws Exception {- return solrClient.collections(metricsQuery);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricCollector.javadeleted file mode 100644index 469f58837fd..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricCollector.java+++ /dev/null@@ -1,22 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--public interface MetricCollector {- MetricSamples collect() throws Exception;-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricSamples.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricSamples.javadeleted file mode 100644index 328d76d054c..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricSamples.java+++ /dev/null@@ -1,86 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import io.prometheus.client.Collector;-import java.util.HashMap;-import java.util.HashSet;-import java.util.List;-import java.util.Map;-import java.util.Set;-import java.util.stream.Collectors;--public class MetricSamples {-- private final Map<String, Collector.MetricFamilySamples> samplesByMetricName;-- private final Set<Collector.MetricFamilySamples.Sample> seenSamples;-- public MetricSamples(Map<String, Collector.MetricFamilySamples> input) {- samplesByMetricName = input;- seenSamples = new HashSet<>();- for (Collector.MetricFamilySamples metricFamilySamples : input.values()) {- seenSamples.addAll(metricFamilySamples.samples);- }- }-- public MetricSamples() {- this(new HashMap<>());- }-- public void addSamplesIfNotPresent(- String metricName, Collector.MetricFamilySamples metricFamilySamples) {- if (samplesByMetricName.putIfAbsent(metricName, metricFamilySamples) == null) {- seenSamples.addAll(metricFamilySamples.samples);- }- }-- public void addSampleIfMetricExists(- String metricName, Collector.MetricFamilySamples.Sample sample) {- Collector.MetricFamilySamples sampleFamily = samplesByMetricName.get(metricName);-- if (sampleFamily == null) {- return;- }-- if (seenSamples.add(sample)) {- sampleFamily.samples.add(sample);- }- }-- public void addAll(MetricSamples other) {- for (Map.Entry<String, Collector.MetricFamilySamples> entry :- other.samplesByMetricName.entrySet()) {- String key = entry.getKey();- if (this.samplesByMetricName.containsKey(key)) {- for (Collector.MetricFamilySamples.Sample sample : entry.getValue().samples) {- addSampleIfMetricExists(key, sample);- }- } else {- this.samplesByMetricName.put(key, entry.getValue());- seenSamples.addAll(entry.getValue().samples);- }- }- }-- public List<Collector.MetricFamilySamples> asList() {- return samplesByMetricName.values().stream()- .filter(value -> !value.samples.isEmpty())- .collect(Collectors.toList());- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollector.javadeleted file mode 100644index c96b70c9b73..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollector.java+++ /dev/null@@ -1,41 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import org.apache.solr.prometheus.exporter.MetricsQuery;-import org.apache.solr.prometheus.scraper.SolrScraper;--public class MetricsCollector implements MetricCollector {-- private final MetricsQuery metricsQuery;- private final SolrScraper solrClient;-- public MetricsCollector(SolrScraper solrClient, MetricsQuery metricsQuery) {- this.solrClient = solrClient;- this.metricsQuery = metricsQuery;- }-- @Override- public MetricSamples collect() throws Exception {- MetricSamples results = new MetricSamples();-- solrClient.metricsForAllHosts(metricsQuery).forEach((host, samples) -> results.addAll(samples));-- return results;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollectorFactory.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollectorFactory.javadeleted file mode 100644index bbb2dd7ca8c..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/MetricsCollectorFactory.java+++ /dev/null@@ -1,71 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import java.util.List;-import java.util.concurrent.ExecutorService;-import java.util.concurrent.TimeUnit;-import java.util.stream.Collectors;-import java.util.stream.Stream;-import org.apache.solr.prometheus.exporter.MetricsConfiguration;-import org.apache.solr.prometheus.scraper.SolrScraper;--public class MetricsCollectorFactory {-- private final MetricsConfiguration metricsConfiguration;- private final ExecutorService executor;- private final int refreshInSeconds;- private final SolrScraper solrScraper;-- public MetricsCollectorFactory(- ExecutorService executor,- int refreshInSeconds,- SolrScraper solrScraper,- MetricsConfiguration metricsConfiguration) {- this.executor = executor;- this.refreshInSeconds = refreshInSeconds;- this.solrScraper = solrScraper;- this.metricsConfiguration = metricsConfiguration;- }-- public SchedulerMetricsCollector create() {- Stream<MetricCollector> pings =- metricsConfiguration.getPingConfiguration().stream()- .map(query -> new PingCollector(solrScraper, query));-- Stream<MetricCollector> metrics =- metricsConfiguration.getMetricsConfiguration().stream()- .map(query -> new MetricsCollector(solrScraper, query));-- Stream<MetricCollector> searches =- metricsConfiguration.getSearchConfiguration().stream()- .map(query -> new SearchCollector(solrScraper, query));-- Stream<MetricCollector> collections =- metricsConfiguration.getCollectionsConfiguration().stream()- .map(query -> new CollectionsCollector(solrScraper, query));-- List<MetricCollector> collectors =- Stream.of(pings, metrics, searches, collections)- .reduce(Stream::concat)- .orElseGet(Stream::empty)- .collect(Collectors.toList());-- return new SchedulerMetricsCollector(executor, refreshInSeconds, TimeUnit.SECONDS, collectors);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/PingCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/PingCollector.javadeleted file mode 100644index c0fed75c727..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/PingCollector.java+++ /dev/null@@ -1,47 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import org.apache.solr.prometheus.exporter.MetricsQuery;-import org.apache.solr.prometheus.scraper.SolrScraper;--public class PingCollector implements MetricCollector {-- private final SolrScraper solrScraper;- private final MetricsQuery metricsQuery;-- public PingCollector(SolrScraper solrScraper, MetricsQuery metricsQuery) {- this.solrScraper = solrScraper;- this.metricsQuery = metricsQuery;- }-- @Override- public MetricSamples collect() throws Exception {- MetricSamples results = new MetricSamples();-- solrScraper- .pingAllCollections(metricsQuery)- .forEach((collection, metrics) -> results.addAll(metrics));-- solrScraper- .pingAllCores(metricsQuery)- .forEach((collection, metrics) -> results.addAll(metrics));-- return results;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SchedulerMetricsCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SchedulerMetricsCollector.javadeleted file mode 100644index 26fe8110c7b..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SchedulerMetricsCollector.java+++ /dev/null@@ -1,125 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import io.prometheus.client.Collector;-import io.prometheus.client.Histogram;-import java.io.Closeable;-import java.lang.invoke.MethodHandles;-import java.util.List;-import java.util.concurrent.Callable;-import java.util.concurrent.CopyOnWriteArrayList;-import java.util.concurrent.ExecutionException;-import java.util.concurrent.ExecutorService;-import java.util.concurrent.Executors;-import java.util.concurrent.Future;-import java.util.concurrent.ScheduledExecutorService;-import java.util.concurrent.TimeUnit;-import java.util.stream.Collectors;-import org.apache.solr.common.util.SolrNamedThreadFactory;-import org.apache.solr.prometheus.exporter.SolrExporter;-import org.slf4j.Logger;-import org.slf4j.LoggerFactory;--public class SchedulerMetricsCollector implements Closeable {-- private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());-- public interface Observer {- void metricsUpdated(List<Collector.MetricFamilySamples> samples);- }-- private final List<MetricCollector> metricCollectors;- private final int duration;- private final TimeUnit timeUnit;-- private final ScheduledExecutorService scheduler =- Executors.newScheduledThreadPool(- 1, new SolrNamedThreadFactory("scheduled-metrics-collector"));-- private final ExecutorService executor;-- private final List<Observer> observers = new CopyOnWriteArrayList<>();-- private static final Histogram metricsCollectionTime =- Histogram.build()- .name("solr_exporter_duration_seconds")- .help("Duration taken to record all metrics")- .register(SolrExporter.defaultRegistry);-- public SchedulerMetricsCollector(- ExecutorService executor,- int duration,- TimeUnit timeUnit,- List<MetricCollector> metricCollectors) {- this.executor = executor;- this.metricCollectors = metricCollectors;- this.duration = duration;- this.timeUnit = timeUnit;- }-- public void start() {- scheduler.scheduleAtFixedRate(this::collectMetrics, 0, duration, timeUnit);- }-- @SuppressWarnings("try")- private void collectMetrics() {- try (Histogram.Timer timer = metricsCollectionTime.startTimer()) {- log.info("Beginning metrics collection");-- final List<Future<MetricSamples>> futures =- executor.invokeAll(- metricCollectors.stream()- .map(metricCollector -> (Callable<MetricSamples>) metricCollector::collect)- .collect(Collectors.toList()));- MetricSamples metricSamples = new MetricSamples();- for (Future<MetricSamples> future : futures) {- try {- metricSamples.addAll(future.get());- } catch (ExecutionException e) {- log.error("Error occurred during metrics collection", e.getCause()); // nowarn- // continue any ways; do not fail- }- }-- notifyObservers(metricSamples.asList());-- log.info("Completed metrics collection");- } catch (InterruptedException e) {- log.warn("Interrupted waiting for metric collection to complete", e);- Thread.currentThread().interrupt();- }- }-- public void addObserver(Observer observer) {- this.observers.add(observer);- }-- public void removeObserver(Observer observer) {- this.observers.remove(observer);- }-- private void notifyObservers(List<Collector.MetricFamilySamples> samples) {- observers.forEach(observer -> observer.metricsUpdated(samples));- }-- @Override- public void close() {- scheduler.shutdownNow();- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SearchCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SearchCollector.javadeleted file mode 100644index b33ddf98a0a..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/SearchCollector.java+++ /dev/null@@ -1,37 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import org.apache.solr.prometheus.exporter.MetricsQuery;-import org.apache.solr.prometheus.scraper.SolrScraper;--public class SearchCollector implements MetricCollector {-- private final MetricsQuery metricsQuery;- private final SolrScraper solrClient;-- public SearchCollector(SolrScraper solrClient, MetricsQuery metricsQuery) {- this.solrClient = solrClient;- this.metricsQuery = metricsQuery;- }-- @Override- public MetricSamples collect() throws Exception {- return solrClient.search(metricsQuery);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/package-info.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/package-info.javadeleted file mode 100644index 8d7c28cd97f..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/collector/package-info.java+++ /dev/null@@ -1,19 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/** Collects metrics from Solr via various endpoints. */-package org.apache.solr.prometheus.collector;diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/CachedPrometheusCollector.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/CachedPrometheusCollector.javadeleted file mode 100644index 835b1709a77..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/CachedPrometheusCollector.java+++ /dev/null@@ -1,38 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import io.prometheus.client.Collector;-import java.util.List;-import org.apache.solr.prometheus.collector.SchedulerMetricsCollector;--public class CachedPrometheusCollector extends Collector- implements SchedulerMetricsCollector.Observer {-- private volatile List<MetricFamilySamples> samples;-- @Override- public List<MetricFamilySamples> collect() {- return samples;- }-- @Override- public void metricsUpdated(List<MetricFamilySamples> samples) {- this.samples = samples;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsConfiguration.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsConfiguration.javadeleted file mode 100644index 00c52e75434..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsConfiguration.java+++ /dev/null@@ -1,185 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import java.io.InputStream;-import java.lang.invoke.MethodHandles;-import java.nio.file.Files;-import java.nio.file.Path;-import java.util.Collections;-import java.util.HashMap;-import java.util.List;-import java.util.Map;-import javax.xml.parsers.DocumentBuilderFactory;-import javax.xml.xpath.XPath;-import javax.xml.xpath.XPathConstants;-import javax.xml.xpath.XPathFactory;-import net.thisptr.jackson.jq.exception.JsonQueryException;-import org.apache.solr.common.util.StrUtils;-import org.slf4j.Logger;-import org.slf4j.LoggerFactory;-import org.w3c.dom.Document;-import org.w3c.dom.Node;-import org.w3c.dom.NodeList;--public class MetricsConfiguration {- private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());-- private final PrometheusExporterSettings settings;-- private final List<MetricsQuery> pingConfiguration;- private final List<MetricsQuery> metricsConfiguration;- private final List<MetricsQuery> collectionsConfiguration;- private final List<MetricsQuery> searchConfiguration;-- private MetricsConfiguration(- PrometheusExporterSettings settings,- List<MetricsQuery> pingConfiguration,- List<MetricsQuery> metricsConfiguration,- List<MetricsQuery> collectionsConfiguration,- List<MetricsQuery> searchConfiguration) {- this.settings = settings;- this.pingConfiguration = pingConfiguration;- this.metricsConfiguration = metricsConfiguration;- this.collectionsConfiguration = collectionsConfiguration;- this.searchConfiguration = searchConfiguration;- }-- public PrometheusExporterSettings getSettings() {- return settings;- }-- public List<MetricsQuery> getPingConfiguration() {- return pingConfiguration;- }-- public List<MetricsQuery> getMetricsConfiguration() {- return metricsConfiguration;- }-- public List<MetricsQuery> getCollectionsConfiguration() {- return collectionsConfiguration;- }-- public List<MetricsQuery> getSearchConfiguration() {- return searchConfiguration;- }-- public static MetricsConfiguration from(String resource) throws Exception {-- // See solr-core XmlConfigFile- final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();- try {- dbf.setXIncludeAware(true);- dbf.setNamespaceAware(true);- } catch (UnsupportedOperationException e) {- log.warn("{} XML parser doesn't support XInclude option", resource);- }-- Document document;- Path path = Path.of(resource);- if (Files.exists(path)) {- document = dbf.newDocumentBuilder().parse(path.toUri().toASCIIString());- } else {- try (InputStream configInputStream =- MethodHandles.lookup()- .lookupClass()- .getClassLoader()- .getResourceAsStream(resource.replace(path.getFileSystem().getSeparator(), "/"))) {- document = dbf.newDocumentBuilder().parse(configInputStream);- }- }-- return from(document);- }-- public static MetricsConfiguration from(Document config) throws Exception {- Node settings = getNode(config, "/config/settings");-- NodeList jqTemplates =- (NodeList)- (xpathFactory.newXPath())- .evaluate("/config/jq-templates/template", config, XPathConstants.NODESET);- Map<String, MetricsQueryTemplate> jqTemplatesMap =- (jqTemplates != null && jqTemplates.getLength() > 0)- ? loadJqTemplates(jqTemplates)- : Collections.emptyMap();-- Node pingConfig = getNode(config, "/config/rules/ping");- Node metricsConfig = getNode(config, "/config/rules/metrics");- Node collectionsConfig = getNode(config, "/config/rules/collections");- Node searchConfiguration = getNode(config, "/config/rules/search");-- return new MetricsConfiguration(- settings == null- ? PrometheusExporterSettings.builder().build()- : PrometheusExporterSettings.from(settings),- toMetricQueries(pingConfig, jqTemplatesMap),- toMetricQueries(metricsConfig, jqTemplatesMap),- toMetricQueries(collectionsConfig, jqTemplatesMap),- toMetricQueries(searchConfiguration, jqTemplatesMap));- }-- static final XPathFactory xpathFactory = XPathFactory.newInstance();-- private static Node getNode(Document doc, String path) {- // Copied from solr-core XmlConfigFile.getNode with simplifications- XPath xpath = xpathFactory.newXPath();- String xstr = path; // normalize(path);-- try {- NodeList nodes = (NodeList) xpath.evaluate(xstr, doc, XPathConstants.NODESET);- if (nodes == null || 0 == nodes.getLength()) {- return null;- }- if (1 < nodes.getLength()) {- throw new RuntimeException("more than one value");- }- return nodes.item(0);- } catch (Exception e) {- throw new RuntimeException("Error in xpath:" + xstr, e);- }- }-- private static List<MetricsQuery> toMetricQueries(- Node node, Map<String, MetricsQueryTemplate> jqTemplatesMap) throws JsonQueryException {- if (node == null) {- return Collections.emptyList();- }-- return MetricsQuery.from(node, jqTemplatesMap);- }-- static Map<String, MetricsQueryTemplate> loadJqTemplates(NodeList jqTemplates) {- Map<String, MetricsQueryTemplate> map = new HashMap<>();- for (int t = 0; t < jqTemplates.getLength(); t++) {- Node template = jqTemplates.item(t);- if (template.getNodeType() == Node.ELEMENT_NODE && template.hasAttributes()) {- Node nameAttr = template.getAttributes().getNamedItem("name");- String name = nameAttr != null ? nameAttr.getNodeValue() : null;- String tmpl = template.getTextContent();- if (StrUtils.isNotNullOrEmpty(name) && StrUtils.isNotNullOrEmpty(tmpl)) {- Node defaultTypeAttr = template.getAttributes().getNamedItem("defaultType");- String defaultType = defaultTypeAttr != null ? defaultTypeAttr.getNodeValue() : null;- map.put(name, new MetricsQueryTemplate(name, tmpl, defaultType));- }- }- }- return map;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsQueryTemplate.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsQueryTemplate.javadeleted file mode 100644index 7d0e28ce001..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/MetricsQueryTemplate.java+++ /dev/null@@ -1,129 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import java.util.Objects;-import java.util.Optional;-import java.util.regex.Matcher;-import java.util.regex.Pattern;--public class MetricsQueryTemplate {- /**- * A regex with named groups is used to match template references to template + vars using the- * basic pattern:- *- * <p>$jq:<TEMPLATE>( <UNIQUE>, <KEYSELECTOR>, <METRIC>, <TYPE> )- *- * <p>For instance,- *- * <p>$jq:core(requests_total, endswith(".requestTimes"), count, COUNTER)- *- * <p>TEMPLATE = core UNIQUE = requests_total (unique suffix for this metric, results in a metric- * named "solr_metrics_core_requests_total") KEYSELECTOR = endswith(".requestTimes") (filter to- * select the specific key for this metric) METRIC = count TYPE = COUNTER- */- private static final Pattern matchJqTemplate =- Pattern.compile(- "^\\$jq:(?<TEMPLATE>.*?)\\(\\s?(?<UNIQUE>[^,]*),\\s?(?<KEYSELECTOR>[^,]*)(,\\s?(?<METRIC>[^,]*)\\s?)?(,\\s?(?<TYPE>[^,]*)\\s?)?\\)$");-- public static Optional<Matcher> matches(String jsonQuery) {- Optional<Matcher> maybe = Optional.empty();- if (jsonQuery != null) {- String toMatch = jsonQuery.replaceAll("\\s+", " ").trim();- Matcher m = matchJqTemplate.matcher(toMatch);- if (m.matches()) {- maybe = Optional.of(m);- }- }- return maybe;- }-- private final String name;- private final String defaultType;- private final String template;-- public MetricsQueryTemplate(String name, String template, String defaultType) {- Objects.requireNonNull(name, "jq template must have a name");- Objects.requireNonNull(template, "jq template is required");-- this.name = name;- this.template = template.replaceAll("\\s+", " ").trim();- if (this.template.isEmpty()) {- throw new IllegalArgumentException("jq template must not be empty");- }- this.defaultType = defaultType != null ? defaultType : "GAUGE";- }-- public String getName() {- return name;- }-- public String applyTemplate(final Matcher matched) {- String keySelector = matched.group("KEYSELECTOR");- if (keySelector == null) keySelector = "";-- String unique = matched.group("UNIQUE");- unique = unique != null ? unique.trim() : "";-- String type = matched.group("TYPE");- if (type == null) {- type = defaultType;- }-- String metric = matched.group("METRIC");- if (metric == null) {- metric = unique;- }-- // could be a simple field name or some kind of function here- if (!metric.contains("$")) {- if ("object.value".equals(metric)) {- metric = "$object.value"; // don't require the user to supply the $- } else if (!metric.contains("$object")) {- if (Character.isDigit(metric.charAt(0))) {- // jq doesn't like fields that start with a number- metric = "$object.value[\"" + metric + "\"]";- } else {- // just a simple field reference in the value object- metric = "$object.value." + metric;- }- } // else some kind of function, pass thru as-is- } // else there's a $ so just assume it is a fully qualified reference to the desired value,- // leave as-is-- return template- .replace("{UNIQUE}", unique)- .replace("{KEYSELECTOR}", keySelector.trim())- .replace("{METRIC}", metric.trim())- .replace("{TYPE}", type.trim());- }-- @Override- public boolean equals(Object o) {- if (this == o) return true;- if (!(o instanceof MetricsQueryTemplate that)) return false;- return name.equals(that.name)- && Objects.equals(defaultType, that.defaultType)- && template.equals(that.template);- }-- @Override- public int hashCode() {- return Objects.hash(name, defaultType, template);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/PrometheusExporterSettings.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/PrometheusExporterSettings.javadeleted file mode 100644index e6caea25f52..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/PrometheusExporterSettings.java+++ /dev/null@@ -1,90 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import java.util.List;-import org.apache.solr.common.util.DOMUtil;-import org.apache.solr.common.util.NamedList;-import org.w3c.dom.Node;--public class PrometheusExporterSettings {-- private final int httpConnectionTimeout;- private final int httpReadTimeout;-- public static Builder builder() {- return new Builder();- }-- public static class Builder {- private int httpConnectionTimeout = 10000;- private int httpReadTimeout = 60000;-- private Builder() {}-- public Builder withConnectionHttpTimeout(int httpConnectionTimeout) {- this.httpConnectionTimeout = httpConnectionTimeout;- return this;- }-- public Builder witReadHttpTimeout(int httpReadTimeout) {- this.httpReadTimeout = httpReadTimeout;- return this;- }-- public PrometheusExporterSettings build() {- return new PrometheusExporterSettings(httpConnectionTimeout, httpReadTimeout);- }- }-- public static PrometheusExporterSettings from(Node settings) {- NamedList<?> config = DOMUtil.childNodesToNamedList(settings);-- Builder builder = builder();-- @SuppressWarnings("unchecked")- List<NamedList<?>> httpClientSettings = (List<NamedList<?>>) config.getAll("httpClients");-- for (NamedList<?> entry : httpClientSettings) {- Integer connectionTimeout = (Integer) entry.get("connectionTimeout");- if (connectionTimeout != null) {- builder.withConnectionHttpTimeout(connectionTimeout);- }-- Integer readTimeout = (Integer) entry.get("readTimeout");- if (readTimeout != null) {- builder.witReadHttpTimeout(readTimeout);- }- }-- return builder.build();- }-- private PrometheusExporterSettings(int httpConnectionTimeout, int httpReadTimeout) {- this.httpConnectionTimeout = httpConnectionTimeout;- this.httpReadTimeout = httpReadTimeout;- }-- public int getHttpConnectionTimeout() {- return httpConnectionTimeout;- }-- public int getHttpReadTimeout() {- return httpReadTimeout;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrClientFactory.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrClientFactory.javadeleted file mode 100644index ede2495c452..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrClientFactory.java+++ /dev/null@@ -1,87 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import java.util.List;-import java.util.Optional;-import java.util.concurrent.TimeUnit;-import java.util.stream.Collectors;-import org.apache.solr.client.solrj.embedded.SSLConfig;-import org.apache.solr.client.solrj.impl.CloudHttp2SolrClient;-import org.apache.solr.client.solrj.impl.CloudSolrClient;-import org.apache.solr.client.solrj.impl.Http2SolrClient;-import org.apache.solr.client.solrj.impl.NoOpResponseParser;-import org.apache.zookeeper.client.ConnectStringParser;--public class SolrClientFactory {-- private final PrometheusExporterSettings settings;- private final SolrScrapeConfiguration configuration;-- public SolrClientFactory(- PrometheusExporterSettings settings, SolrScrapeConfiguration configuration) {- this.settings = settings;- this.configuration = configuration;- }-- private static Http2SolrClient.Builder newHttp2SolrClientBuilder(- String solrHost, PrometheusExporterSettings settings, SolrScrapeConfiguration configuration) {- var builder =- new Http2SolrClient.Builder(solrHost)- .withIdleTimeout(settings.getHttpReadTimeout(), TimeUnit.MILLISECONDS)- .withConnectionTimeout(settings.getHttpConnectionTimeout(), TimeUnit.MILLISECONDS)- .withResponseParser(new NoOpResponseParser("json"));- if (configuration.getBasicAuthUser() != null) {- builder.withBasicAuthCredentials(- configuration.getBasicAuthUser(), configuration.getBasicAuthPwd());- }- if (configuration.isSSLEnabled()) {- builder.withSSLConfig(- new SSLConfig(- true,- true,- configuration.getSslConfiguration().keystorePath.toString(),- configuration.getSslConfiguration().keystorePassword,- configuration.getSslConfiguration().trustStorePath.toString(),- configuration.getSslConfiguration().trustStorePassword));- }- return builder;- }-- public Http2SolrClient createStandaloneSolrClient(String solrHost) {- return newHttp2SolrClientBuilder(solrHost, settings, configuration).build();- }-- public CloudSolrClient createCloudSolrClient(String zookeeperConnectionString) {- ConnectStringParser parser = new ConnectStringParser(zookeeperConnectionString);-- List<String> zkHosts =- parser.getServerAddresses().stream()- .map(address -> address.getHostString() + ":" + address.getPort())- .collect(Collectors.toList());- CloudSolrClient client =- new CloudHttp2SolrClient.Builder(zkHosts, Optional.ofNullable(parser.getChrootPath()))- .withInternalClientBuilder(newHttp2SolrClientBuilder(null, settings, configuration))- .withResponseParser(new NoOpResponseParser("json"))- .build();-- client.connect();-- return client;- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrExporter.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrExporter.javadeleted file mode 100644index 9861c7528aa..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrExporter.java+++ /dev/null@@ -1,391 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.solr.prometheus.exporter;--import io.prometheus.client.CollectorRegistry;-import io.prometheus.client.exporter.HTTPServer;-import java.io.IOException;-import java.lang.invoke.MethodHandles;-import java.net.InetSocketAddress;-import java.nio.file.Path;-import java.util.Locale;-import java.util.concurrent.ExecutorService;-import org.apache.commons.cli.CommandLine;-import org.apache.commons.cli.CommandLineParser;-import org.apache.commons.cli.DefaultParser;-import org.apache.commons.cli.HelpFormatter;-import org.apache.commons.cli.Option;-import org.apache.commons.cli.Options;-import org.apache.commons.cli.ParseException;-import org.apache.commons.codec.digest.DigestUtils;-import org.apache.solr.common.util.EnvUtils;-import org.apache.solr.common.util.ExecutorUtil;-import org.apache.solr.common.util.IOUtils;-import org.apache.solr.common.util.SolrNamedThreadFactory;-import org.apache.solr.common.util.SuppressForbidden;-import org.apache.solr.prometheus.collector.MetricsCollectorFactory;-import org.apache.solr.prometheus.collector.SchedulerMetricsCollector;-import org.apache.solr.prometheus.scraper.SolrCloudScraper;-import org.apache.solr.prometheus.scraper.SolrScraper;-import org.apache.solr.prometheus.scraper.SolrStandaloneScraper;-import org.slf4j.Logger;-import org.slf4j.LoggerFactory;--public class SolrExporter {-- private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());-- private static final int DEFAULT_PORT = 8989;- private static final String DEFAULT_BASE_URL = getDefaultSolrUrl();- private static final String DEFAULT_CONFIG = "solr-exporter-config.xml";- private static final int DEFAULT_SCRAPE_INTERVAL = 60;- private static final Integer DEFAULT_NUM_THREADS = 1;- private static final String DEFAULT_CREDENTIALS = "";-- public static final CollectorRegistry defaultRegistry = new CollectorRegistry();-- private final int port;- private final CachedPrometheusCollector prometheusCollector;- private final SchedulerMetricsCollector metricsCollector;- private final SolrScraper solrScraper;-- private final ExecutorService metricCollectorExecutor;- private final ExecutorService requestExecutor;-- private HTTPServer httpServer;-- public SolrExporter(- int port,- int numberThreads,- int scrapeInterval,- SolrScrapeConfiguration scrapeConfiguration,- MetricsConfiguration metricsConfiguration,- String clusterId) {- this.port = port;-- this.metricCollectorExecutor =- ExecutorUtil.newMDCAwareFixedThreadPool(- numberThreads, new SolrNamedThreadFactory("solr-exporter-collectors"));-- this.requestExecutor =- ExecutorUtil.newMDCAwareFixedThreadPool(- numberThreads, new SolrNamedThreadFactory("solr-exporter-requests"));-- this.solrScraper =- createScraper(scrapeConfiguration, metricsConfiguration.getSettings(), clusterId);- this.metricsCollector =- new MetricsCollectorFactory(- metricCollectorExecutor, scrapeInterval, solrScraper, metricsConfiguration)- .create();- this.prometheusCollector = new CachedPrometheusCollector();- }-- void start() throws IOException {- defaultRegistry.register(prometheusCollector);-- metricsCollector.addObserver(prometheusCollector);- metricsCollector.start();-- httpServer = new HTTPServer(new InetSocketAddress(port), defaultRegistry);- }-- void stop() {- if (httpServer != null) {- httpServer.stop();- }-- metricsCollector.removeObserver(prometheusCollector);-- requestExecutor.shutdownNow();- metricCollectorExecutor.shutdownNow();-- IOUtils.closeQuietly(metricsCollector);- IOUtils.closeQuietly(solrScraper);-- defaultRegistry.unregister(this.prometheusCollector);- }-- private SolrScraper createScraper(- SolrScrapeConfiguration configuration,- PrometheusExporterSettings settings,- String clusterId) {- SolrClientFactory factory = new SolrClientFactory(settings, configuration);-- switch (configuration.getType()) {- case STANDALONE:- return new SolrStandaloneScraper(- factory.createStandaloneSolrClient(configuration.getSolrHost().get()),- requestExecutor,- clusterId);- case CLOUD:- return new SolrCloudScraper(- factory.createCloudSolrClient(configuration.getZookeeperConnectionString().get()),- requestExecutor,- factory,- clusterId);- default:- throw new RuntimeException("Invalid type: " + configuration.getType());- }- }-- public static void main(String[] args) {- Options mainOptions = new Options();-- Option solrUrlOption =- Option.builder("s")- .longOpt("solr-url")- .hasArg()- .argName("HOST")- .type(String.class)- .desc(- "Specify the Solr base URL when connecting to Solr in standalone mode. If omitted both the -s parameter and the -z parameter, connect to "- + DEFAULT_BASE_URL- + ".")- .build();- mainOptions.addOption(solrUrlOption);-- Option configOption =- Option.builder()- .longOpt("config-file")- .hasArg()- .argName("CONFIG")- .type(String.class)- .desc("Specify the configuration file; the default is " + DEFAULT_CONFIG + ".")- .build();-- mainOptions.addOption(configOption);-- Option helpOption =- Option.builder("h").longOpt("help").desc("Prints this help message.").build();- mainOptions.addOption(helpOption);-- Option clusterIdOption =- Option.builder()- .longOpt("cluster-id")- .hasArg()- .argName("CLUSTER_ID")- .type(String.class)- .desc(- "Specify a unique identifier for the cluster, which can be used to select between multiple clusters in Grafana. By default this ID will be equal to a hash of the -b or -z argument")- .build();- mainOptions.addOption(clusterIdOption);-- Option numThreadsOption =- Option.builder()- .longOpt("num-threads")- .hasArg()- .argName("NUM_THREADS")- .type(Integer.class)- .desc(- "Specify the number of threads. solr-exporter creates a thread pools for request to Solr. If you need to improve request latency via solr-exporter, you can increase the number of threads; the default is "- + DEFAULT_NUM_THREADS- + ".")- .build();- mainOptions.addOption(numThreadsOption);-- Option portOption =- Option.builder("p")- .longOpt("port")- .hasArg()- .argName("PORT")- .type(Integer.class)- .desc("Specify the solr-exporter HTTP listen port; default is " + DEFAULT_PORT + ".")- .build();- mainOptions.addOption(portOption);-- Option scrapeIntervalOption =- Option.builder()- .longOpt("scrape-interval")- .hasArg()- .argName("SCRAPE_INTERVAL")- .type(Integer.class)- .desc(- "Specify the delay between scraping Solr metrics; the default is "- + DEFAULT_SCRAPE_INTERVAL- + " seconds.")- .build();- mainOptions.addOption(scrapeIntervalOption);-- Option sslOption =- Option.builder()- .longOpt("ssl-enabled")- .type(Boolean.class)- .desc(- "Enable TLS connection to Solr. Expects following env variables: SOLR_SSL_KEY_STORE, SOLR_SSL_KEY_STORE_PASSWORD, SOLR_SSL_TRUST_STORE, SOLR_SSL_TRUST_STORE_PASSWORD. Example: --ssl-enabled")- .build();- mainOptions.addOption(sslOption);-- Option credentialsOption =- Option.builder("u")- .longOpt("credentials")- .hasArg()- .argName("CREDENTIALS")- .type(String.class)- .desc(- "Specify the credentials in the format username:password. Example: --credentials solr:SolrRocks")- .build();- mainOptions.addOption(credentialsOption);-- Option zkHostOption =- Option.builder("z")- .longOpt("zk-host")- .hasArg()- .argName("ZK_HOST")- .type(String.class)- .desc(- "Specify the ZooKeeper connection string when connecting to Solr in SolrCloud mode. If omitted both the -s parameter and the -z parameter, connect to "- + DEFAULT_BASE_URL- + ".")- .build();- mainOptions.addOption(zkHostOption);-- Options options = new Options();- options.addOptions(mainOptions);-- try {- CommandLineParser parser = new DefaultParser();- CommandLine commandLine = parser.parse(options, args);-- if (commandLine.hasOption(helpOption)) {- HelpFormatter formatter = new HelpFormatter();- formatter.printHelp(- "bin/solr-exporter", "Prometheus exporter for Apache Solr.", mainOptions, null, true);- return;- }-- final SolrScrapeConfiguration scrapeConfiguration;- final String defaultClusterId;- String zkHost = getZkHost(commandLine, zkHostOption);- if (zkHost != null && !zkHost.isBlank()) {- defaultClusterId = makeShortHash(zkHost);- scrapeConfiguration = SolrScrapeConfiguration.solrCloud(zkHost);- } else if (commandLine.hasOption(solrUrlOption)) {- String baseUrl = commandLine.getOptionValue(solrUrlOption);- defaultClusterId = makeShortHash(baseUrl);- scrapeConfiguration = SolrScrapeConfiguration.standalone(baseUrl);- } else {- String baseUrl = DEFAULT_BASE_URL;- if (log.isInfoEnabled()) {- log.info(- "Neither --{} or --{} parameters provided so assuming solr url is {}",- solrUrlOption.getLongOpt(),- zkHostOption.getLongOpt(),- baseUrl);- }- defaultClusterId = makeShortHash(baseUrl);- scrapeConfiguration = SolrScrapeConfiguration.standalone(baseUrl);- }-- int port = commandLine.getParsedOptionValue(portOption, DEFAULT_PORT);- String clusterId = commandLine.getOptionValue(clusterIdOption, defaultClusterId);-- if (commandLine.hasOption(credentialsOption)) {- String credentials = commandLine.getOptionValue(credentialsOption, DEFAULT_CREDENTIALS);- if (credentials.indexOf(':') > 0) {- String[] credentialsArray = credentials.split(":", 2);- scrapeConfiguration.withBasicAuthCredentials(credentialsArray[0], credentialsArray[1]);- }- }-- if (commandLine.hasOption(sslOption)) {- log.info("SSL ENABLED");-- scrapeConfiguration.withSslConfiguration(- Path.of(getSystemVariable("SOLR_SSL_KEY_STORE")),- getSystemVariable("SOLR_SSL_KEY_STORE_PASSWORD"),- Path.of(getSystemVariable("SOLR_SSL_TRUST_STORE")),- getSystemVariable("SOLR_SSL_TRUST_STORE_PASSWORD"));- }-- String configFile = commandLine.getOptionValue(configOption, DEFAULT_CONFIG);- int numberOfThreads = commandLine.getParsedOptionValue(numThreadsOption, DEFAULT_NUM_THREADS);- int scrapeInterval =- commandLine.getParsedOptionValue(scrapeIntervalOption, DEFAULT_SCRAPE_INTERVAL);-- SolrExporter solrExporter =- new SolrExporter(- port,- numberOfThreads,- scrapeInterval,- scrapeConfiguration,- loadMetricsConfiguration(configFile),- clusterId);-- log.info("Starting Solr Prometheus Exporting on port {}", port);- solrExporter.start();- log.info(- "Solr Prometheus Exporter is running. Collecting metrics for cluster {}: {}",- clusterId,- scrapeConfiguration);- } catch (IOException e) {- exit(1, "Failed to start Solr Prometheus Exporter: " + e.getMessage());- } catch (ParseException e) {- exit(1, "Failed to parse command line arguments: " + e.getMessage());- }- }-- /**- * Creates a short 10-char hash of a longer string, based on first chars of the sha256 hash- *- * @param inputString original string- * @return 10 char hash- */- static String makeShortHash(String inputString) {- return DigestUtils.sha256Hex(inputString).substring(0, 10);- }-- private static MetricsConfiguration loadMetricsConfiguration(String configPath) {- try {- return MetricsConfiguration.from(configPath);- } catch (Exception e) {- log.error("Could not load scrape configuration from {}", configPath);- throw new RuntimeException(e);- }- }-- private static String getSystemVariable(String name) {- return System.getProperty(name, System.getenv(name));- }-- @SuppressForbidden(reason = "For use in command line tools only")- public static void exit(int exitStatus, String message) {- System.err.println(message);- try {- System.exit(exitStatus);- } catch (java.lang.SecurityException secExc) {- if (exitStatus != 0)- throw new RuntimeException("SolrExporter failed to exit with status " + exitStatus);- }- }-- // copied over from CLIUtils- private static String getDefaultSolrUrl() {- // note that ENV_VAR syntax (and the env vars too) are mapped to env.var sys props- String scheme = EnvUtils.getProperty("solr.url.scheme", "http");- String host = EnvUtils.getProperty("solr.host", "localhost");- String port = EnvUtils.getProperty("jetty.port", "8983"); // from SOLR_PORT env- return String.format(Locale.ROOT, "%s://%s:%s", scheme.toLowerCase(Locale.ROOT), host, port);- }-- public static String getZkHost(CommandLine cli, Option option) {- String zkHost = cli.getOptionValue(option);- if (zkHost != null && !zkHost.isBlank()) {- return zkHost;- }- return EnvUtils.getProperty("zkHost");- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrScrapeConfiguration.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrScrapeConfiguration.javadeleted file mode 100644index e0550ddc9c4..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/SolrScrapeConfiguration.java+++ /dev/null@@ -1,125 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import java.nio.file.Path;-import java.util.Optional;--public class SolrScrapeConfiguration {-- public enum ConnectionType {- CLOUD,- STANDALONE- }-- public static class SslConfiguration {-- public final Path keystorePath;- public final String keystorePassword;- public final Path trustStorePath;- public final String trustStorePassword;-- public SslConfiguration(- Path keystorePath,- String keystorePassword,- Path trustStorePath,- String trustStorePassword) {- this.keystorePath = keystorePath;- this.keystorePassword = keystorePassword;- this.trustStorePath = trustStorePath;- this.trustStorePassword = trustStorePassword;- }- }-- private final ConnectionType type;- private final String zookeeperConnectionString;- private final String solrHost;- private String basicAuthUser;- private String basicAuthPwd;-- private boolean sslEnabled = false;- private SslConfiguration sslConfiguration;-- private SolrScrapeConfiguration(- ConnectionType type, String zookeeperConnectionString, String solrHost) {- this.type = type;- this.zookeeperConnectionString = zookeeperConnectionString;- this.solrHost = solrHost;- }-- public ConnectionType getType() {- return type;- }-- public Optional<String> getZookeeperConnectionString() {- return Optional.ofNullable(zookeeperConnectionString);- }-- public Optional<String> getSolrHost() {- return Optional.ofNullable(solrHost);- }-- public static SolrScrapeConfiguration solrCloud(String zookeeperConnectionString) {- return new SolrScrapeConfiguration(ConnectionType.CLOUD, zookeeperConnectionString, null);- }-- public static SolrScrapeConfiguration standalone(String solrHost) {- return new SolrScrapeConfiguration(ConnectionType.STANDALONE, null, solrHost);- }-- public SolrScrapeConfiguration withBasicAuthCredentials(String user, String password) {- this.basicAuthUser = user;- this.basicAuthPwd = password;- return this;- }-- public String getBasicAuthUser() {- return basicAuthUser;- }-- public String getBasicAuthPwd() {- return basicAuthPwd;- }-- public SolrScrapeConfiguration withSslConfiguration(- Path keystorePath, String keystorePassword, Path trustStorePath, String trustStorePassword) {- this.sslEnabled = true;- this.sslConfiguration =- new SslConfiguration(keystorePath, keystorePassword, trustStorePath, trustStorePassword);- return this;- }-- public boolean isSSLEnabled() {- return this.sslEnabled;- }-- public SslConfiguration getSslConfiguration() {- return sslConfiguration;- }-- @Override- public String toString() {- if (type == ConnectionType.CLOUD) {- return "Solr Cloud ZK: " + zookeeperConnectionString;- } else if (type == ConnectionType.STANDALONE) {- return "Solr Node: " + solrHost;- } else {- return "None";- }- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/package-info.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/package-info.javadeleted file mode 100644index 8c85dee8593..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/exporter/package-info.java+++ /dev/null@@ -1,19 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/** Prometheus Metrics Exporter. */-package org.apache.solr.prometheus.exporter;diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrCloudScraper.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrCloudScraper.javadeleted file mode 100644index 79c3e46ae2c..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrCloudScraper.java+++ /dev/null@@ -1,152 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.solr.prometheus.scraper;--import com.github.benmanes.caffeine.cache.Cache;-import com.github.benmanes.caffeine.cache.Caffeine;-import java.io.IOException;-import java.util.Collection;-import java.util.List;-import java.util.Map;-import java.util.Set;-import java.util.concurrent.ExecutorService;-import java.util.function.Function;-import java.util.stream.Collectors;-import org.apache.solr.client.solrj.impl.CloudSolrClient;-import org.apache.solr.client.solrj.impl.Http2SolrClient;-import org.apache.solr.common.cloud.DocCollection;-import org.apache.solr.common.cloud.Replica;-import org.apache.solr.common.util.IOUtils;-import org.apache.solr.common.util.Pair;-import org.apache.solr.prometheus.collector.MetricSamples;-import org.apache.solr.prometheus.exporter.MetricsQuery;-import org.apache.solr.prometheus.exporter.SolrClientFactory;--public class SolrCloudScraper extends SolrScraper {-- private final CloudSolrClient solrClient;- private final SolrClientFactory solrClientFactory;-- private Cache<String, Http2SolrClient> hostClientCache = Caffeine.newBuilder().build();-- public SolrCloudScraper(- CloudSolrClient solrClient,- ExecutorService executor,- SolrClientFactory solrClientFactory,- String clusterId) {- super(executor, clusterId);- this.solrClient = solrClient;- this.solrClientFactory = solrClientFactory;- }-- @Override- public Map<String, MetricSamples> pingAllCores(MetricsQuery query) throws IOException {- Map<String, Http2SolrClient> httpSolrClients = createHttpSolrClients();-- List<Replica> replicas =- solrClient- .getClusterState()- .collectionStream()- .map(DocCollection::getReplicas)- .flatMap(List::stream)- .collect(Collectors.toList());-- List<String> coreNames =- replicas.stream().map(Replica::getCoreName).collect(Collectors.toList());-- Map<String, Http2SolrClient> coreToClient =- replicas.stream()- .map(- replica ->- new Pair<>(replica.getCoreName(), httpSolrClients.get(replica.getBaseUrl())))- .collect(Collectors.toMap(Pair::first, Pair::second));-- return sendRequestsInParallel(- coreNames,- core -> {- try {- return request(coreToClient.get(core), query.withCore(core));- } catch (IOException exception) {- throw new RuntimeException(exception);- }- });- }-- private Map<String, Http2SolrClient> createHttpSolrClients() throws IOException {- return getBaseUrls().stream()- .map(url -> hostClientCache.get(url, solrClientFactory::createStandaloneSolrClient))- .collect(Collectors.toMap(Http2SolrClient::getBaseURL, Function.identity()));- }-- @Override- public Map<String, MetricSamples> pingAllCollections(MetricsQuery query) throws IOException {- return sendRequestsInParallel(- getCollections(),- (collection) -> {- try {- return request(solrClient, query.withCollection(collection));- } catch (IOException exception) {- throw new RuntimeException(exception);- }- });- }-- @Override- public Map<String, MetricSamples> metricsForAllHosts(MetricsQuery query) throws IOException {- Map<String, Http2SolrClient> httpSolrClients = createHttpSolrClients();-- return sendRequestsInParallel(- httpSolrClients.keySet(),- (baseUrl) -> {- try {- return request(httpSolrClients.get(baseUrl), query);- } catch (IOException exception) {- throw new RuntimeException(exception);- }- });- }-- @Override- public MetricSamples search(MetricsQuery query) throws IOException {- return request(solrClient, query);- }-- @Override- public MetricSamples collections(MetricsQuery metricsQuery) throws IOException {- return request(solrClient, metricsQuery);- }-- private Set<String> getBaseUrls() throws IOException {- return solrClient- .getClusterState()- .collectionStream()- .map(DocCollection::getReplicas)- .flatMap(List::stream)- .map(Replica::getBaseUrl)- .collect(Collectors.toSet());- }-- private Collection<String> getCollections() throws IOException {- return solrClient.getClusterState().getCollectionNames();- }-- @Override- public void close() {- IOUtils.closeQuietly(solrClient);- hostClientCache.asMap().values().forEach(IOUtils::closeQuietly);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrStandaloneScraper.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrStandaloneScraper.javadeleted file mode 100644index 734279653f8..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/SolrStandaloneScraper.java+++ /dev/null@@ -1,109 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.solr.prometheus.scraper;--import com.fasterxml.jackson.databind.JsonNode;-import java.io.IOException;-import java.util.Collections;-import java.util.HashMap;-import java.util.HashSet;-import java.util.Map;-import java.util.Set;-import java.util.concurrent.ExecutorService;-import org.apache.solr.client.solrj.SolrServerException;-import org.apache.solr.client.solrj.impl.Http2SolrClient;-import org.apache.solr.client.solrj.request.CoreAdminRequest;-import org.apache.solr.common.params.CoreAdminParams;-import org.apache.solr.common.util.IOUtils;-import org.apache.solr.common.util.NamedList;-import org.apache.solr.prometheus.collector.MetricSamples;-import org.apache.solr.prometheus.exporter.MetricsQuery;--public class SolrStandaloneScraper extends SolrScraper {-- private final Http2SolrClient solrClient;-- public SolrStandaloneScraper(- Http2SolrClient solrClient, ExecutorService executor, String clusterId) {- super(executor, clusterId);- this.solrClient = solrClient;- }-- @Override- public Map<String, MetricSamples> pingAllCores(MetricsQuery query) throws IOException {- return sendRequestsInParallel(- getCores(),- core -> {- try {- return request(solrClient, query.withCore(core));- } catch (IOException e) {- throw new RuntimeException(e);- }- });- }-- @Override- public Map<String, MetricSamples> pingAllCollections(MetricsQuery query) throws IOException {- return Collections.emptyMap();- }-- @Override- public Map<String, MetricSamples> metricsForAllHosts(MetricsQuery query) throws IOException {- Map<String, MetricSamples> samples = new HashMap<>();- samples.put(solrClient.getBaseURL(), request(solrClient, query));- return samples;- }-- @Override- public MetricSamples search(MetricsQuery query) throws IOException {- return request(solrClient, query);- }-- @Override- public MetricSamples collections(MetricsQuery metricsQuery) {- return new MetricSamples();- }-- private Set<String> getCores() throws IOException {- Set<String> cores = new HashSet<>();-- CoreAdminRequest coreAdminRequest = new CoreAdminRequest();- coreAdminRequest.setAction(CoreAdminParams.CoreAdminAction.STATUS);- coreAdminRequest.setIndexInfoNeeded(false);-- NamedList<Object> coreAdminResponse;- try {- coreAdminResponse = solrClient.request(coreAdminRequest);- } catch (SolrServerException e) {- throw new IOException("Failed to get cores", e);- }-- JsonNode statusJsonNode =- OBJECT_MAPPER.readTree((String) coreAdminResponse.get("response")).get("status");-- for (JsonNode jsonNode : statusJsonNode) {- cores.add(jsonNode.get("name").textValue());- }-- return cores;- }-- @Override- public void close() {- IOUtils.closeQuietly(solrClient);- }-}diff --git a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/package-info.java b/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/package-info.javadeleted file mode 100644index 22683e3f3e7..00000000000--- a/solr/prometheus-exporter/src/java/org/apache/solr/prometheus/scraper/package-info.java+++ /dev/null@@ -1,19 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/** Send the raw requests to Solr endpoints. */-package org.apache.solr.prometheus.scraper;diff --git a/solr/prometheus-exporter/src/java/overview.html b/solr/prometheus-exporter/src/java/overview.htmldeleted file mode 100644index dead6e88a5c..00000000000--- a/solr/prometheus-exporter/src/java/overview.html+++ /dev/null@@ -1,26 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<body>-Apache Solr: Prometheus Exporter--<p>-This package provides a tool for monitoring Solr with Prometheus. It runs separately from the Solr process(es).-</p>--</body>-</html>diff --git a/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-integration-test-config.xml b/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-integration-test-config.xmldeleted file mode 100644index 7a4bd3a60c7..00000000000--- a/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-integration-test-config.xml+++ /dev/null@@ -1,1741 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>-- <settings>- <httpClients>- <connectionTimeout>10000</connectionTimeout>- <readTimeout>10000</readTimeout>- </httpClients>- </settings>-- <rules>-- <search>- <lst name="request">- <lst name="query">- <str name="collection">collection1</str>- <str name="path">/select</str>- <lst name="params">- <str name="q">*:*</str>- <str name="start">0</str>- <str name="rows">0</str>- <str name="json.facet">- {- category: {- type: terms,- field: cat- }- }- </str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .facets.category.buckets[] as $object |- $object.val as $term |- $object.count as $value |- {- name : "solr_facets_category",- type : "GAUGE",- help : "Category facets",- label_names : ["term"],- label_values : [$term],- value : $value- }- </str>- </arr>- </lst>- </search>-- <ping>- <lst name="request">- <lst name="query">- <str name="path">/admin/ping</str>- <str name="wt">json</str>- </lst>- <arr name="jsonQueries">- <str>- . as $object | $object |- (if $object.status == "OK" then 1.0 else 0.0 end) as $value |- {- name : "solr_ping",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/ping.html",- label_names : [],- label_values : [],- value : $value- }- </str>- </arr>- </lst>- </ping>-- <metrics>- <lst name="request">- <lst name="query">- <str name="path">/admin/metrics</str>- <lst name="params">- <str name="expr">solr\.jetty:.*DefaultHandler.*</str>- <str name="expr">solr\.jvm:.*</str>- <str name="expr">solr\.node:.*</str>- <str name="expr">solr\.overseer:.*</str>- <str name="expr">solr\.core\..*:QUERY\..*</str>- <str name="expr">solr\.core\..*:ADMIN\..*</str>- <str name="expr">solr\.core\..*:CACHE\..*</str>- <str name="expr">solr\.core\..*:UPDATE\.updateHandler\..*</str>- <str name="expr">solr\.core\..*:CORE\.fs\..*</str>- <str name="expr">solr\.core\..*:HIGHLIGHTER\..*</str>- <str name="expr">solr\.core\..*:INDEX\..*</str>- <str name="expr">solr\.core\..*:REPLICATION\.replication\..*</str>- <str name="expr">solr\.core\..*:SEARCHER\.searcher\..*</str>- </lst>- </lst>- <arr name="jsonQueries">- <!--- jvm metrics- -->- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("buffers.")) | select(.key | endswith(".Count")) as $object |- $object.key | split(".")[1] as $pool |- $object.value as $value |- {- name : "solr_metrics_jvm_buffers",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["pool"],- label_values : [$pool],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("buffers.")) | select(.key | (endswith(".MemoryUsed") or endswith(".TotalCapacity"))) as $object |- $object.key | split(".")[1] as $pool |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_buffers_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["pool", "item"],- label_values : [$pool, $item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("gc.")) | select(.key | endswith(".count")) as $object |- $object.key | split(".")[1] as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_gc_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("gc.")) | select(.key | endswith(".time")) as $object |- $object.key | split(".")[1] as $item |- ($object.value / 1000) as $value |- {- name : "solr_metrics_jvm_gc_seconds_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("memory.heap.")) | select(.key | endswith(".usage") | not) as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_memory_heap_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("memory.non-heap.")) | select(.key | endswith(".usage") | not) as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_memory_non_heap_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("memory.pools.")) | select(.key | endswith(".usage") | not) as $object |- $object.key | split(".")[2] as $space |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_memory_pools_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["space", "item"],- label_values : [$space, $item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("memory.total.")) as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_memory_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.committedVirtualMemorySize" or .key == "os.freePhysicalMemorySize" or .key == "os.freeSwapSpaceSize" or .key =="os.totalPhysicalMemorySize" or .key == "os.totalSwapSpaceSize") as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_os_memory_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.maxFileDescriptorCount" or .key == "os.openFileDescriptorCount") as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_os_file_descriptors",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.processCpuLoad" or .key == "os.systemCpuLoad") as $object |- $object.key | split(".") | last as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_os_cpu_load",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.processCpuTime") as $object |- ($object.value / 1000.0) as $value |- {- name : "solr_metrics_jvm_os_cpu_time_seconds",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : ["processCpuTime"],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key == "os.systemLoadAverage") as $object |- $object.value as $value |- {- name : "solr_metrics_jvm_os_load_average",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : ["systemLoadAverage"],- value : $value- }- </str>- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("threads.")) | select(.key | endswith(".count")) as $object |- $object.key | split(".")[1] as $item |- $object.value as $value |- {- name : "solr_metrics_jvm_threads",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["item"],- label_values : [$item],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".clientErrors")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- {- name : "solr_metrics_node_client_errors_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".clientErrors")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- {- name : "solr_metrics_node_errors_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".requestTimes")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- {- name : "solr_metrics_node_requests_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".serverErrors")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- {- name : "solr_metrics_node_server_errors_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".timeouts")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- {- name : "solr_metrics_node_timeouts_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".totalTime")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- ($object.value / 1000) as $value |- {- name : "solr_metrics_node_time_seconds_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | startswith("CONTAINER.cores.")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- {- name : "solr_metrics_node_cores",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "item"],- label_values : [$category, $item],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | startswith("CONTAINER.fs.coreRoot.")) | select(.key | endswith(".totalSpace") or endswith(".usableSpace")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- $key_items[3] as $item |- $object.value as $value |- {- name : "solr_metrics_node_core_root_fs_bytes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "item"],- label_values : [$category, $item],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | contains(".threadPool.")) | select(.key | endswith(".completed")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- (if $label_len >= 5 then $key_items[1] else "" end) as $handler |- (if $label_len >= 5 then $key_items[3] else $key_items[2] end) as $executor |- $object.value.count as $value |- {- name : "solr_metrics_node_thread_pool_completed_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "executor"],- label_values : [$category, $handler, $executor],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | contains(".threadPool.")) | select(.key | endswith(".running")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- (if $label_len >= 5 then $key_items[1] else "" end) as $handler |- (if $label_len >= 5 then $key_items[3] else $key_items[2] end) as $executor |- $object.value as $value |- {- name : "solr_metrics_node_thread_pool_running",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "executor"],- label_values : [$category, $handler, $executor],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | contains(".threadPool.")) | select(.key | endswith(".submitted")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- (if $label_len >= 5 then $key_items[1] else "" end) as $handler |- (if $label_len >= 5 then $key_items[3] else $key_items[2] end) as $executor |- $object.value.count as $value |- {- name : "solr_metrics_node_thread_pool_submitted_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "executor"],- label_values : [$category, $handler, $executor],- value : $value- }- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith("Connections")) as $object |- $object.key | split(".") as $key_items |- $key_items | length as $label_len |- $key_items[0] as $category |- $key_items[1] as $handler |- $key_items[2] as $item |- $object.value as $value |- {- name : "solr_metrics_node_connections",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler", "item"],- label_values : [$category, $handler, $item],- value : $value- }- </str>-- <!--- core metrics- -->- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".clientErrors")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_client_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_client_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".errors")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".requestTimes")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_requests_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_requests_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".serverErrors")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_server_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_server_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".timeouts")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_timeouts_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_timeouts_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".totalTime")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- ($object.value / 1000) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_time_seconds_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_time_seconds_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select (.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "CACHE.core.fieldCache") as $object |- $object.key | split(".")[0] as $category |- $object.value.entries_count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_field_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core"],- label_values: [$category, $core],- value: $value- }- else- {- name: "solr_metrics_core_field_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica"],- label_values: [$category, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | select(.key == "lookups" or .key == "hits" or .key == "size" or .key == "evictions" or .key == "inserts") as $target |- $target.key as $item |- $target.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_cache",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_cache",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | select(.key == "hitratio") as $target |- $target.key as $item |- $target.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_cache_ratio",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_cache_ratio",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | select(.key == "warmupTime") as $target |- $target.key as $item |- ($target.value / 1000) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_warmup_time_seconds",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_warmup_time_seconds",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | select(.key == "cumulative_lookups" or .key == "cumulative_hits" or .key == "cumulative_evictions" or .key == "cumulative_inserts") as $target |- $target.key as $item |- $target.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_cumulative_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_cumulative_cache_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CACHE.searcher.")) | select (.key | endswith("documentCache") or endswith("fieldValueCache") or endswith("filterCache") or endswith("perSegFilter") or endswith("queryResultCache")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $type |- $object.value | to_entries | .[] | select(.key == "cumulative_hitratio") as $target |- $target.key as $item |- $target.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_cumulative_cache_ratio",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "type", "item"],- label_values: [$category, $core, $type, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_cumulative_cache_ratio",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "type", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $type, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("CORE.fs.")) | select (.key | endswith(".totalSpace") or endswith(".usableSpace")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_fs_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "item"],- label_values: [$category, $core, $item],- value: $value- }- else- {- name: "solr_metrics_core_fs_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | startswith("HIGHLIGHTER.")) | select (.key | endswith(".requests")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $name |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_highlighter_request_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "name", "item"],- label_values: [$category, $core, $name, $item],- value: $value- }- else- {- name: "solr_metrics_core_highlighter_request_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "name", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $name, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "INDEX.sizeInBytes") as $object |- $object.key | split(".")[0] as $category |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_index_size_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core"],- label_values: [$category, $core],- value: $value- }- else- {- name: "solr_metrics_core_index_size_bytes",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica"],- label_values: [$category, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "REPLICATION./replication.isLeader") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- (if $object.value == true then 1.0 else 0.0 end) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_replication_leader",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_replication_leader",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "REPLICATION./replication.isFollower") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- (if $object.value == true then 1.0 else 0.0 end) as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_replication_follower",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_replication_follower",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "SEARCHER.searcher.deletedDocs" or .key == "SEARCHER.searcher.maxDoc" or .key == "SEARCHER.searcher.numDocs") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[2] as $item |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_searcher_documents",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "item"],- label_values: [$category, $core, $item],- value: $value- }- else- {- name: "solr_metrics_core_searcher_documents",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "core", "collection", "shard", "replica", "item"],- label_values: [$category, $core, $collection, $shard, $replica, $item],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.adds") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_adds",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_adds",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.autoCommits") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_auto_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_auto_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.commits") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.cumulativeAdds") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_adds_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_adds_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.cumulativeDeletesById") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_deletes_by_id_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_deletes_by_id_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.cumulativeDeletesByQuery") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_deletes_by_query_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_deletes_by_query_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.cumulativeErrors") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_errors_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.deletesById") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_deletes_by_id",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_deletes_by_id",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.deletesByQuery") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_deletes_by_query",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_deletes_by_query",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.docsPending") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_pending_docs",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_pending_docs",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.errors") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_errors",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_errors",- type: "GAUGE",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.expungeDeletes") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_expunge_deletes_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_expunge_deletes_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.merges") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_merges_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_merges_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.optimizes") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_optimizes_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_optimizes_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.rollbacks") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_rollbacks_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_rollbacks_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.softAutoCommits") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_soft_auto_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_soft_auto_commits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key == "UPDATE.updateHandler.splits") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_update_handler_splits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_update_handler_splits_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- </arr>- </lst>- </metrics>-- <collections>- <lst name="request">- <lst name="query">- <str name="path">/admin/collections</str>- <lst name="params">- <str name="action">CLUSTERSTATUS</str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .cluster.live_nodes | length as $value|- {- name : "solr_collections_live_nodes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : [],- label_values : [],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- (if $shard_obj.value.state == "active" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_shard_state",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection","shard"],- label_values : [$collection,$shard],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- $shard_obj.value.replicas | to_entries | .[] | . as $replica_obj |- $replica_obj.key as $replica_name |- $replica_obj.value.core as $core |- $core[$collection + "_" + $shard + "_" | length:] as $replica |- $replica_obj.value.base_url as $base_url |- $replica_obj.value.node_name as $node_name |- $replica_obj.value.type as $type |- (if $replica_obj.value.state == "active" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_replica_state",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection", "shard", "replica", "replica_name", "core", "base_url", "node_name", "type"],- label_values : [$collection, $shard, $replica, $replica_name, $core, $base_url, $node_name, $type],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- $shard_obj.value.replicas | to_entries | .[] | . as $replica_obj |- $replica_obj.key as $replica_name |- $replica_obj.value.core as $core |- $core[$collection + "_" + $shard + "_" | length:] as $replica |- $replica_obj.value.base_url as $base_url |- $replica_obj.value.node_name as $node_name |- $replica_obj.value.type as $type |- (if $replica_obj.value.leader == "true" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_shard_leader",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection", "shard", "replica", "replica_name", "core", "base_url", "node_name", "type"],- label_values : [$collection, $shard, $replica, $replica_name, $core, $base_url, $node_name, $type],- value : $value- }- </str>- </arr>- </lst>- </collections>-- </rules>--</config>diff --git a/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-scraper-test-config.xml b/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-scraper-test-config.xmldeleted file mode 100644index 0371582e022..00000000000--- a/solr/prometheus-exporter/src/test-files/conf/prometheus-solr-exporter-scraper-test-config.xml+++ /dev/null@@ -1,173 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>-- <rules>-- <ping>- <lst name="request">- <lst name="query">- <str name="path">/admin/ping</str>- <str name="wt">json</str>- </lst>- <arr name="jsonQueries">- <str>- . as $object | $object |- (if $object.status == "OK" then 1.0 else 0.0 end) as $value |- {- name : "solr_ping",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/ping.html",- label_names : [],- label_values : [],- value : $value- }- </str>- </arr>- </lst>- </ping>-- <collections>- <lst name="request">- <lst name="query">- <str name="path">/admin/collections</str>- <lst name="params">- <str name="action">CLUSTERSTATUS</str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .cluster.live_nodes | length as $value|- {- name : "solr_collections_live_nodes",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : [],- label_values : [],- value : $value- }- </str>- <str>- .cluster.collections | to_entries | .[] | . as $object |- $object.key as $collection |- $object.value.shards | to_entries | .[] | . as $shard_obj |- $shard_obj.key as $shard |- $shard_obj.value.replicas | to_entries | .[] | . as $replica_obj |- $replica_obj.key as $replica_name |- $replica_obj.value.core as $core |- $core[$collection + "_" + $shard + "_" | length:] as $replica |- $replica_obj.value.base_url as $base_url |- $replica_obj.value.node_name as $node_name |- $replica_obj.value.type as $type |- (if $replica_obj.value.leader == "true" then 1.0 else 0.0 end) as $value |- {- name : "solr_collections_shard_leader",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/cluster-node-management.html#clusterstatus",- label_names : ["collection", "shard", "replica", "core", "type"],- label_values : [$collection, $shard, $replica, $core, $type],- value : $value- }- </str>- </arr>- </lst>- </collections>-- <metrics>- <lst name="request">- <lst name="query">- <str name="path">/admin/metrics</str>- <lst name="params">- <str name="expr">solr\.jetty:.*DefaultHandler.*</str>- <str name="expr">solr\.jvm:.*</str>- <str name="expr">solr\.node:.*</str>- <str name="expr">solr\.overseer:.*</str>- <str name="expr">solr\.core\..*:QUERY\..*</str>- <str name="expr">solr\.core\..*:ADMIN\..*</str>- <str name="expr">solr\.core\..*:CACHE\..*</str>- <str name="expr">solr\.core\..*:UPDATE\.updateHandler\..*</str>- <str name="expr">solr\.core\..*:CORE\.fs\..*</str>- <str name="expr">solr\.core\..*:HIGHLIGHTER\..*</str>- <str name="expr">solr\.core\..*:INDEX\..*</str>- <str name="expr">solr\.core\..*:REPLICATION\.replication\..*</str>- <str name="expr">solr\.core\..*:SEARCHER\.searcher\..*</str>- </lst>- </lst>- <arr name="jsonQueries">- <!--- jvm metrics- -->- <str>- .metrics["solr.jvm"] | to_entries | .[] | select(.key | startswith("buffers.")) | select(.key |- endswith(".Count")) as $object |- $object.key | split(".")[1] as $pool |- $object.value as $value |- {- name : "solr_metrics_jvm_buffers",- type : "GAUGE",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["pool"],- label_values : [$pool],- value : $value- }- </str>- </arr>- </lst>- </metrics>-- <search>- <lst name="request">- <lst name="query">- <str name="collection">collection1</str>- <str name="path">/select</str>- <lst name="params">- <str name="q">*:*</str>- <str name="start">0</str>- <str name="rows">0</str>- <str name="json.facet">- {- category: {- type: terms,- field: cat- }- }- </str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- .facets.category.buckets[] as $object |- $object.val as $term |- $object.count as $value |- {- name : "solr_facets_category",- type : "GAUGE",- help : "Category facets",- label_names : ["term"],- label_values : [$term],- value : $value- }- </str>- </arr>- </lst>- </search>-- </rules>--</config>diff --git a/solr/prometheus-exporter/src/test-files/conf/test-config-with-templates.xml b/solr/prometheus-exporter/src/test-files/conf/test-config-with-templates.xmldeleted file mode 100644index c235a0c53fd..00000000000--- a/solr/prometheus-exporter/src/test-files/conf/test-config-with-templates.xml+++ /dev/null@@ -1,222 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>-- <!--- See description of how templates work in the main conf/solr-exporter-config.xml file- -->- <jq-templates>- <template name="core-query" defaultType="GAUGE">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | {KEYSELECTOR} | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($category | startswith("QUERY")) |- select($handler | startswith("/")) |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_query_{UNIQUE}",- type: "{TYPE}",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_query_{UNIQUE}",- type: "{TYPE}",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </template>- <template name="core" defaultType="COUNTER">- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | {KEYSELECTOR} | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- {METRIC} as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_{UNIQUE}",- type: "{TYPE}",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </template>- <template name="node" defaultType="COUNTER">- .metrics["solr.node"] | to_entries | .[] | {KEYSELECTOR} as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- {METRIC} as $value |- {- name : "solr_metrics_node_{UNIQUE}",- type : "{TYPE}",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </template>- </jq-templates>-- <rules>-- <metrics>- <lst name="request">- <lst name="query">- <str name="path">/admin/metrics</str>- <lst name="params">- <str name="group">all</str>- <str name="type">all</str>- <str name="prefix"></str>- <str name="property"></str>- </lst>- </lst>- <arr name="jsonQueries">- <str>- $jq:core-query(errors_1minRate, select(.key | endswith(".errors")), 1minRate)- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".errors")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($category | startswith("QUERY")) |- select($handler | startswith("/")) |- $object.value["1minRate"] as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_query_errors_1minRate",- type: "GAUGE",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_query_errors_1minRate",- type: "GAUGE",- help: "See: https://solr.apache.org/guide/solr/latest/deployment-guide/performance-statistics-reference.html",- label_names: ["category", "searchHandler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- $jq:core(timeouts_total, select(.key | endswith(".timeouts")), count)- </str>- <str>- .metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |- $parent.key | split(".") as $parent_key_items |- $parent_key_items | length as $parent_key_item_len |- (if $parent_key_item_len == 3 then $parent_key_items[2] else "" end) as $core |- (if $parent_key_item_len == 5 then $parent_key_items[2] else "" end) as $collection |- (if $parent_key_item_len == 5 then $parent_key_items[3] else "" end) as $shard |- (if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |- (if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |- $parent.value | to_entries | .[] | select(.key | endswith(".timeouts")) | select (.value | type == "object") as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- select($handler | startswith("/")) |- $object.value.count as $value |- if $parent_key_item_len == 3 then- {- name: "solr_metrics_core_timeouts_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core"],- label_values: [$category, $handler, $core],- value: $value- }- else- {- name: "solr_metrics_core_timeouts_total",- type: "COUNTER",- help: "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names: ["category", "handler", "core", "collection", "shard", "replica"],- label_values: [$category, $handler, $core, $collection, $shard, $replica],- value: $value- }- end- </str>- <str>- $jq:node(time_seconds_total, select(.key | endswith(".totalTime")), ($object.value / 1000))- </str>- <str>- .metrics["solr.node"] | to_entries | .[] | select(.key | endswith(".totalTime")) as $object |- $object.key | split(".")[0] as $category |- $object.key | split(".")[1] as $handler |- ($object.value / 1000) as $value |- {- name : "solr_metrics_node_time_seconds_total",- type : "COUNTER",- help : "See following URL: https://solr.apache.org/guide/solr/latest/deployment-guide/metrics-reporting.html",- label_names : ["category", "handler"],- label_values : [$category, $handler],- value : $value- }- </str>- </arr>- </lst>- </metrics>-- </rules>--</config>diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/gb18030-example.xml b/solr/prometheus-exporter/src/test-files/exampledocs/gb18030-example.xmldeleted file mode 100644index 01743d3675c..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/gb18030-example.xml+++ /dev/null@@ -1,32 +0,0 @@-<?xml version="1.0" encoding="GB18030"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>- <doc>- <field name="id">GB18030TEST</field>- <field name="name">Test with some GB18030 encoded characters</field>- <field name="features">No accents here</field>- <field name="features">����һ������</field>- <field name="features">This is a feature (translated)</field>- <field name="features">����ļ��Ǻ��й���</field>- <field name="features">This document is very shiny (translated)</field>- <field name="price">0.0</field>- <field name="inStock">true</field>- </doc>-</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/hd.xml b/solr/prometheus-exporter/src/test-files/exampledocs/hd.xmldeleted file mode 100644index 9cf7d1b05d8..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/hd.xml+++ /dev/null@@ -1,56 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>-<doc>- <field name="id">SP2514N</field>- <field name="name">Samsung SpinPoint P120 SP2514N - hard drive - 250 GB - ATA-133</field>- <field name="manu">Samsung Electronics Co. Ltd.</field>- <!-- Join -->- <field name="manu_id_s">samsung</field>- <field name="cat">electronics</field>- <field name="cat">hard drive</field>- <field name="features">7200RPM, 8MB cache, IDE Ultra ATA-133</field>- <field name="features">NoiseGuard, SilentSeek technology, Fluid Dynamic Bearing (FDB) motor</field>- <field name="price">92.0</field>- <field name="popularity">6</field>- <field name="inStock">true</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>- <!-- Near Oklahoma city -->- <field name="store">35.0752,-97.032</field>-</doc>--<doc>- <field name="id">6H500F0</field>- <field name="name">Maxtor DiamondMax 11 - hard drive - 500 GB - SATA-300</field>- <field name="manu">Maxtor Corp.</field>- <!-- Join -->- <field name="manu_id_s">maxtor</field>- <field name="cat">electronics</field>- <field name="cat">hard drive</field>- <field name="features">SATA 3.0Gb/s, NCQ</field>- <field name="features">8.5ms seek</field>- <field name="features">16MB cache</field>- <field name="price">350.0</field>- <field name="popularity">6</field>- <field name="inStock">true</field>- <!-- Buffalo store -->- <field name="store">45.17614,-93.87341</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>-</doc>-</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/ipod_other.xml b/solr/prometheus-exporter/src/test-files/exampledocs/ipod_other.xmldeleted file mode 100644index 3de32f3b71c..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/ipod_other.xml+++ /dev/null@@ -1,60 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>--<doc>- <field name="id">F8V7067-APL-KIT</field>- <field name="name">Belkin Mobile Power Cord for iPod w/ Dock</field>- <field name="manu">Belkin</field>- <!-- Join -->- <field name="manu_id_s">belkin</field>- <field name="cat">electronics</field>- <field name="cat">connector</field>- <field name="features">car power adapter, white</field>- <field name="weight">4.0</field>- <field name="price">19.95</field>- <field name="popularity">1</field>- <field name="inStock">false</field>- <!-- Buffalo store -->- <field name="store">45.18014,-93.87741</field>- <field name="manufacturedate_dt">2005-08-01T16:30:25Z</field>-</doc>--<doc>- <field name="id">IW-02</field>- <field name="name">iPod & iPod Mini USB 2.0 Cable</field>- <field name="manu">Belkin</field>- <!-- Join -->- <field name="manu_id_s">belkin</field>- <field name="cat">electronics</field>- <field name="cat">connector</field>- <field name="features">car power adapter for iPod, white</field>- <field name="weight">2.0</field>- <field name="price">11.50</field>- <field name="popularity">1</field>- <field name="inStock">false</field>- <!-- San Francisco store -->- <field name="store">37.7752,-122.4232</field>- <field name="manufacturedate_dt">2006-02-14T23:55:59Z</field>-</doc>---</add>---diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/ipod_video.xml b/solr/prometheus-exporter/src/test-files/exampledocs/ipod_video.xmldeleted file mode 100644index 1ca5f6f5c21..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/ipod_video.xml+++ /dev/null@@ -1,40 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add><doc>- <field name="id">MA147LL/A</field>- <field name="name">Apple 60 GB iPod with Video Playback Black</field>- <field name="manu">Apple Computer Inc.</field>- <!-- Join -->- <field name="manu_id_s">apple</field>- <field name="cat">electronics</field>- <field name="cat">music</field>- <field name="features">iTunes, Podcasts, Audiobooks</field>- <field name="features">Stores up to 15,000 songs, 25,000 photos, or 150 hours of video</field>- <field name="features">2.5-inch, 320x240 color TFT LCD display with LED backlight</field>- <field name="features">Up to 20 hours of battery life</field>- <field name="features">Plays AAC, MP3, WAV, AIFF, Audible, Apple Lossless, H.264 video</field>- <field name="features">Notes, Calendar, Phone book, Hold button, Date display, Photo wallet, Built-in games, JPEG photo playback, Upgradeable firmware, USB 2.0 compatibility, Playback speed control, Rechargeable capability, Battery level indication</field>- <field name="includes">earbud headphones, USB cable</field>- <field name="weight">5.5</field>- <field name="price">399.00</field>- <field name="popularity">10</field>- <field name="inStock">true</field>- <!-- Dodge City store -->- <field name="store">37.7752,-100.0232</field>- <field name="manufacturedate_dt">2005-10-12T08:00:00Z</field>-</doc></add>diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/manufacturers.xml b/solr/prometheus-exporter/src/test-files/exampledocs/manufacturers.xmldeleted file mode 100644index e3121d5db1f..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/manufacturers.xml+++ /dev/null@@ -1,75 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>- <doc>- <field name="id">adata</field>- <field name="compName_s">A-Data Technology</field>- <field name="address_s">46221 Landing Parkway Fremont, CA 94538</field>- </doc>- <doc>- <field name="id">apple</field>- <field name="compName_s">Apple</field>- <field name="address_s">1 Infinite Way, Cupertino CA</field>- </doc>- <doc>- <field name="id">asus</field>- <field name="compName_s">ASUS Computer</field>- <field name="address_s">800 Corporate Way Fremont, CA 94539</field>- </doc>- <doc>- <field name="id">ati</field>- <field name="compName_s">ATI Technologies</field>- <field name="address_s">33 Commerce Valley Drive East Thornhill, ON L3T 7N6 Canada</field>- </doc>- <doc>- <field name="id">belkin</field>- <field name="compName_s">Belkin</field>- <field name="address_s">12045 E. Waterfront Drive Playa Vista, CA 90094</field>- </doc>- <doc>- <field name="id">canon</field>- <field name="compName_s">Canon, Inc.</field>- <field name="address_s">One Canon Plaza Lake Success, NY 11042</field>- </doc>- <doc>- <field name="id">corsair</field>- <field name="compName_s">Corsair Microsystems</field>- <field name="address_s">46221 Landing Parkway Fremont, CA 94538</field>- </doc>- <doc>- <field name="id">dell</field>- <field name="compName_s">Dell, Inc.</field>- <field name="address_s">One Dell Way Round Rock, Texas 78682</field>- </doc>- <doc>- <field name="id">maxtor</field>- <field name="compName_s">Maxtor Corporation</field>- <field name="address_s">920 Disc Drive Scotts Valley, CA 95066</field>- </doc>- <doc>- <field name="id">samsung</field>- <field name="compName_s">Samsung Electronics Co. Ltd.</field>- <field name="address_s">105 Challenger Rd. Ridgefield Park, NJ 07660-0511</field>- </doc>- <doc>- <field name="id">viewsonic</field>- <field name="compName_s">ViewSonic Corp</field>- <field name="address_s">381 Brea Canyon Road Walnut, CA 91789-0708</field>- </doc>-</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/mem.xml b/solr/prometheus-exporter/src/test-files/exampledocs/mem.xmldeleted file mode 100644index 48af5222fe4..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/mem.xml+++ /dev/null@@ -1,77 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>-<doc>- <field name="id">TWINX2048-3200PRO</field>- <field name="name">CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail</field>- <field name="manu">Corsair Microsystems Inc.</field>- <!-- Join -->- <field name="manu_id_s">corsair</field>- <field name="cat">electronics</field>- <field name="cat">memory</field>- <field name="features">CAS latency 2, 2-3-3-6 timing, 2.75v, unbuffered, heat-spreader</field>- <field name="price">185.00</field>- <field name="popularity">5</field>- <field name="inStock">true</field>- <!-- San Francisco store -->- <field name="store">37.7752,-122.4232</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>-- <!-- a field for testing payload tagged text via DelimitedPayloadTokenFilter -->- <field name="payloads">electronics|6.0 memory|3.0</field>-</doc>--<doc>- <field name="id">VS1GB400C3</field>- <field name="name">CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - Retail</field>- <field name="manu">Corsair Microsystems Inc.</field>- <!-- Join -->- <field name="manu_id_s">corsair</field>- <field name="cat">electronics</field>- <field name="cat">memory</field>- <field name="price">74.99</field>- <field name="popularity">7</field>- <field name="inStock">true</field>- <!-- Dodge City store -->- <field name="store">37.7752,-100.0232</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>-- <field name="payloads">electronics|4.0 memory|2.0</field>-</doc>--<doc>- <field name="id">VDBDB1A16</field>- <field name="name">A-DATA V-Series 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System Memory - OEM</field>- <field name="manu">A-DATA Technology Inc.</field>- <!-- Join -->- <field name="manu_id_s">corsair</field>- <field name="cat">electronics</field>- <field name="cat">memory</field>- <field name="features">CAS latency 3, 2.7v</field>- <!-- note: price & popularity is missing on this one -->- <field name="popularity">0</field>- <field name="inStock">true</field>- <!-- Buffalo store -->- <field name="store">45.18414,-93.88141</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>-- <field name="payloads">electronics|0.9 memory|0.1</field>-</doc>--</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/money.xml b/solr/prometheus-exporter/src/test-files/exampledocs/money.xmldeleted file mode 100644index e889c18bdce..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/money.xml+++ /dev/null@@ -1,65 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- Example documents utilizing the CurrencyFieldType type -->-<add>-<doc>- <field name="id">USD</field>- <field name="name">One Dollar</field>- <field name="manu">Bank of America</field>- <field name="manu_id_s">boa</field>- <field name="cat">currency</field>- <field name="features">Coins and notes</field>- <field name="price_c">1,USD</field>- <field name="inStock">true</field>-</doc>--<doc>- <field name="id">EUR</field>- <field name="name">One Euro</field>- <field name="manu">European Union</field>- <field name="manu_id_s">eu</field>- <field name="cat">currency</field>- <field name="features">Coins and notes</field>- <field name="price_c">1,EUR</field>- <field name="inStock">true</field>-</doc>--<doc>- <field name="id">GBP</field>- <field name="name">One British Pound</field>- <field name="manu">U.K.</field>- <field name="manu_id_s">uk</field>- <field name="cat">currency</field>- <field name="features">Coins and notes</field>- <field name="price_c">1,GBP</field>- <field name="inStock">true</field>-</doc>--<doc>- <field name="id">NOK</field>- <field name="name">One Krone</field>- <field name="manu">Bank of Norway</field>- <field name="manu_id_s">nor</field>- <field name="cat">currency</field>- <field name="features">Coins and notes</field>- <field name="price_c">1,NOK</field>- <field name="inStock">true</field>-</doc>--</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/monitor.xml b/solr/prometheus-exporter/src/test-files/exampledocs/monitor.xmldeleted file mode 100644index d0343af1594..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/monitor.xml+++ /dev/null@@ -1,34 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add><doc>- <field name="id">3007WFP</field>- <field name="name">Dell Widescreen UltraSharp 3007WFP</field>- <field name="manu">Dell, Inc.</field>- <!-- Join -->- <field name="manu_id_s">dell</field>- <field name="cat">electronics and computer1</field>- <field name="features">30" TFT active matrix LCD, 2560 x 1600, .25mm dot pitch, 700:1 contrast</field>- <field name="includes">USB cable</field>- <field name="weight">401.6</field>- <field name="price">2199.0</field>- <field name="popularity">6</field>- <field name="inStock">true</field>- <!-- Buffalo store -->- <field name="store">43.17614,-90.57341</field>-</doc></add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/monitor2.xml b/solr/prometheus-exporter/src/test-files/exampledocs/monitor2.xmldeleted file mode 100644index eaf9e223ccd..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/monitor2.xml+++ /dev/null@@ -1,33 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add><doc>- <field name="id">VA902B</field>- <field name="name">ViewSonic VA902B - flat panel display - TFT - 19"</field>- <field name="manu">ViewSonic Corp.</field>- <!-- Join -->- <field name="manu_id_s">viewsonic</field>- <field name="cat">electronics and stuff2</field>- <field name="features">19" TFT active matrix LCD, 8ms response time, 1280 x 1024 native resolution</field>- <field name="weight">190.4</field>- <field name="price">279.95</field>- <field name="popularity">6</field>- <field name="inStock">true</field>- <!-- Buffalo store -->- <field name="store">45.18814,-93.88541</field>-</doc></add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/mp500.xml b/solr/prometheus-exporter/src/test-files/exampledocs/mp500.xmldeleted file mode 100644index a8f51b643ca..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/mp500.xml+++ /dev/null@@ -1,43 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add><doc>- <field name="id">0579B002</field>- <field name="name">Canon PIXMA MP500 All-In-One Photo Printer</field>- <field name="manu">Canon Inc.</field>- <!-- Join -->- <field name="manu_id_s">canon</field>- <field name="cat">electronics</field>- <field name="cat">multifunction printer</field>- <field name="cat">printer</field>- <field name="cat">scanner</field>- <field name="cat">copier</field>- <field name="features">Multifunction ink-jet color photo printer</field>- <field name="features">Flatbed scanner, optical scan resolution of 1,200 x 2,400 dpi</field>- <field name="features">2.5" color LCD preview screen</field>- <field name="features">Duplex Copying</field>- <field name="features">Printing speed up to 29ppm black, 19ppm color</field>- <field name="features">Hi-Speed USB</field>- <field name="features">memory card: CompactFlash, Micro Drive, SmartMedia, Memory Stick, Memory Stick Pro, SD Card, and MultiMediaCard</field>- <field name="weight">352.0</field>- <field name="price">179.99</field>- <field name="popularity">6</field>- <field name="inStock">true</field>- <!-- Buffalo store -->- <field name="store">45.19214,-93.89941</field>-</doc></add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/sample.html b/solr/prometheus-exporter/src/test-files/exampledocs/sample.htmldeleted file mode 100644index 656b656b6ab..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/sample.html+++ /dev/null@@ -1,13 +0,0 @@-<html>-<head>- <title>Welcome to Solr</title>-</head>-<body>-<p>- Here is some text-</p>-<p>distinct<br/>words</p>-<div>Here is some text in a div</div>-<div>This has a <a href="http://www.apache.org">link</a>.</div>-</body>-</html>diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/sd500.xml b/solr/prometheus-exporter/src/test-files/exampledocs/sd500.xmldeleted file mode 100644index 145c6fd5de6..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/sd500.xml+++ /dev/null@@ -1,38 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add><doc>- <field name="id">9885A004</field>- <field name="name">Canon PowerShot SD500</field>- <field name="manu">Canon Inc.</field>- <!-- Join -->- <field name="manu_id_s">canon</field>- <field name="cat">electronics</field>- <field name="cat">camera</field>- <field name="features">3x zoop, 7.1 megapixel Digital ELPH</field>- <field name="features">movie clips up to 640x480 @30 fps</field>- <field name="features">2.0" TFT LCD, 118,000 pixels</field>- <field name="features">built in flash, red-eye reduction</field>- <field name="includes">32MB SD card, USB cable, AV cable, battery</field>- <field name="weight">6.4</field>- <field name="price">329.95</field>- <field name="popularity">7</field>- <field name="inStock">true</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z</field>- <!-- Buffalo store -->- <field name="store">45.19614,-93.90341</field>-</doc></add>diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/solr.xml b/solr/prometheus-exporter/src/test-files/exampledocs/solr.xmldeleted file mode 100644index a3656175217..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/solr.xml+++ /dev/null@@ -1,38 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>-<doc>- <field name="id">SOLR1000</field>- <field name="name">Solr, the Enterprise Search Server</field>- <field name="manu">Apache Software Foundation</field>- <field name="cat">software</field>- <field name="cat">search</field>- <field name="features">Advanced Full-Text Search Capabilities using Lucene</field>- <field name="features">Optimized for High Volume Web Traffic</field>- <field name="features">Standards Based Open Interfaces - XML and HTTP</field>- <field name="features">Comprehensive HTML Administration Interfaces</field>- <field name="features">Scalability - Efficient Replication to other Solr Search Servers</field>- <field name="features">Flexible and Adaptable with XML configuration and Schema</field>- <field name="features">Good unicode support: héllo (hello with an accent over the e)</field>- <field name="price">0.0</field>- <field name="popularity">10</field>- <field name="inStock">true</field>- <field name="incubationdate_dt">2006-01-17T00:00:00.000Z</field>-</doc>-</add>-diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/utf8-example.xml b/solr/prometheus-exporter/src/test-files/exampledocs/utf8-example.xmldeleted file mode 100644index e785b38199b..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/utf8-example.xml+++ /dev/null@@ -1,41 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!--- After posting this to Solr with bin/solr post, searching for "êâîôû" from- the solr/admin/ search page must return this document.- -->--<add>- <doc>- <field name="id">UTF8TEST</field>- <field name="name">Test with some UTF-8 encoded characters</field>- <field name="manu">Apache Software Foundation</field>- <field name="cat">software</field>- <field name="cat">search</field>- <field name="features">No accents here</field>- <field name="features">This is an e acute: é</field>- <field name="features">eaiou with circumflexes: êâîôû</field>- <field name="features">eaiou with umlauts: ëäïöü</field>- <field name="features">tag with escaped chars: <nicetag/></field>- <field name="features">escaped ampersand: Bonnie & Clyde</field>- <field name="features">Outside the BMP:𐌈 codepoint=10308, a circle with an x inside. UTF8=f0908c88 UTF16=d800 df08</field>- <field name="price">0.0</field>- <field name="inStock">true</field>- </doc>-</add>diff --git a/solr/prometheus-exporter/src/test-files/exampledocs/vidcard.xml b/solr/prometheus-exporter/src/test-files/exampledocs/vidcard.xmldeleted file mode 100644index d867d82acd1..00000000000--- a/solr/prometheus-exporter/src/test-files/exampledocs/vidcard.xml+++ /dev/null@@ -1,62 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<add>-<doc>- <field name="id">EN7800GTX/2DHTV/256M</field>- <field name="name">ASUS Extreme N7800GTX/2DHTV (256 MB)</field>- <!-- Denormalized -->- <field name="manu">ASUS Computer Inc.</field>- <!-- Join -->- <field name="manu_id_s">asus</field>- <field name="cat">electronics</field>- <field name="cat">graphics card</field>- <field name="features">NVIDIA GeForce 7800 GTX GPU/VPU clocked at 486MHz</field>- <field name="features">256MB GDDR3 Memory clocked at 1.35GHz</field>- <field name="features">PCI Express x16</field>- <field name="features">Dual DVI connectors, HDTV out, video input</field>- <field name="features">OpenGL 2.0, DirectX 9.0</field>- <field name="weight">16.0</field>- <field name="price">479.95</field>- <field name="popularity">7</field>- <field name="store">40.7143,-74.006</field>- <field name="inStock">false</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z/DAY</field>-</doc>- <!-- yes, you can add more than one document at a time -->-<doc>- <field name="id">100-435805</field>- <field name="name">ATI Radeon X1900 XTX 512 MB PCIE Video Card</field>- <field name="manu">ATI Technologies</field>- <!-- Join -->- <field name="manu_id_s">ati</field>- <field name="cat">electronics</field>- <field name="cat">graphics card</field>- <field name="features">ATI RADEON X1900 GPU/VPU clocked at 650MHz</field>- <field name="features">512MB GDDR3 SDRAM clocked at 1.55GHz</field>- <field name="features">PCI Express x16</field>- <field name="features">dual DVI, HDTV, svideo, composite out</field>- <field name="features">OpenGL 2.0, DirectX 9.0</field>- <field name="weight">48.0</field>- <field name="price">649.99</field>- <field name="popularity">7</field>- <field name="inStock">false</field>- <field name="manufacturedate_dt">2006-02-13T15:26:37Z/DAY</field>- <!-- NYC store -->- <field name="store">40.7143,-74.006</field>-</doc>-</add>diff --git a/solr/prometheus-exporter/src/test-files/log4j2.xml b/solr/prometheus-exporter/src/test-files/log4j2.xmldeleted file mode 100644index 528299e3e0b..00000000000--- a/solr/prometheus-exporter/src/test-files/log4j2.xml+++ /dev/null@@ -1,40 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.- -->-<!-- We're configuring testing to be synchronous due to "logging polution", see SOLR-13268 -->-<Configuration>- <Appenders>- <Console name="STDERR" target="SYSTEM_ERR">- <PatternLayout>- <Pattern>- %maxLen{%-4r %-5p (%t) [%notEmpty{n:%X{node_name}}%notEmpty{ c:%X{collection}}%notEmpty{ s:%X{shard}}%notEmpty{ r:%X{replica}}%notEmpty{ x:%X{core}}%notEmpty{ t:%X{trace_id}}] %c{1.} %m%notEmpty{- =>%ex{short}}}{10240}%n- </Pattern>- </PatternLayout>- </Console>- </Appenders>- <Loggers>- <!-- Use <AsyncLogger/<AsyncRoot and <Logger/<Root for asynchronous logging or synchonous logging respectively -->- <Logger name="org.apache.zookeeper" level="WARN"/>- <Logger name="org.apache.directory" level="WARN"/>- <Logger name="org.eclipse.jetty" level="INFO"/>-- <Root level="INFO">- <AppenderRef ref="STDERR"/>- </Root>- </Loggers>-</Configuration>diff --git a/solr/prometheus-exporter/src/test-files/query-metrics.json b/solr/prometheus-exporter/src/test-files/query-metrics.jsondeleted file mode 100644index c783760d781..00000000000--- a/solr/prometheus-exporter/src/test-files/query-metrics.json+++ /dev/null@@ -1,91 +0,0 @@-{- "metrics": {- "solr.core.sop.shard1.replica_n1": {- "QUERY./select.clientErrors": {- "15minRate": 0.0,- "1minRate": 0.0,- "5minRate": 0.0,- "count": 0,- "meanRate": 0.0- },- "QUERY./select.distrib.requestTimes": {- "15minRate": 0.47381584176620906,- "1minRate": 5.156897804421665,- "5minRate": 1.3543985709476762,- "count": 452,- "max_ms": 45.569189,- "meanRate": 0.0031956674240800156,- "mean_ms": 1.3674256818943078,- "median_ms": 0.904248,- "min_ms": 0.237069,- "p75_ms": 1.31788,- "p95_ms": 3.046683,- "p999_ms": 45.569189,- "p99_ms": 9.422545,- "stddev_ms": 2.6474877358096216- },- "QUERY./select.distrib.totalTime": 697333466,- "QUERY./select.errors": {- "15minRate": 0.0,- "1minRate": 0.0,- "5minRate": 0.0,- "count": 0,- "meanRate": 0.0- },- "QUERY./select.handlerStart": 1608094191276,- "QUERY./select.local.requestTimes": {- "15minRate": 0.033360420653812076,- "1minRate": 0.020230459936618303,- "5minRate": 0.030666407244305586,- "count": 4712,- "max_ms": 1.979528,- "meanRate": 0.033314125810846446,- "mean_ms": 0.08599039684057355,- "median_ms": 0.079579,- "min_ms": 0.0494,- "p75_ms": 0.101273,- "p95_ms": 0.105268,- "p999_ms": 0.118169,- "p99_ms": 0.114697,- "stddev_ms": 0.01344763035245806- },- "QUERY./select.local.totalTime": 864944172,- "QUERY./select.requestTimes": {- "15minRate": 0.5071762624200211,- "1minRate": 5.177128264358283,- "5minRate": 1.3850649781919817,- "count": 5164,- "max_ms": 45.57461,- "meanRate": 0.0365097931587792,- "mean_ms": 1.3723643524092175,- "median_ms": 0.922498,- "min_ms": 0.062992,- "p75_ms": 1.320626,- "p95_ms": 3.052055,- "p999_ms": 45.57461,- "p99_ms": 9.429055,- "stddev_ms": 2.6425577233728577- },- "QUERY./select.requests": 5164,- "QUERY./select.serverErrors": {- "15minRate": 0.0,- "1minRate": 0.0,- "5minRate": 0.0,- "count": 0,- "meanRate": 0.0- },- "QUERY./select.timeouts": {- "15minRate": 0.0,- "1minRate": 0.0,- "5minRate": 0.0,- "count": 0,- "meanRate": 0.0- },- "QUERY./select.totalTime": 1562277638- }- },- "responseHeader": {- "QTime": 1,- "status": 0- }-}diff --git a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/managed-schema.xml b/solr/prometheus-exporter/src/test-files/solr/collection1/conf/managed-schema.xmldeleted file mode 100644index 2c78c1667f0..00000000000--- a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/managed-schema.xml+++ /dev/null@@ -1,413 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!---- This example schema is the recommended starting point for users.- It should be kept correct and concise, usable out-of-the-box.--- For more information, on how to customize this file, please see- https://solr.apache.org/guide/solr/latest/indexing-guide/schema-elements.html-- PERFORMANCE NOTE: this schema includes many optional features and should not- be used for benchmarking. To improve performance one could- - set stored="false" for all fields possible (esp large fields) when you- only need to search on the field but don't need to return the original- value.- - set indexed="false" if you don't need to search on the field, but only- return the field as a result of searching on other indexed fields.- - remove all unneeded copyField statements- - for best index size and searching performance, set "index" to false- for all general text fields, use copyField to copy them to the- catchall "text" field, and use that for searching.--->--<schema name="collection1-config" version="1.7">- <!-- attribute "name" is the name of this schema and is only used for display purposes.- version="x.y" is Solr's version number for the schema syntax and- semantics. It should not normally be changed by applications.-- 1.0: multiValued attribute did not exist, all fields are multiValued- by nature- 1.1: multiValued attribute introduced, false by default- 1.2: omitTermFreqAndPositions attribute introduced, true by default- except for text fields.- 1.3: removed optional field compress feature- 1.4: autoGeneratePhraseQueries attribute introduced to drive QueryParser- behavior when a single string produces multiple tokens. Defaults- to off for version >= 1.4- 1.5: omitNorms defaults to true for primitive field types- (int, float, boolean, string...)- 1.6: useDocValuesAsStored defaults to true.- 1.7: docValues defaults to true, uninvertible defaults to false.- -->-- <!-- Valid attributes for fields:- name: mandatory - the name for the field- type: mandatory - the name of a field type from the- fieldTypes section- indexed: true if this field should be indexed (searchable or sortable)- stored: true if this field should be retrievable- docValues: true if this field should have doc values. Doc Values is- recommended (required, if you are using *Point fields) for faceting,- grouping, sorting and function queries. Doc Values will make the index- faster to load, more NRT-friendly and more memory-efficient.- They are currently only supported by StrField, UUIDField, all- *PointFields, and depending on the field type, they might require- the field to be single-valued, be required or have a default value- (check the documentation of the field type you're interested in for- more information)- multiValued: true if this field may contain multiple values per document- omitNorms: (expert) set to true to omit the norms associated with- this field (this disables length normalization and index-time- boosting for the field, and saves some memory). Only full-text- fields or fields that need an index-time boost need norms.- Norms are omitted for primitive (non-analyzed) types by default.- termVectors: [false] set to true to store the term vector for a- given field.- When using MoreLikeThis, fields used for similarity should be- stored for best performance.- termPositions: Store position information with the term vector.- This will increase storage costs.- termOffsets: Store offset information with the term vector. This- will increase storage costs.- required: The field is required. It will throw an error if the- value does not exist- default: a value that should be used if no value is specified- when adding a document.- -->-- <!-- field names should consist of alphanumeric or underscore characters only and- not start with a digit. This is not currently strictly enforced,- but other field names will not have first class support from all components- and back compatibility is not guaranteed. Names with both leading and- trailing underscores (e.g. _version_) are reserved.- -->-- <!-- In this _default configset, only four fields are pre-declared:- id, _version_, and _text_ and _root_. All other fields will be type guessed and added via the- "add-unknown-fields-to-the-schema" update request processor chain declared in solrconfig.xml.-- Note that many dynamic fields are also defined - you can use them to specify a- field's type via field naming conventions - see below.-- WARNING: The _text_ catch-all field will significantly increase your index size.- If you don't need it, consider removing it and the corresponding copyField directive.- -->-- <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />- <!-- docValues are enabled by default for long type so we don't need to index the version field -->- <field name="_version_" type="plong" indexed="false" stored="false"/>- <field name="_root_" type="string" indexed="true" stored="false" docValues="false" uninvertible="true" />- <field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>-- <!-- This can be enabled, in case the client does not know what fields may be searched. It isn't enabled by default- because it's very expensive to index everything twice. -->- <!-- <copyField source="*" dest="_text_"/> -->-- <!-- Dynamic field definitions allow using convention over configuration- for fields via the specification of patterns to match field names.- EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)- RESTRICTION: the glob-like pattern in the name attribute must have a "*" only at the start or the end. -->-- <dynamicField name="*_i" type="pint" indexed="true" stored="true"/>- <dynamicField name="*_is" type="pints" indexed="true" stored="true"/>- <dynamicField name="*_s" type="string" indexed="true" stored="true" />- <dynamicField name="*_ss" type="strings" indexed="true" stored="true"/>- <dynamicField name="*_l" type="plong" indexed="true" stored="true"/>- <dynamicField name="*_ls" type="plongs" indexed="true" stored="true"/>- <dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/>- <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>- <dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>- <dynamicField name="*_f" type="pfloat" indexed="true" stored="true"/>- <dynamicField name="*_fs" type="pfloats" indexed="true" stored="true"/>- <dynamicField name="*_d" type="pdouble" indexed="true" stored="true"/>- <dynamicField name="*_ds" type="pdoubles" indexed="true" stored="true"/>-- <!-- Type used for data-driven schema, to add a string copy for each text field -->- <dynamicField name="*_str" type="strings" stored="false" indexed="false" useDocValuesAsStored="false"/>-- <dynamicField name="*_dt" type="pdate" indexed="true" stored="true"/>- <dynamicField name="*_dts" type="pdate" indexed="true" stored="true" multiValued="true"/>- <dynamicField name="*_p" type="location" indexed="true" stored="true"/>- <dynamicField name="*_srpt" type="location_rpt" indexed="true" stored="true"/>-- <!-- payloaded dynamic fields -->- <dynamicField name="*_dpf" type="delimited_payloads_float" indexed="true" stored="true"/>- <dynamicField name="*_dpi" type="delimited_payloads_int" indexed="true" stored="true"/>- <dynamicField name="*_dps" type="delimited_payloads_string" indexed="true" stored="true"/>-- <dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>-- <!-- Field to use to determine and enforce document uniqueness.- Unless this field is marked with required="false", it will be a required field- -->- <uniqueKey>id</uniqueKey>-- <!-- copyField commands copy one field to another at the time a document- is added to the index. It's used either to index the same field differently,- or to add multiple fields to the same field for easier/faster searching.-- <copyField source="sourceFieldName" dest="destinationFieldName"/>- -->-- <!-- field type definitions. The "name" attribute is- just a label to be used by field definitions. The "class"- attribute and any other attributes determine the real- behavior of the fieldType.- Class names starting with "solr" refer to java classes in a- standard package such as org.apache.solr.analysis- -->-- <!-- sortMissingLast and sortMissingFirst attributes are optional attributes are- currently supported on types that are sorted internally as strings- and on numeric types.- This includes "string", "boolean", "pint", "pfloat", "plong", "pdate", "pdouble".- - If sortMissingLast="true", then a sort on this field will cause documents- without the field to come after documents with the field,- regardless of the requested sort order (asc or desc).- - If sortMissingFirst="true", then a sort on this field will cause documents- without the field to come before documents with the field,- regardless of the requested sort order.- - If sortMissingLast="false" and sortMissingFirst="false" (the default),- then default lucene sorting will be used which places docs without the- field first in an ascending sort and last in a descending sort.- -->-- <!-- The StrField type is not analyzed, but indexed/stored verbatim. -->- <fieldType name="string" class="solr.StrField" sortMissingLast="true" />- <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" />-- <!-- boolean type: "true" or "false" -->- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>- <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>-- <!--- Numeric field types that index values using KD-trees.- Point fields don't support FieldCache, so they must have if needed for sorting, faceting, functions, etc.- -->- <fieldType name="pint" class="solr.IntPointField"/>- <fieldType name="pfloat" class="solr.FloatPointField"/>- <fieldType name="plong" class="solr.LongPointField"/>- <fieldType name="pdouble" class="solr.DoublePointField"/>-- <fieldType name="pints" class="solr.IntPointField" multiValued="true"/>- <fieldType name="pfloats" class="solr.FloatPointField" multiValued="true"/>- <fieldType name="plongs" class="solr.LongPointField" multiValued="true"/>- <fieldType name="pdoubles" class="solr.DoublePointField" multiValued="true"/>-- <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and- is a more restricted form of the canonical representation of dateTime- http://www.w3.org/TR/xmlschema-2/#dateTime- The trailing "Z" designates UTC time and is mandatory.- Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z- All other components are mandatory.-- Expressions can also be used to denote calculations that should be- performed relative to "NOW" to determine the value, ie...-- NOW/HOUR- ... Round to the start of the current hour- NOW-1DAY- ... Exactly 1 day prior to now- NOW/DAY+6MONTHS+3DAYS- ... 6 months and 3 days in the future from the start of- the current day-- -->- <!-- KD-tree versions of date fields -->- <fieldType name="pdate" class="solr.DatePointField"/>- <fieldType name="pdates" class="solr.DatePointField" multiValued="true"/>-- <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->- <fieldType name="binary" class="solr.BinaryField"/>-- <!-- solr.TextField allows the specification of custom text analyzers- specified as a tokenizer and a list of token filters. Different- analyzers may be specified for indexing and querying.-- The optional positionIncrementGap puts space between multiple fields of- this type on the same document, with the purpose of preventing false phrase- matching across fields.-- For more info on customizing your analyzer chain, please see- https://solr.apache.org/guide/solr/latest/indexing-guide/document-analysis.html#using-analyzers-tokenizers-and-filters- -->-- <!-- One can also specify an existing Analyzer class that has a- default constructor via the class attribute on the analyzer element.- Example:- <fieldType name="text_greek" class="solr.TextField">- <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>- </fieldType>- -->-- <!-- A text field that only splits on whitespace for exact matching of words -->- <dynamicField name="*_ws" type="text_ws" indexed="true" stored="true"/>- <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- </analyzer>- </fieldType>-- <!-- A general text field that has reasonable, generic- cross-language defaults: it tokenizes with StandardTokenizer,- removes stop words from case-insensitive "stopwords.txt"- (empty by default), and down cases. At query time only, it- also applies synonyms.- -->- <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true" uninvertible="true">- <analyzer type="index">- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />- <!-- in this example, we will only use synonyms at query time- <filter class="solr.SynonymGraphFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>- <filter class="solr.FlattenGraphFilterFactory"/>- -->- <filter class="solr.LowerCaseFilterFactory"/>- </analyzer>- <analyzer type="query">- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />- <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>- <filter class="solr.LowerCaseFilterFactory"/>- </analyzer>- </fieldType>-- <!-- Just like text_general except it reverses the characters of- each token, to enable more efficient leading wildcard queries.- -->- <dynamicField name="*_txt_rev" type="text_general_rev" indexed="true" stored="true"/>- <fieldType name="text_general_rev" class="solr.TextField" positionIncrementGap="100">- <analyzer type="index">- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />- <filter class="solr.LowerCaseFilterFactory"/>- <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"- maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/>- </analyzer>- <analyzer type="query">- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />- <filter class="solr.LowerCaseFilterFactory"/>- </analyzer>- </fieldType>-- <dynamicField name="*_phon_en" type="phonetic_en" indexed="true" stored="true"/>- <fieldType name="phonetic_en" stored="false" indexed="true" class="solr.TextField" >- <analyzer>- <tokenizer class="solr.StandardTokenizerFactory"/>- <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>- </analyzer>- </fieldType>-- <!-- lowercases the entire field value, keeping it as a single token. -->- <dynamicField name="*_s_lower" type="lowercase" indexed="true" stored="true"/>- <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">- <analyzer>- <tokenizer class="solr.KeywordTokenizerFactory"/>- <filter class="solr.LowerCaseFilterFactory" />- </analyzer>- </fieldType>-- <!--- Example of using PathHierarchyTokenizerFactory at index time, so- queries for paths match documents at that path, or in descendent paths- -->- <dynamicField name="*_descendent_path" type="descendent_path" indexed="true" stored="true"/>- <fieldType name="descendent_path" class="solr.TextField">- <analyzer type="index">- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />- </analyzer>- <analyzer type="query">- <tokenizer class="solr.KeywordTokenizerFactory" />- </analyzer>- </fieldType>-- <!--- Example of using PathHierarchyTokenizerFactory at query time, so- queries for paths match documents at that path, or in ancestor paths- -->- <dynamicField name="*_ancestor_path" type="ancestor_path" indexed="true" stored="true"/>- <fieldType name="ancestor_path" class="solr.TextField">- <analyzer type="index">- <tokenizer class="solr.KeywordTokenizerFactory" />- </analyzer>- <analyzer type="query">- <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />- </analyzer>- </fieldType>-- <!-- This point type indexes the coordinates as separate fields (subFields)- If subFieldType is defined, it references a type, and a dynamic field- definition is created matching *___<typename>. Alternately, if- subFieldSuffix is defined, that is used to create the subFields.- Example: if subFieldType="double", then the coordinates would be- indexed in fields myloc_0___double,myloc_1___double.- Example: if subFieldSuffix="_d" then the coordinates would be indexed- in fields myloc_0_d,myloc_1_d- The subFields are an implementation detail of the fieldType, and end- users normally should not need to know about them.- -->- <dynamicField name="*_point" type="point" indexed="true" stored="true"/>- <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>-- <!-- A specialized field for geospatial search filters and distance sorting. -->- <fieldType name="location" class="solr.LatLonPointSpatialField"/>-- <!-- A geospatial field type that supports multiValued and polygon shapes.- For more information about this and other spatial fields see:- https://solr.apache.org/guide/solr/latest/query-guide/spatial-search.html- -->- <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"- geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />-- <!-- Payloaded field types -->- <fieldType name="delimited_payloads_float" stored="false" indexed="true" class="solr.TextField">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>- </analyzer>- </fieldType>- <fieldType name="delimited_payloads_int" stored="false" indexed="true" class="solr.TextField">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="integer"/>- </analyzer>- </fieldType>- <fieldType name="delimited_payloads_string" stored="false" indexed="true" class="solr.TextField">- <analyzer>- <tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="identity"/>- </analyzer>- </fieldType>-- <!-- Similarity is the scoring routine for each document vs. a query.- A custom Similarity or SimilarityFactory may be specified here, but- the default is fine for most applications.- For more info: https://solr.apache.org/guide/solr/latest/indexing-guide/schema-elements.html#similarity- -->- <!--- <similarity class="com.example.solr.CustomSimilarityFactory">- <str name="paramkey">param value</str>- </similarity>- -->--</schema>diff --git a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/solrconfig.xml b/solr/prometheus-exporter/src/test-files/solr/collection1/conf/solrconfig.xmldeleted file mode 100644index 6ca22087fe4..00000000000--- a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/solrconfig.xml+++ /dev/null@@ -1,177 +0,0 @@-<?xml version="1.0" encoding="UTF-8" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<config>-- <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>-- <dataDir>${solr.data.dir:}</dataDir>-- <directoryFactory name="DirectoryFactory"- class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>-- <codecFactory class="solr.SchemaCodecFactory"/>-- <indexConfig>- <lockType>${solr.lock.type:native}</lockType>- </indexConfig>-- <updateHandler class="solr.DirectUpdateHandler2">-- <updateLog>- <str name="dir">${solr.ulog.dir:}</str>- </updateLog>-- <autoCommit>- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>- <openSearcher>false</openSearcher>- </autoCommit>-- <autoSoftCommit>- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>- </autoSoftCommit>-- </updateHandler>-- <query>-- <maxBooleanClauses>1024</maxBooleanClauses>-- <filterCache class="solr.CaffeineCache"- size="512"- initialSize="512"- autowarmCount="0"/>-- <queryResultCache class="solr.CaffeineCache"- size="512"- initialSize="512"- autowarmCount="0"/>-- <documentCache class="solr.CaffeineCache"- size="512"- initialSize="512"- autowarmCount="0"/>-- <cache name="perSegFilter"- class="solr.search.CaffeineCache"- size="10"- initialSize="0"- autowarmCount="10"- regenerator="solr.NoOpRegenerator" />-- <enableLazyFieldLoading>true</enableLazyFieldLoading>-- <queryResultWindowSize>20</queryResultWindowSize>-- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>-- <listener event="newSearcher" class="solr.QuerySenderListener">- <arr name="queries">- </arr>- </listener>- <listener event="firstSearcher" class="solr.QuerySenderListener">- <arr name="queries">- </arr>- </listener>-- <useColdSearcher>false</useColdSearcher>-- </query>-- <requestDispatcher>-- <httpCaching never304="true" />-- </requestDispatcher>-- <requestHandler name="/select" class="solr.SearchHandler">- <lst name="defaults">- <str name="echoParams">explicit</str>- <int name="rows">10</int>- </lst>- </requestHandler>-- <updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/>- <updateProcessor class="solr.RemoveBlankFieldUpdateProcessorFactory" name="remove-blank"/>- <updateProcessor class="solr.FieldNameMutatingUpdateProcessorFactory" name="field-name-mutating">- <str name="pattern">[^\w-\.]</str>- <str name="replacement">_</str>- </updateProcessor>- <updateProcessor class="solr.ParseBooleanFieldUpdateProcessorFactory" name="parse-boolean"/>- <updateProcessor class="solr.ParseLongFieldUpdateProcessorFactory" name="parse-long"/>- <updateProcessor class="solr.ParseDoubleFieldUpdateProcessorFactory" name="parse-double"/>- <updateProcessor class="solr.ParseDateFieldUpdateProcessorFactory" name="parse-date">- <arr name="format">- <str>yyyy-MM-dd'T'HH:mm:ss.SSSZ</str>- <str>yyyy-MM-dd'T'HH:mm:ss,SSSZ</str>- <str>yyyy-MM-dd'T'HH:mm:ss.SSS</str>- <str>yyyy-MM-dd'T'HH:mm:ss,SSS</str>- <str>yyyy-MM-dd'T'HH:mm:ssZ</str>- <str>yyyy-MM-dd'T'HH:mm:ss</str>- <str>yyyy-MM-dd'T'HH:mmZ</str>- <str>yyyy-MM-dd'T'HH:mm</str>- <str>yyyy-MM-dd HH:mm:ss.SSSZ</str>- <str>yyyy-MM-dd HH:mm:ss,SSSZ</str>- <str>yyyy-MM-dd HH:mm:ss.SSS</str>- <str>yyyy-MM-dd HH:mm:ss,SSS</str>- <str>yyyy-MM-dd HH:mm:ssZ</str>- <str>yyyy-MM-dd HH:mm:ss</str>- <str>yyyy-MM-dd HH:mmZ</str>- <str>yyyy-MM-dd HH:mm</str>- <str>yyyy-MM-dd</str>- </arr>- </updateProcessor>- <updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields">- <lst name="typeMapping">- <str name="valueClass">java.lang.String</str>- <str name="fieldType">text_general</str>- <lst name="copyField">- <str name="dest">*_str</str>- <int name="maxChars">256</int>- </lst>- <!-- Use as default mapping instead of defaultFieldType -->- <bool name="default">true</bool>- </lst>- <lst name="typeMapping">- <str name="valueClass">java.lang.Boolean</str>- <str name="fieldType">booleans</str>- </lst>- <lst name="typeMapping">- <str name="valueClass">java.util.Date</str>- <str name="fieldType">pdates</str>- </lst>- <lst name="typeMapping">- <str name="valueClass">java.lang.Long</str>- <str name="valueClass">java.lang.Integer</str>- <str name="fieldType">plongs</str>- </lst>- <lst name="typeMapping">- <str name="valueClass">java.lang.Number</str>- <str name="fieldType">pdoubles</str>- </lst>- </updateProcessor>-- <!-- The update.autoCreateFields property can be turned to false to disable schemaless mode -->- <updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:true}"- processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">- <processor class="solr.LogUpdateProcessorFactory"/>- <processor class="solr.DistributedUpdateProcessorFactory"/>- <processor class="solr.RunUpdateProcessorFactory"/>- </updateRequestProcessorChain>--</config>diff --git a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/stopwords.txt b/solr/prometheus-exporter/src/test-files/solr/collection1/conf/stopwords.txtdeleted file mode 100644index ae1e83eeb3d..00000000000--- a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/stopwords.txt+++ /dev/null@@ -1,14 +0,0 @@-# Licensed to the Apache Software Foundation (ASF) under one or more-# contributor license agreements. See the NOTICE file distributed with-# this work for additional information regarding copyright ownership.-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.diff --git a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/synonyms.txt b/solr/prometheus-exporter/src/test-files/solr/collection1/conf/synonyms.txtdeleted file mode 100644index eab4ee87537..00000000000--- a/solr/prometheus-exporter/src/test-files/solr/collection1/conf/synonyms.txt+++ /dev/null@@ -1,29 +0,0 @@-# The ASF licenses this file to You under the Apache License, Version 2.0-# (the "License"); you may not use this file except in compliance with-# the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.--#------------------------------------------------------------------------#some test synonym mappings unlikely to appear in real input text-aaafoo => aaabar-bbbfoo => bbbfoo bbbbar-cccfoo => cccbar cccbaz-fooaaa,baraaa,bazaaa--# Some synonym groups specific to this example-GB,gib,gigabyte,gigabytes-MB,mib,megabyte,megabytes-Television, Televisions, TV, TVs-#notice we use "gib" instead of "GiB" so any WordDelimiterGraphFilter coming-#after us won't split it into two words.--# Synonym mappings can be used for spelling correction too-pixima => pixma-diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/PrometheusExporterTestBase.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/PrometheusExporterTestBase.javadeleted file mode 100644index 93ab8b347b8..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/PrometheusExporterTestBase.java+++ /dev/null@@ -1,74 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus;--import java.util.Map;-import org.apache.solr.client.solrj.request.CollectionAdminRequest;-import org.apache.solr.cloud.AbstractDistribZkTestBase;-import org.apache.solr.cloud.SolrCloudTestCase;-import org.apache.solr.prometheus.utils.Helpers;-import org.junit.BeforeClass;--public class PrometheusExporterTestBase extends SolrCloudTestCase {-- public static final String COLLECTION = "collection1";- public static final String CONF_NAME = COLLECTION + "_config";- public static final String CONF_DIR =- getFile("solr/" + COLLECTION + "/conf").toAbsolutePath().toString();- public static final int NUM_SHARDS = 2;- public static final int NUM_REPLICAS = 2;- public static final int NUM_NODES = NUM_SHARDS * NUM_REPLICAS;- public static final int TIMEOUT = 60;-- public static final Map<String, Double> FACET_VALUES =- Map.of(- "electronics", 14.0,- "currency", 4.0,- "memory", 3.0,- "and", 2.0,- "card", 2.0,- "connector", 2.0,- "drive", 2.0,- "graphics", 2.0,- "hard", 2.0,- "search", 2.0);-- @Override- public void setUp() throws Exception {- super.setUp();- }-- @Override- public void tearDown() throws Exception {- super.tearDown();- }-- @BeforeClass- public static void setupCluster() throws Exception {- System.setProperty("metricsEnabled", "true");- configureCluster(NUM_NODES).addConfig(CONF_NAME, getFile(CONF_DIR)).configure();-- CollectionAdminRequest.createCollection(COLLECTION, CONF_NAME, NUM_SHARDS, NUM_REPLICAS)- .process(cluster.getSolrClient());-- AbstractDistribZkTestBase.waitForRecoveriesToFinish(- COLLECTION, cluster.getZkStateReader(), true, true, TIMEOUT);-- Helpers.indexAllDocs(cluster.getSolrClient());- }-}diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/collector/MetricSamplesTest.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/collector/MetricSamplesTest.javadeleted file mode 100644index 8707e4fc7b3..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/collector/MetricSamplesTest.java+++ /dev/null@@ -1,133 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.collector;--import io.prometheus.client.Collector;-import java.util.ArrayList;-import java.util.Arrays;-import java.util.Collections;-import java.util.HashMap;-import java.util.List;-import java.util.Map;-import java.util.stream.Collectors;-import org.apache.solr.SolrTestCase;-import org.junit.Test;--public class MetricSamplesTest extends SolrTestCase {-- private Collector.MetricFamilySamples.Sample sample(String name, Double value) {- return new Collector.MetricFamilySamples.Sample(- name, Collections.emptyList(), Collections.emptyList(), value);- }-- private Collector.MetricFamilySamples samples(- String metricName, Collector.Type type, Collector.MetricFamilySamples.Sample... samples) {- return new Collector.MetricFamilySamples(- metricName, type, "help", new ArrayList<>(Arrays.asList(samples)));- }-- private void validateMetricSamples(- List<Collector.MetricFamilySamples> allMetrics,- String metricName,- List<Double> expectedValues) {-- Collector.MetricFamilySamples test1 =- allMetrics.stream()- .filter(s -> s.name.equals(metricName))- .findFirst()- .orElseThrow(() -> new RuntimeException("Unable to find item " + metricName));-- assertEquals(- expectedValues, test1.samples.stream().map(s -> s.value).collect(Collectors.toList()));- }-- @Test- public void asList() {- MetricSamples samples =- new MetricSamples(- Map.of(- "test1",- samples(- "test1", Collector.Type.GAUGE, sample("test1", 1.0), sample("test1", 2.0)),- "test2", samples("test2", Collector.Type.GAUGE, sample("test2", 1.0))));-- List<Collector.MetricFamilySamples> output = samples.asList();-- assertEquals(2, output.size());-- validateMetricSamples(output, "test1", Arrays.asList(1.0, 2.0));- validateMetricSamples(output, "test2", Collections.singletonList(1.0));- }-- @Test- public void addAll() {- MetricSamples lhs =- new MetricSamples(- new HashMap<>(- Map.of(- "same",- samples(- "same", Collector.Type.GAUGE, sample("same", 1.0), sample("same", 2.0)),- "diff1", samples("diff1", Collector.Type.GAUGE, sample("diff1", 1.0)))));-- MetricSamples rhs =- new MetricSamples(- Map.of(- "same",- samples(- "test1",- Collector.Type.GAUGE,- sample("test1", 3.0),- sample("test1", 4.0),- sample("same", 1.0)),- "diff2", samples("diff2", Collector.Type.GAUGE, sample("diff2", 1.0))));-- lhs.addAll(rhs);-- List<Collector.MetricFamilySamples> output = lhs.asList();-- validateMetricSamples(output, "same", Arrays.asList(1.0, 2.0, 3.0, 4.0));- validateMetricSamples(output, "diff1", Collections.singletonList(1.0));- validateMetricSamples(output, "diff2", Collections.singletonList(1.0));- }-- @Test- public void addSamplesIfNotPresent() {-- MetricSamples testMetricSamples =- new MetricSamples(- new HashMap<>(- Map.of("same", samples("same", Collector.Type.GAUGE, sample("same", 1.0)))));-- Collector.MetricFamilySamples sameSamples =- samples("same", Collector.Type.GAUGE, sample("same", 1.0));- Collector.MetricFamilySamples newSamples =- samples("new", Collector.Type.GAUGE, sample("new", 2.0), sample("new", 3.0));- Collector.MetricFamilySamples alreadyPresentSamples =- samples("new", Collector.Type.GAUGE, sample("new", 4.0));-- testMetricSamples.addSamplesIfNotPresent("same", sameSamples);- testMetricSamples.addSamplesIfNotPresent("new", newSamples);- testMetricSamples.addSamplesIfNotPresent("new", alreadyPresentSamples);-- List<Collector.MetricFamilySamples> output = testMetricSamples.asList();-- validateMetricSamples(output, "same", Collections.singletonList(1.0));- validateMetricSamples(output, "new", Arrays.asList(2.0, 3.0));- }-}diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/MetricsQueryTemplateTest.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/MetricsQueryTemplateTest.javadeleted file mode 100644index 115ae677eb2..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/MetricsQueryTemplateTest.java+++ /dev/null@@ -1,134 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.exporter;--import static org.apache.solr.prometheus.exporter.MetricsConfiguration.xpathFactory;--import com.fasterxml.jackson.databind.JsonNode;-import com.fasterxml.jackson.databind.ObjectMapper;-import java.util.List;-import java.util.Optional;-import java.util.regex.Matcher;-import javax.xml.parsers.DocumentBuilderFactory;-import javax.xml.xpath.XPathConstants;-import net.thisptr.jackson.jq.JsonQuery;-import org.apache.solr.SolrTestCaseJ4;-import org.apache.solr.prometheus.utils.Helpers;-import org.junit.Test;-import org.w3c.dom.Document;-import org.w3c.dom.NodeList;--public class MetricsQueryTemplateTest extends SolrTestCaseJ4 {- @Test- public void testTemplatesApplyDuringInit() throws Exception {- MetricsConfiguration config = Helpers.loadConfiguration("conf/test-config-with-templates.xml");- List<MetricsQuery> metrics = config.getMetricsConfiguration();- List<JsonQuery> jsonQueries = metrics.get(0).getJsonQueries();- final int expectedJqQueriesInConfig = 6;- assertEquals(expectedJqQueriesInConfig, jsonQueries.size());- // JsonQuery does not implement an equals so use the string expression with whitespace collapsed- // to a single space- for (int q = 0; q < jsonQueries.size(); q += 2) {- String expected = jsonQueries.get(q + 1).toString().replaceAll("\\s+", " ").trim();- String actual = jsonQueries.get(q).toString().replaceAll("\\s+", " ").trim();- assertEquals(expected, actual);- }- }-- @Test- public void testTemplateRegexMatchAndApply() {- final String[] matches =- new String[] {- "$jq:jvm-item(memory_bytes,select(.key | startswith(\"memory.total.\")),object.value,\n\nGAUGE)",- "$jq:node( client_errors_total, select(.key | endswith(\".clientErrors\")), count )",- "$jq:node(time_seconds_total,\nselect(.key == \"UPDATE.updateHandler.autoCommits\"), ($object.value / 1000)) ",- "$jq:core-query( 1minRate, select(.key | endswith(\".distrib.requestTimes\")) )"- };- final String[] expectedApply =- new String[] {- "memory_bytes, select(.key | startswith(\"memory.total.\")), $object.value, GAUGE",- "client_errors_total, select(.key | endswith(\".clientErrors\")), $object.value.count, COUNTER",- "time_seconds_total, select(.key == \"UPDATE.updateHandler.autoCommits\"), ($object.value / 1000), COUNTER",- "1minRate, select(.key | endswith(\".distrib.requestTimes\")), $object.value[\"1minRate\"], COUNTER"- };-- MetricsQueryTemplate template =- new MetricsQueryTemplate("test", "{UNIQUE}, {KEYSELECTOR}, {METRIC}, {TYPE}", "COUNTER");-- for (int m = 0; m < matches.length; m++) {- Optional<Matcher> maybeMatcher = MetricsQueryTemplate.matches(matches[m]);- assertTrue(maybeMatcher.isPresent());- String jsonQuery = template.applyTemplate(maybeMatcher.get());- assertEquals(expectedApply[m], jsonQuery);- }- }-- @Test- public void testQueryMetricTemplate() throws Exception {- Document config =- DocumentBuilderFactory.newInstance()- .newDocumentBuilder()- .parse(SolrTestCaseJ4.getFile("conf/test-config-with-templates.xml").toFile());- NodeList jqTemplates =- (NodeList)- (xpathFactory.newXPath())- .evaluate("/config/jq-templates/template", config, XPathConstants.NODESET);- assertNotNull(jqTemplates);- assertTrue(jqTemplates.getLength() > 0);- MetricsQueryTemplate coreQueryTemplate =- MetricsConfiguration.loadJqTemplates(jqTemplates).get("core-query");- assertNotNull(coreQueryTemplate);-- ObjectMapper objectMapper = new ObjectMapper();- JsonNode parsedMetrics =- objectMapper.readTree(SolrTestCaseJ4.getFile("query-metrics.json").toFile());- final String[] queryMetrics =- new String[] {- "$jq:core-query(1minRate, select(.key | endswith(\".distrib.requestTimes\")), 1minRate)",- "$jq:core-query(p75_ms, select(.key | endswith(\".distrib.requestTimes\")), p75_ms)",- "$jq:core-query(mean_rate, select(.key | endswith(\".distrib.requestTimes\")), meanRate)",- "$jq:core-query(local_5minRate, select(.key | endswith(\".local.requestTimes\")), 5minRate)",- "$jq:core-query(local_median_ms, select(.key | endswith(\".local.requestTimes\")), median_ms)",- "$jq:core-query(local_p95_ms, select(.key | endswith(\".local.requestTimes\")), p95_ms)",- "$jq:core-query(local_count, select(.key | endswith(\".local.requestTimes\")), count, COUNTER)"- };-- final double[] expectedMetrics =- new double[] {- 5.156897804421665,- 1.31788,- 0.0031956674240800156,- 0.030666407244305586,- 0.079579,- 0.105268,- 4712- };-- for (int m = 0; m < queryMetrics.length; m++) {- Optional<Matcher> maybe = MetricsQueryTemplate.matches(queryMetrics[m]);- assertTrue(maybe.isPresent());- Matcher matcher = maybe.get();- JsonQuery jsonQuery = JsonQuery.compile(coreQueryTemplate.applyTemplate(matcher));- List<JsonNode> results = jsonQuery.apply(parsedMetrics);- assertNotNull(results);- assertEquals(1, results.size());- double value = results.get(0).get("value").doubleValue();- assertEquals(expectedMetrics[m], value, 0.0001);- }- }-}diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTest.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTest.javadeleted file mode 100644index e10141ee6e2..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTest.java+++ /dev/null@@ -1,29 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.solr.prometheus.exporter;--import org.apache.solr.SolrTestCase;--public class SolrExporterTest extends SolrTestCase {- public void testDefaultClusterIdHash() {- assertEquals(- "a2542cfcee",- SolrExporter.makeShortHash(- "my.zk.server:2181,other.zk.server:2181,third.zk.server:2181/solr"));- assertEquals("1999820420", SolrExporter.makeShortHash("my.solr.server:8983/solr"));- }-}diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTestBase.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTestBase.javadeleted file mode 100644index 70061fa914f..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/exporter/SolrExporterTestBase.java+++ /dev/null@@ -1,140 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.solr.prometheus.exporter;--import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;-import java.io.BufferedReader;-import java.io.IOException;-import java.io.InputStreamReader;-import java.lang.invoke.MethodHandles;-import java.net.BindException;-import java.net.ServerSocket;-import java.net.URI;-import java.net.URISyntaxException;-import java.nio.charset.StandardCharsets;-import java.util.HashMap;-import java.util.Map;-import org.apache.http.HttpStatus;-import org.apache.http.client.methods.CloseableHttpResponse;-import org.apache.http.client.methods.HttpGet;-import org.apache.http.impl.client.CloseableHttpClient;-import org.apache.http.impl.client.HttpClients;-import org.apache.solr.common.util.IOUtils;-import org.apache.solr.common.util.Pair;-import org.apache.solr.prometheus.PrometheusExporterTestBase;-import org.apache.solr.prometheus.utils.Helpers;-import org.junit.After;-import org.slf4j.Logger;-import org.slf4j.LoggerFactory;--/** Test base class. */-@ThreadLeakScope(ThreadLeakScope.Scope.NONE)-public class SolrExporterTestBase extends PrometheusExporterTestBase {-- private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());-- private SolrExporter solrExporter;- private CloseableHttpClient httpClient;- private int promtheusExporterPort;-- @Override- @After- public void tearDown() throws Exception {- if (solrExporter != null) {- solrExporter.stop();- }- IOUtils.closeQuietly(httpClient);- super.tearDown();- }-- protected void startMetricsExporterWithConfiguration(String scrapeConfiguration)- throws Exception {-- final int maxAttempts = 3;- for (int attempt = 1; attempt <= maxAttempts; attempt++) {- try (ServerSocket socket = new ServerSocket(0)) {- promtheusExporterPort = socket.getLocalPort();- }-- try {- solrExporter =- new SolrExporter(- promtheusExporterPort,- 25,- 10,- SolrScrapeConfiguration.solrCloud(cluster.getZkServer().getZkAddress()),- Helpers.loadConfiguration(scrapeConfiguration),- "test");-- solrExporter.start();- break;- } catch (BindException e) {- solrExporter.stop();- if (attempt == maxAttempts) {- throw e;- }- log.warn("Failed to start exporter with port bind exception, retrying on a new port");- }- }-- httpClient = HttpClients.createDefault();-- for (int i = 0; i < 50; ++i) {- Thread.sleep(100);-- try {- getAllMetrics();- System.out.println("Prometheus exporter running");- break;- } catch (IOException exception) {- if (i % 10 == 0) {- System.out.println("Waiting for Prometheus exporter");- }- }- }- }-- protected Map<String, Double> getAllMetrics() throws URISyntaxException, IOException {- URI uri = new URI("http://localhost:" + promtheusExporterPort + "/metrics");-- HttpGet request = new HttpGet(uri);-- Map<String, Double> metrics = new HashMap<>();-- try (CloseableHttpResponse response = httpClient.execute(request)) {- assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());- try (BufferedReader reader =- new BufferedReader(- new InputStreamReader(response.getEntity().getContent(), StandardCharsets.UTF_8))) {- String currentLine;-- while ((currentLine = reader.readLine()) != null) {- // Lines that begin with a # are a comment in prometheus.- if (currentLine.startsWith("#")) {- continue;- }-- Pair<String, Double> kv = Helpers.parseMetricsLine(currentLine);-- metrics.put(kv.first(), kv.second());- }- }- }-- return metrics;- }-}diff --git a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/utils/Helpers.java b/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/utils/Helpers.javadeleted file mode 100644index ca14a499e2d..00000000000--- a/solr/prometheus-exporter/src/test/org/apache/solr/prometheus/utils/Helpers.java+++ /dev/null@@ -1,69 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.prometheus.utils;--import java.io.IOException;-import java.nio.file.Files;-import java.nio.file.Path;-import java.util.Objects;-import java.util.stream.Stream;-import org.apache.solr.SolrTestCaseJ4;-import org.apache.solr.client.solrj.SolrClient;-import org.apache.solr.client.solrj.SolrServerException;-import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;-import org.apache.solr.common.util.Pair;-import org.apache.solr.prometheus.PrometheusExporterTestBase;-import org.apache.solr.prometheus.exporter.MetricsConfiguration;--public class Helpers {-- public static MetricsConfiguration loadConfiguration(String pathRsrc) throws Exception {- return MetricsConfiguration.from(SolrTestCaseJ4.getFile(pathRsrc).toString());- }-- public static void indexAllDocs(SolrClient client) throws IOException, SolrServerException {- Path exampleDocsDir = SolrTestCaseJ4.getFile("exampledocs").toAbsolutePath();- try (Stream<Path> files = Objects.requireNonNull(Files.list(exampleDocsDir))) {- files- .filter(xmlFile -> xmlFile.getFileName().toString().endsWith(".xml"))- .forEach(- xml -> {- ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update");- try {- req.addFile(xml, "application/xml");- client.request(req, PrometheusExporterTestBase.COLLECTION);- } catch (Exception e) {- throw new RuntimeException(e);- }- });- client.commit(PrometheusExporterTestBase.COLLECTION);- }- }-- // Parses a prometheus line into key and value, e.g.- // solr_exporter_duration_seconds_bucket{le="1.0",} 1.0- // first="solr_exporter_duration_seconds_bucket{le="1.0",}," second=1.0- public static Pair<String, Double> parseMetricsLine(String line) {- int spaceIdx = line.lastIndexOf(' ');- if (spaceIdx == -1) {- throw new IllegalArgumentException(- "Failed parsing metrics line, must contain a space. Line was: " + line);- }- return new Pair<>(line.substring(0, spaceIdx), Double.parseDouble(line.substring(spaceIdx)));- }-}diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/installing-solr.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/installing-solr.adocindex 73f2598357b..15cc9898a02 100644--- a/solr/solr-ref-guide/modules/deployment-guide/pages/installing-solr.adoc+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/installing-solr.adoc@@ -30,8 +30,8 @@ Download the latest release https://solr.apache.org/downloads.html.There are three separate packages:-* `solr-{solr-full-version}.tgz` the full binary package, for all operating systems. This package includes all first-party Solr modules and accessories (e.g. the `prometheus-exporter`).-* `solr-{solr-full-version}-slim.tgz` the slim binary package, for all operating systems. This package only includes what is necessary to run Solr. Modules and accessories (e.g. the `prometheus-exporter`) are not included.+* `solr-{solr-full-version}.tgz` the full binary package, for all operating systems. This package includes all first-party Solr modules and accessories.+* `solr-{solr-full-version}-slim.tgz` the slim binary package, for all operating systems. This package only includes what is necessary to run Solr. Modules and accessories are not included.* `solr-{solr-full-version}-src.tgz` the package Solr source code.This is useful if you want to develop on Solr without using the official Git repository.@@ -102,11 +102,6 @@ Solr's `modules` directory includes 1st-party add-ons for specialized features tSee the section xref:configuration-guide:solr-modules.adoc[] for more information.*This is not included in the `slim` distribution.*-prometheus-exporter/::-A standalone application, included under `bin/`, that monitors Solr instances and produces Prometheus metrics.-See the section xref:deployment-guide:monitoring-with-prometheus-and-grafana.adoc[] for more information.-*This is not included in the `slim` distribution.*-cross-dc-manager/::A standalone application, included under `bin/`, that manages Cross-Datacenter indexing across SolrClouds.See the section xref:deployment-guide:cross-dc-replication.adoc[] for more information.diff --git a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adocindex 004539aa1aa..4aa257e8f6b 100644--- a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc+++ b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc@@ -177,7 +177,7 @@ Solr upgraded to Jetty 12.x from 10.x as Jetty 10 and 11 have reached end-of-lif=== Open Telemetry-* JMX, SLF4J and Graphite metric reporters have been removed. Users should migrate to using OTLP or the /admin/metrics endpoint with external tools to get metrics to their preferred backend.+* The Prometheus exporter, JMX, SLF4J and Graphite metric reporters have been removed. Users should migrate to using OTLP or the /admin/metrics endpoint with external tools to get metrics to their preferred backend such as the link:https://opentelemetry.io/docs/collector/[OTEL Collector].* Core renaming and swapping will reset the state of all the corresponding cores metrics