You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* flexibility to setup and define custom metrics very easily.
7
+
* flexibility to setup and define custom metrics easily
8
8
* a wide range of out of the box instrumentation
9
9
10
10
@@ -15,7 +15,8 @@ At the moment Alfred Telemetry Solr extension auto-configures a CompositeRegistr
15
15
* a [`PrometheusMeterRegistry`](https://micrometer.io/docs/registry/prometheus)
16
16
* a [`GraphiteMeterRegistry`](https://micrometer.io/docs/registry/graphite)
17
17
18
-
The extension implements a MicrometerHandler which binds all available metrics to the global registry. For graphite the handler needs to be called once in the beginning, which is done via an init script added to the image.
18
+
The extension implements a MicrometerHandler which binds all available metrics to the global registry.
19
+
For graphite the handler needs to be called once in the beginning, which is done via an init script added to the image.
19
20
20
21
In order to visualize correctly the output, a DummyResponseWriter is also provided, which simply displays verbatim the output of Prometheus scraping.
21
22
@@ -28,8 +29,6 @@ See examples in integration tests.
28
29
29
30
At the moment only Prometheus and Graphite are supported as monitoring systems.
30
31
31
-
For Graphite the library offered by micrometer conflicts with the library from inside solr6 and therefore replaces that one.
32
-
33
32
Disabling and configuring the graphite registry can be done via environment variables:
34
33
35
34
| Variable | Default |
@@ -110,10 +109,20 @@ At the moment following metrics are included:
110
109
111
110
See metrics provided by TomcatMetrics [here](https://github.com/micrometer-metrics/micrometer/tree/master/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/tomcat).
112
111
112
+
## Jetty metrics
113
+
114
+
Jetty metrics binding provides several jetty-related metrics.
115
+
At the moment following metrics are included:
116
+
117
+
* JettyStatisticsMetrics
118
+
119
+
See metrics provided by JettyStatisticsMetrics [here](https://github.com/micrometer-metrics/micrometer/tree/master/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jetty/JettyStatisticsMetrics.java).
120
+
121
+
Note: JettyStatisticsMetrics has been deprecated in favor of TimedHandler, but that requires a newer version of jetty than the one shipped in solr artifacts.
113
122
114
123
## Custom metrics
115
124
116
-
Following custom metrics have been implemented.
125
+
Besides metrics offered by micrometer, following custom metrics have been implemented:
Copy file name to clipboardExpand all lines: alfred-telemetry-solr/alfred-telemetry-solr-common/src/main/java/eu/xenit/alfred/telemetry/solr/monitoring/registry/RegistryRegistrar.java
Copy file name to clipboardExpand all lines: alfred-telemetry-solr/alfred-telemetry-solr-common/src/main/java/eu/xenit/alfred/telemetry/solr/util/Util.java
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,18 @@
1
1
packageeu.xenit.alfred.telemetry.solr.util;
2
2
3
-
importjava.util.Arrays;
4
-
importjava.util.Collections;
5
-
importjava.util.List;
3
+
importjava.util.*;
6
4
importjava.util.stream.Collectors;
7
5
8
6
publicclassUtil {
7
+
// everything is enabled by default except graphite registry, tomcat and jetty metrics
Copy file name to clipboardExpand all lines: alfred-telemetry-solr/alfred-telemetry-solr4/src/main/java/eu/xenit/alfred/telemetry/solr/handler/MicrometerHandler.java
0 commit comments