You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Minoru Osuka (JIRA)" <ji...@apache.org> on 2017/12/27 13:18:00 UTC
[jira] [Comment Edited] (SOLR-11795) Add Solr metrics exporter for
Prometheus
[ https://issues.apache.org/jira/browse/SOLR-11795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16304229#comment-16304229 ]
Minoru Osuka edited comment on SOLR-11795 at 12/27/17 1:17 PM:
---------------------------------------------------------------
solr-exporter can expose search results, Metrics API response, and Solr API responses as metrics. The following example exposes facets results as metrics:
{code}
queries:
- query:
collection: collection1
path: /select
params:
- q: "*:*"
- start: 0
- rows: 0
- json.facet: |-
{
category: {
type: terms,
field: cat
}
}
jsonQueries:
# solr_facets_category
- |-
.facets.category.buckets[] as $object |
$object.val as $term |
$object.count as $value |
{
name : "solr_facets_category",
type : "GAUGE",
help : "Category facets",
label_names : ["collection", "term"],
label_values : ["collection1", $term],
value : $value
}
{code}
For other metrics settings, please see config.yml.
was (Author: minoru):
solr-exporter can expose the search results as well as the Metrics API as metrics. For example, expose the facets results as metrics as following (config.yml):
{code}
queries:
- query:
collection: collection1
path: /select
params:
- q: "*:*"
- start: 0
- rows: 0
- json.facet: |-
{
category: {
type: terms,
field: cat
}
}
jsonQueries:
# solr_facets_category
- |-
.facets.category.buckets[] as $object |
$object.val as $term |
$object.count as $value |
{
name : "solr_facets_category",
type : "GAUGE",
help : "Category facets",
label_names : ["collection", "term"],
label_values : ["collection1", $term],
value : $value
}
{code}
> Add Solr metrics exporter for Prometheus
> ----------------------------------------
>
> Key: SOLR-11795
> URL: https://issues.apache.org/jira/browse/SOLR-11795
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 7.2
> Reporter: Minoru Osuka
> Priority: Minor
> Fix For: master (8.0)
>
> Attachments: SOLR-11795.patch, solr-dashboard.png, solr-exporter-diagram.png
>
>
> I 'd like to monitor Solr using Prometheus and Grafana.
> I've already created Solr metrics exporter for Prometheus. I'd like to contribute to contrib directory if you don't mind.
> !solr-exporter-diagram.png|thumbnail!
> !solr-dashboard.png|thumbnail!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org