Revision 56170
Added by Alessia Bardi almost 5 years ago
webapps/dnet-container-provision/trunk/src/main/java/eu/dnetlib/metrics/PrometheusEndpointConfig.java | ||
---|---|---|
1 |
package eu.dnetlib.metrics; |
|
2 |
|
|
3 |
/** |
|
4 |
* Created by Alessia Bardi on 2019-06-21. |
|
5 |
* |
|
6 |
* @author Alessia Bardi |
|
7 |
*/ |
|
8 |
|
|
9 |
import java.time.Duration; |
|
10 |
|
|
11 |
import io.micrometer.core.instrument.Clock; |
|
12 |
import io.micrometer.prometheus.PrometheusConfig; |
|
13 |
import io.micrometer.prometheus.PrometheusMeterRegistry; |
|
14 |
import io.micrometer.spring.autoconfigure.export.prometheus.PrometheusProperties; |
|
15 |
import io.prometheus.client.CollectorRegistry; |
|
16 |
import org.springframework.context.annotation.Bean; |
|
17 |
import org.springframework.context.annotation.Configuration; |
|
18 |
|
|
19 |
@Configuration |
|
20 |
public class PrometheusEndpointConfig { |
|
21 |
|
|
22 |
@Bean |
|
23 |
public PrometheusMeterRegistry prometheusMeterRegistry(PrometheusConfig config, CollectorRegistry collectorRegistry, |
|
24 |
Clock clock) { |
|
25 |
return new PrometheusMeterRegistry(config, collectorRegistry, clock); |
|
26 |
} |
|
27 |
|
|
28 |
@Bean |
|
29 |
public Clock micrometerClock() { |
|
30 |
return Clock.SYSTEM; |
|
31 |
} |
|
32 |
|
|
33 |
@Bean |
|
34 |
public PrometheusConfig prometheusConfig(PrometheusProperties props) { |
|
35 |
return new DefaultPrometheusConfig(props); |
|
36 |
} |
|
37 |
|
|
38 |
@Bean |
|
39 |
public PrometheusProperties prometheusProperties(){ |
|
40 |
return new PrometheusProperties(); |
|
41 |
} |
|
42 |
|
|
43 |
@Bean |
|
44 |
public CollectorRegistry collectorRegistry() { |
|
45 |
return new CollectorRegistry(true); |
|
46 |
} |
|
47 |
|
|
48 |
private class DefaultPrometheusConfig implements PrometheusConfig { |
|
49 |
private final PrometheusProperties props; |
|
50 |
private final PrometheusConfig defaults = k -> null; |
|
51 |
|
|
52 |
private DefaultPrometheusConfig(PrometheusProperties props) { |
|
53 |
this.props = props; |
|
54 |
} |
|
55 |
|
|
56 |
@Override |
|
57 |
public String get(String k) { |
|
58 |
return null; |
|
59 |
} |
|
60 |
|
|
61 |
@Override |
|
62 |
public boolean descriptions() { |
|
63 |
return props.isDescriptions(); |
|
64 |
} |
|
65 |
|
|
66 |
@Override |
|
67 |
public Duration step() { |
|
68 |
return props.getStep() == null ? defaults.step() : props.getStep(); |
|
69 |
} |
|
70 |
} |
|
71 |
} |
webapps/dnet-container-provision/trunk/src/main/java/eu/dnetlib/metrics/TestController.java | ||
---|---|---|
1 |
package eu.dnetlib.metrics; |
|
2 |
|
|
3 |
import java.util.Collections; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
import io.micrometer.core.instrument.DistributionSummary; |
|
7 |
import io.micrometer.core.instrument.MeterRegistry; |
|
8 |
import org.apache.commons.logging.Log; |
|
9 |
import org.apache.commons.logging.LogFactory; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 |
import org.springframework.stereotype.Controller; |
|
12 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
13 |
import org.springframework.web.bind.annotation.RequestMethod; |
|
14 |
import org.springframework.web.bind.annotation.ResponseBody; |
|
15 |
|
|
16 |
/** |
|
17 |
* Created by Alessia Bardi on 2019-06-21. |
|
18 |
* |
|
19 |
* @author Alessia Bardi |
|
20 |
*/ |
|
21 |
|
|
22 |
@Controller |
|
23 |
public final class TestController { |
|
24 |
|
|
25 |
private static final Log log = LogFactory.getLog(TestController.class); |
|
26 |
|
|
27 |
private final DistributionSummary counter; |
|
28 |
|
|
29 |
@Autowired |
|
30 |
public TestController(final MeterRegistry registry) { |
|
31 |
this.counter = DistributionSummary.builder("get.counter.requests") |
|
32 |
.tags("version", "v1") |
|
33 |
.publishPercentileHistogram() |
|
34 |
.register(registry); |
|
35 |
} |
|
36 |
|
|
37 |
@RequestMapping(value = "/test", method = RequestMethod.GET) |
|
38 |
@ResponseBody |
|
39 |
public List<String> getStudents() { |
|
40 |
log.info("/test [GET]"); |
|
41 |
counter.record(10.0); // <-- We shall record latency here |
|
42 |
return Collections.emptyList(); |
|
43 |
} |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
} |
webapps/dnet-container-provision/trunk/src/main/java/eu/dnetlib/metrics/PrometheusEndpoint.java | ||
---|---|---|
1 |
package eu.dnetlib.metrics; |
|
2 |
|
|
3 |
import io.micrometer.prometheus.PrometheusMeterRegistry; |
|
4 |
import org.apache.commons.logging.Log; |
|
5 |
import org.apache.commons.logging.LogFactory; |
|
6 |
import org.springframework.beans.factory.annotation.Autowired; |
|
7 |
import org.springframework.stereotype.Controller; |
|
8 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestMethod; |
|
10 |
import org.springframework.web.bind.annotation.ResponseBody; |
|
11 |
|
|
12 |
/** |
|
13 |
* Created by Alessia Bardi on 2019-06-21. |
|
14 |
* |
|
15 |
* @author Alessia Bardi |
|
16 |
*/ |
|
17 |
@Controller |
|
18 |
@RequestMapping(value = "/prom") |
|
19 |
public final class PrometheusEndpoint { |
|
20 |
|
|
21 |
private static final Log log = LogFactory.getLog(PrometheusEndpoint.class); |
|
22 |
|
|
23 |
@Autowired |
|
24 |
private PrometheusMeterRegistry registry; |
|
25 |
|
|
26 |
@RequestMapping(method = RequestMethod.GET) |
|
27 |
@ResponseBody |
|
28 |
public String getStudents() { |
|
29 |
log.info("/prometheus [GET]"); |
|
30 |
return registry.scrape(); |
|
31 |
} |
|
32 |
} |
webapps/dnet-container-provision/trunk/src/main/webapp/images/admin.svg | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|
2 |
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|
3 |
|
|
4 |
<svg |
|
5 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
6 |
xmlns:cc="http://creativecommons.org/ns#" |
|
7 |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|
8 |
xmlns:svg="http://www.w3.org/2000/svg" |
|
9 |
xmlns="http://www.w3.org/2000/svg" |
|
10 |
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|
11 |
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
|
12 |
width="819.81274" |
|
13 |
height="801.9024" |
|
14 |
id="svg2" |
|
15 |
version="1.1" |
|
16 |
inkscape:version="0.47 r22583" |
|
17 |
sodipodi:docname="admin_tools.svg"> |
|
18 |
<defs |
|
19 |
id="defs4"> |
|
20 |
<inkscape:perspective |
|
21 |
sodipodi:type="inkscape:persp3d" |
|
22 |
inkscape:vp_x="0 : 526.18109 : 1" |
|
23 |
inkscape:vp_y="0 : 1000 : 0" |
|
24 |
inkscape:vp_z="744.09448 : 526.18109 : 1" |
|
25 |
inkscape:persp3d-origin="372.04724 : 350.78739 : 1" |
|
26 |
id="perspective10" /> |
|
27 |
</defs> |
|
28 |
<sodipodi:namedview |
|
29 |
id="base" |
|
30 |
pagecolor="#ffffff" |
|
31 |
bordercolor="#666666" |
|
32 |
borderopacity="1.0" |
|
33 |
inkscape:pageopacity="0.0" |
|
34 |
inkscape:pageshadow="2" |
|
35 |
inkscape:zoom="0.35" |
|
36 |
inkscape:cx="983.51788" |
|
37 |
inkscape:cy="601.44005" |
|
38 |
inkscape:document-units="px" |
|
39 |
inkscape:current-layer="layer1" |
|
40 |
showgrid="false" |
|
41 |
inkscape:window-width="1440" |
|
42 |
inkscape:window-height="801" |
|
43 |
inkscape:window-x="0" |
|
44 |
inkscape:window-y="0" |
|
45 |
inkscape:window-maximized="0" /> |
|
46 |
<metadata |
|
47 |
id="metadata7"> |
|
48 |
<rdf:RDF> |
|
49 |
<cc:Work |
|
50 |
rdf:about=""> |
|
51 |
<dc:format>image/svg+xml</dc:format> |
|
52 |
<dc:type |
|
53 |
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|
54 |
<dc:title></dc:title> |
|
55 |
</cc:Work> |
|
56 |
</rdf:RDF> |
|
57 |
</metadata> |
|
58 |
<g |
|
59 |
inkscape:label="Layer 1" |
|
60 |
inkscape:groupmode="layer" |
|
61 |
id="layer1" |
|
62 |
transform="translate(1138.5179,-331.89985)"> |
|
63 |
<g |
|
64 |
id="g3637" |
|
65 |
transform="matrix(-0.60220798,0.79833924,-0.79833924,-0.60220798,-568.91854,1748.1963)" |
|
66 |
style="stroke:#000000;stroke-width:20;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
|
67 |
inkscape:export-filename="/Users/andersbr/Documents/coop/art/web/admin_tools.png" |
|
68 |
inkscape:export-xdpi="5.6116552" |
|
69 |
inkscape:export-ydpi="5.6116552"> |
|
70 |
<path |
|
71 |
id="path3599" |
|
72 |
d="m -720,340.9375 c -14.92025,0 -29.63885,0.84333 -44.125,2.46875 l 1.375,12.625 3.78125,31.375 -0.375,0.0312 0,0.0312 -0.15625,0 -0.0937,0 -4.28125,0.53125 -3.625,0.46875 0,0.0312 -4.25,0.59375 -0.28125,0.0312 -0.34375,0.0625 -3.59375,0.59375 -0.625,0.0937 -3.59375,0.625 -4.1875,0.75 -0.53125,0.125 -0.0937,0 -3.5625,0.71875 -0.59375,0.125 -3.5625,0.75 -0.59375,0.125 -3.53125,0.78125 -0.625,0.15625 -3.5,0.84375 -4.09375,1 -0.5,0.125 -0.0937,0.0312 -3.5,0.9375 -0.59375,0.15625 -3.4375,0.9375 -0.625,0.1875 -3.4375,1 -0.59375,0.1875 -3.40625,1.03125 -0.59375,0.1875 -3.40625,1.0625 -0.0625,0.0312 -0.53125,0.15625 -3.375,1.125 -0.59375,0.21875 -3.375,1.15625 -0.5625,0.1875 -3.34375,1.21875 -0.3125,0.125 -0.28125,0.0937 -3.3125,1.25 -0.59375,0.21875 -1.90625,0.71875 -16.125,-41.65625 c -31.01955,11.84799 -60.15932,27.53518 -86.8125,46.46875 l 26.53125,36.8125 -0.8125,0.5625 -0.4375,0.3125 -0.0312,0.0312 -2.8125,2.09375 -3.28125,2.46875 -0.46875,0.375 -2.78125,2.15625 -0.46875,0.34375 -2.75,2.1875 -0.1875,0.15625 -0.28125,0.21875 -2.71875,2.21875 -0.4375,0.375 -2.71875,2.25 -0.40625,0.34375 -0.0312,0.0312 -2.65625,2.28125 -0.1875,0.1875 -0.28125,0.21875 -2.625,2.3125 -0.4375,0.375 -2.625,2.34375 -0.4375,0.40625 -2.5625,2.375 -0.0625,0.0625 -0.375,0.34375 -2.5625,2.40625 -0.4375,0.40625 -2.53125,2.4375 -0.40625,0.40625 -2.5,2.46875 -0.40625,0.4375 -2.46875,2.46875 -0.4375,0.4375 -2.40625,2.53125 -0.4375,0.4375 -2.375,2.53125 -0.25,0.28125 -0.15625,0.15625 -2.375,2.59375 -0.40625,0.4375 -2.34375,2.59375 -0.40625,0.4375 L -978,503 l -0.28125,0.34375 -0.0937,0.0937 -2.28125,2.65625 -0.375,0.46875 -2.5,2.96875 -35.5625,-29.6875 c -21.251,25.14417 -39.4143,52.9871 -53.8438,82.96875 l 43.25,19.875 -1.4686,3.1875 -0.25,0.5625 -1.4376,3.21875 -0.031,0.0937 -0.2188,0.46875 -1.4062,3.25 -0.25,0.5625 -1.3438,3.28125 -1.5624,3.84375 -0.2189,0.59375 -1.2811,3.3125 -0.2189,0.5625 -1.25,3.34375 -0.2188,0.5625 -1.1874,3.34375 -0.2188,0.59375 -1.1562,3.375 -0.125,0.40625 -0.063,0.15625 -1.125,3.40625 -0.1874,0.59375 -1.0938,3.40625 -0.1875,0.5625 -1.0313,3.4375 -0.1874,0.59375 -1,3.4375 -0.1563,0.59375 -0.9687,3.46875 -0.125,0.46875 -0.031,0.125 -0.9063,3.46875 -0.1562,0.625 -0.875,3.46875 -0.031,0.0937 -0.125,0.53125 -0.8438,3.5 -0.125,0.59375 -0.8125,3.53125 -0.125,0.625 -0.75,3.53125 -0.094,0.4375 -0.031,0.1875 -0.6875,3.5625 -0.125,0.59375 -0.6875,3.75 -48.125,-8.90625 c -4.7434,24.35544 -7.25,49.53814 -7.25,75.28125 0,8.10663 0.2642,16.14057 0.75,24.125 l 22.1563,-1.53125 28.0624,-2.3125 0.031,0.34375 0.031,0.28125 0.2812,3.6875 0.031,0 0.4063,4.34375 0.031,0.25 0.031,0.375 0.4688,4.28125 -0.031,0 0.4687,3.65625 0.5626,4.28125 0.094,0.625 0.5313,3.625 0.094,0.59375 0.5625,3.625 0.094,0.625 0.75,4.1875 0.6562,3.59375 0.125,0.625 0.6875,3.53125 0.031,0.1875 0.094,0.4375 0.75,3.53125 0.125,0.625 0.8125,3.53125 0.125,0.59375 0.8438,3.53125 0.1562,0.59375 0.875,3.5 0.1562,0.59375 0.9063,3.46875 0.031,0.0625 0.125,0.53125 0.9687,3.46875 0.1563,0.59375 1,3.4375 0.1874,0.59375 1.0313,3.4375 0.125,0.375 0.062,0.21875 1.0938,3.40625 0.1874,0.5625 1.125,3.40625 0.031,0.0625 0.1563,0.5 0.5,1.40625 -49,16.90625 c 10.5965,32.21863 25.2781,62.5841 43.4062,90.5 l 44.1875,-29.46875 1,1.46875 0.3437,0.5 1.9688,2.90625 0.094,0.125 0.25,0.375 2.03125,2.875 0.34375,0.46875 2.03125,2.84375 0.375,0.5 2.0625,2.8125 0.375,0.46875 2.09375,2.8125 0.375,0.46875 2.15625,2.78125 0.3125,0.40625 0.0625,0.0625 2.1875,2.75 0.375,0.4375 2.1875,2.71875 0.40625,0.46875 2.25,2.6875 0.375,0.46875 2.28125,2.65625 0.0937,0.0937 0.28125,0.34375 2.3125,2.65625 0.40625,0.4375 2.34375,2.59375 0.40625,0.46875 2.375,2.5625 0.15625,0.15625 0.25,0.28125 2.8125,2.96875 -0.0312,0.0312 2.4375,2.5 0.4375,0.4375 2.46875,2.5 0.1875,0.1875 0.21875,0.21875 2.5,2.46875 0.40625,0.40625 2.53125,2.4375 0.4375,0.40625 2.5625,2.40625 0.375,0.34375 0.0625,0.0625 2.5625,2.375 0.4375,0.40625 2.25,2 -36.25,40.3751 c 24.86466,22.6221 52.66979,42.0786 82.75,57.75 l 4.96875,-9.5313 19.9375,-39.5625 0.5,0.25 0,-0.031 0.0625,0.031 0,0.031 3.125,1.5626 0.5625,0.2812 3.71875,1.8125 3.1875,1.5 0.5625,0.2813 3.1875,1.4687 0.53125,0.2187 0.0312,0.031 3.25,1.4375 0.5625,0.25 3.25,1.4062 0.5625,0.2188 3.84375,1.5938 0,0.031 3.28125,1.3125 0,-0.031 3.875,1.5313 0.59375,0.2187 3.3125,1.2188 0.59375,0.2189 3.34375,1.2186 0.5625,0.1875 3.375,1.1562 0.59375,0.2188 3.375,1.125 0.53125,0.1562 0.0625,0.031 3.40625,1.0625 0.59375,0.1875 4,1.2187 3.4375,1 0.625,0.1876 3.4375,0.9687 0,-0.031 4.09375,1.0938 0.15625,0.031 0.4375,0.125 3.5,0.875 0.59375,0.1563 3.5,0.8125 0.625,0.1562 3.375,0.75 -12.15625,54.25 c 27.55772,6.1494 56.2138,9.375 85.625,9.375 5.06672,0 10.10498,-0.09 15.125,-0.2812 l -0.65625,-20.7188 -1.5625,-34.9374 0.4375,-0.031 0.21875,0 3.71875,-0.1563 0.15625,0 0.5,-0.031 4.34375,-0.2812 0,0.031 3.71875,-0.2812 4.34375,-0.3438 0.625,-0.062 3.6875,-0.3437 0.25,-0.031 0.375,-0.031 3.6875,-0.4061 0.625,-0.062 4.28125,-0.5313 3.625,-0.4687 0.625,-0.094 3.625,-0.5313 0.125,-0.031 0.5,-0.062 3.59375,-0.5938 0.625,-0.094 3.59375,-0.625 4.1875,-0.75 0.53125,-0.125 0.0937,0 3.5625,-0.7187 0.59375,-0.125 3.5625,-0.75 0.59375,-0.125 3.53125,-0.7813 0.625,-0.1562 3.5,-0.8125 0.59375,-0.1563 3.5,-0.875 0.4375,-0.125 0.15625,-0.031 4.09375,-1.0939 0,0.031 3.4375,-0.9686 0.625,-0.1876 3.4375,-1 0.59375,-0.1562 0.90625,-0.2812 16.15625,53.0624 c 32.66879,-10.0167 63.52461,-24.1879 91.9375,-41.9062 l -28.78125,-46.7188 2.1875,-1.3437 0.53125,-0.3437 2.96875,-1.875 0.5,-0.3126 2.9375,-1.9062 0.5,-0.3438 2.9375,-1.9374 0.5,-0.3438 2.875,-1.9688 0.0625,-0.031 0.4375,-0.3125 2.875,-2.0313 0.5,-0.3437 2.84375,-2.0625 0.40625,-0.2812 0.0625,-0.063 2.8125,-2.0937 3.28125,-2.4688 0.46875,-0.375 2.78125,-2.125 0.46875,-0.375 2.75,-2.1875 0.0625,-0.0625 0.40625,-0.3125 2.71875,-2.21875 0.4375,-0.375 2.71875,-2.25 0.40625,-0.34375 0.0312,-0.0312 2.65625,-2.28125 0.1875,-0.1875 0.28125,-0.21875 2.625,-2.3125 0.4375,-0.375 2.625,-2.34375 0.4375,-0.40625 2.5625,-2.375 0.0625,-0.0625 0.375,-0.34375 2.5625,-2.40625 0.4375,-0.40625 2.53125,-2.4375 0.40625,-0.40625 2.5,-2.46875 0.21875,-0.21875 0.1875,-0.1875 2.46875,-2.5 0.4375,-0.4375 1.5,-1.5625 38.8125,37.4688 c 22.99636,-24.3893 42.89051,-51.74018 59.0625,-81.4063 L -422,893.40625 l 0.125,-0.1875 0.21875,-0.375 0.0625,-0.125 1.6875,-3.09375 1.96875,-3.65625 0.15625,-0.28125 0.125,-0.25 1.625,-3.125 0.28125,-0.53125 1.59375,-3.15625 0.25,-0.53125 1.5625,-3.1875 0.25,-0.53125 1.53125,-3.1875 0.25,-0.5625 1.46875,-3.21875 0.25,-0.5625 1.4375,-3.21875 0.0312,-0.0937 0.21875,-0.46875 1.40625,-3.25 0.25,-0.5625 1.34375,-3.28125 1.5625,-3.84375 0.21875,-0.59375 1.28125,-3.3125 0.21875,-0.5625 1.25,-3.3125 0.0937,-0.28125 0.125,-0.3125 1.1875,-3.34375 0.21875,-0.59375 1.15625,-3.375 0.15625,-0.46875 0.0312,-0.0937 1.125,-3.40625 0.1875,-0.5625 L -394,828.5 l 0.0625,-0.21875 0.125,-0.375 1.03125,-3.4375 0.1875,-0.59375 1,-3.4375 0.15625,-0.59375 0.96875,-3.46875 0.15625,-0.59375 0.78125,-2.96875 49.6875,13.125 c 7.35353,-29.98057 11.28125,-61.31443 11.28125,-93.5625 0,-22.18523 -1.8601,-43.94709 -5.40625,-65.125 l -6.71875,1 -41.78125,6.65625 -0.0937,-0.625 -0.5625,-3.625 -0.0937,-0.625 -0.625,-3.5625 -0.125,-0.625 -0.65625,-3.59375 -0.125,-0.59375 -0.6875,-3.5625 -0.0312,-0.1875 -0.0937,-0.4375 -0.75,-3.53125 -0.125,-0.625 -0.8125,-3.53125 -0.125,-0.59375 -0.84375,-3.5 -0.125,-0.53125 -0.0312,-0.0937 -0.875,-3.46875 -0.15625,-0.625 -0.90625,-3.46875 -0.0312,-0.125 -0.125,-0.46875 -0.96875,-3.46875 -0.15625,-0.59375 -1,-3.4375 -0.1875,-0.59375 -1.03125,-3.4375 -0.1875,-0.5625 -1.09375,-3.40625 -0.1875,-0.59375 -1.125,-3.40625 -0.0625,-0.15625 -0.125,-0.40625 -1.15625,-3.375 -0.21875,-0.59375 -1.1875,-3.34375 -0.21875,-0.5625 -1.25,-3.34375 -0.21875,-0.5625 -1.28125,-3.3125 -0.21875,-0.59375 -1.5625,-3.84375 -1.34375,-3.28125 -0.25,-0.5625 -1.0625,-2.4375 43.8125,-18.84375 c -13.6513,-30.4002 -31.06644,-58.74756 -51.65625,-84.4375 l -36.6875,28.46875 -0.0937,-0.0937 -0.375,-0.5 -2.1875,-2.71875 -0.0937,-0.0937 -0.28125,-0.375 -2.1875,-2.71875 -0.40625,-0.46875 -2.25,-2.6875 -0.375,-0.46875 -2.28125,-2.65625 -0.0937,-0.0937 L -462,503 l -2.3125,-2.65625 -0.40625,-0.4375 -2.34375,-2.59375 -0.40625,-0.4375 -2.375,-2.59375 L -470,494.125 l -0.25,-0.28125 -2.375,-2.53125 -0.4375,-0.4375 -2.40625,-2.53125 -0.4375,-0.4375 -2.46875,-2.46875 -0.40625,-0.4375 -2.5,-2.46875 -0.40625,-0.40625 -2.53125,-2.4375 -0.4375,-0.40625 -2.5625,-2.40625 -0.375,-0.34375 -0.0625,-0.0625 -2.5625,-2.375 -0.4375,-0.40625 -2.625,-2.34375 -0.4375,-0.375 -2.625,-2.3125 -0.28125,-0.21875 -0.1875,-0.1875 -2.65625,-2.28125 -0.0312,-0.0312 -0.40625,-0.34375 -2.71875,-2.25 -0.4375,-0.375 -2.71875,-2.21875 -0.28125,-0.21875 -0.1875,-0.15625 -2.75,-2.1875 -0.46875,-0.34375 -2.78125,-2.15625 -0.46875,-0.375 27.4375,-36.21875 c -26.18134,-19.64939 -54.87626,-36.09429 -85.5625,-48.75 l -17.1875,41.3125 -3.21875,-1.34375 -3.28125,-1.3125 -0.3125,-0.125 -0.25,-0.0937 -3.3125,-1.28125 -0.59375,-0.21875 -3.3125,-1.25 -0.28125,-0.0937 -0.3125,-0.125 -3.34375,-1.21875 -0.5625,-0.1875 -3.375,-1.15625 -0.59375,-0.21875 -3.375,-1.125 -0.53125,-0.15625 -0.0625,-0.0312 -3.40625,-1.0625 -0.59375,-0.1875 -3.40625,-1.03125 -0.59375,-0.1875 -3.4375,-1 -0.625,-0.1875 -3.4375,-0.9375 -0.59375,-0.15625 -3.5,-0.9375 -0.0937,-0.0312 -0.5,-0.125 -4.09375,-1 -3.5,-0.84375 -0.625,-0.15625 -3.53125,-0.78125 -0.59375,-0.125 -3.5625,-0.75 -0.59375,-0.125 -3.5625,-0.71875 -0.0937,0 -0.53125,-0.125 -4.1875,-0.75 -3.59375,-0.625 -0.625,-0.0937 -3.59375,-0.59375 -0.375,-0.0625 -0.25,-0.0312 -3.96875,-0.5625 6.40625,-43.875 c -17.7102,-2.45268 -35.80292,-3.7191 -54.18765,-3.7191 z m -2.71875,282.71875 c 18.24386,-0.41115 36.52456,4.77847 52.1875,13.875 35.61197,20.1637 56.43986,61.98996 53.28125,102.4375 -2.11172,38.4308 -25.85332,75.0508 -60.96875,91.34375 -31.64018,15.68923 -70.83563,12.15865 -99.90625,-7.6875 -37.08824,-24.05279 -54.52022,-72.1067 -45.25,-114.8125 8.53705,-46.9531 52.71562,-84.97833 100.65625,-85.15625 z" |
|
73 |
style="fill:#c5c5c5;fill-opacity:1;stroke:#000000;stroke-width:20;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> |
|
74 |
<path |
|
75 |
id="path3608" |
|
76 |
d="m -720.3125,423.71875 c -2.14114,0.003 -4.29494,0.0416 -6.4375,0.0937 -92.77539,0.9057 -183.54225,48.46781 -238.1875,123.375 -51.4332,69.09779 -72.0894,160.54087 -55.0937,244.96875 15.5782,80.98865 64.5569,154.96425 133.81245,199.6875 58.29118,38.2162 130.18928,55.5604 199.5,47.1875 77.64477,-8.9068 151.44437,-49.42825 200.375,-110.6875 51.48409,-63.21341 76.4141,-146.95083 67.65625,-227.8125 -8.23411,-83.0141 -51.16656,-162.02417 -117.46875,-213 -52.28847,-40.71897 -117.78099,-63.91827 -184.15625,-63.8125 z m -2.40625,199.9375 c 18.24386,-0.41115 36.52456,4.77847 52.1875,13.875 35.61197,20.1637 56.43986,61.98996 53.28125,102.4375 -2.11172,38.4308 -25.85332,75.0508 -60.96875,91.34375 -31.64018,15.68923 -70.83563,12.15865 -99.90625,-7.6875 -37.08824,-24.05279 -54.52022,-72.1067 -45.25,-114.8125 8.53705,-46.9531 52.71562,-84.97833 100.65625,-85.15625 z" |
|
77 |
style="fill:#b4b4b4;fill-opacity:1;stroke:#000000;stroke-width:20;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> |
|
78 |
</g> |
|
79 |
<path |
|
80 |
style="fill:#828a95;fill-opacity:1;stroke:#000000;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
|
81 |
d="m -542.85714,469.50504 -348.57143,448.57143 25.71428,20 348.57143,-448.57143 48.57143,-8.57143 62.85714,-94.28571 -60,-42.85714 -85.71428,80 8.57143,45.71428 z" |
|
82 |
id="path3590" |
|
83 |
inkscape:export-filename="/Users/andersbr/Documents/coop/art/web/admin_tools.png" |
|
84 |
inkscape:export-xdpi="5.6116552" |
|
85 |
inkscape:export-ydpi="5.6116552" /> |
|
86 |
<path |
|
87 |
style="fill:#828a95;fill-opacity:1;stroke:#000000;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
|
88 |
d="m -998.22132,407.25798 57.352,67.78995 -18.25223,88.66188 -91.26125,20.85155 -70.4056,-86.02589 c 0,0 -28.3225,88.26556 23.4632,138.18736 55.8354,53.82589 156.45181,20.85563 164.27419,20.85563 l 388.51193,380.69364 c 0,0 62.59539,65.1784 112.13718,7.8142 49.54179,-57.36421 -13.06175,-101.67066 -13.06175,-101.67066 L -870.46782,594.99121 c 0,0 49.54585,-86.04218 -10.42578,-151.22876 -29.37493,-30.59482 -74.81067,-55.46566 -117.32772,-36.50447 z m 513.65795,542.34814 c 27.36117,0 49.53771,22.20506 49.53771,49.56623 0,27.36115 -22.17654,49.53765 -49.53771,49.53765 -27.36117,0 -49.53771,-22.1765 -49.53771,-49.53765 0,-27.36117 22.17654,-49.56623 49.53771,-49.56623 z" |
|
89 |
id="path3594" |
|
90 |
sodipodi:nodetypes="cccccsccscccccsssc" |
|
91 |
inkscape:export-filename="/Users/andersbr/Documents/coop/art/web/admin_tools.png" |
|
92 |
inkscape:export-xdpi="5.6116552" |
|
93 |
inkscape:export-ydpi="5.6116552" /> |
|
94 |
<path |
|
95 |
style="fill:#780c00;fill-opacity:1;stroke:#000000;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" |
|
96 |
d="m -708.12573,619.67525 89.01921,89.69143 -19.95761,49.50427 c 0,0 -20.79262,-19.59574 -46.06669,0.55668 -25.27405,20.15242 -5.44173,48.26566 -5.44173,48.26566 L -909.04847,1087.837 c 0,0 -50.5481,40.3049 -98.45183,6.1515 -47.9038,-34.1534 -32.9843,-89.9762 -32.9843,-89.9762 l 227.31348,-282.0226 c 0,0 29.95029,14.87774 46.70689,-6.23499 16.75659,-21.11273 6.18987,-61.57884 6.18987,-61.57884 l 52.14863,-34.50062 z" |
|
97 |
id="path3592" |
|
98 |
sodipodi:nodetypes="cccsccsccscc" |
|
99 |
inkscape:export-filename="/Users/andersbr/Documents/coop/art/web/admin_tools.png" |
|
100 |
inkscape:export-xdpi="5.6116552" |
|
101 |
inkscape:export-ydpi="5.6116552" /> |
|
102 |
</g> |
|
103 |
</svg> |
webapps/dnet-container-provision/trunk/src/main/webapp/index.html | ||
---|---|---|
1 |
if this container runs the IS, you can access the web interface <a href="mvc/inspector">here</a> |
|
1 |
<table style="width :100%"> |
|
2 |
<tr><td style="text-align:center; width:100%"><a href="http://www.d-net.research-infrastructures.eu/"><img src='images/d-netLogo.png'/></a></td></tr> |
|
3 |
</table> |
|
4 |
<table style="width :100%"> |
|
5 |
<tr> |
|
6 |
<td style="text-align:center"><a href="mvc/inspector"><img src='images/admin.svg' style="width:200px" /> </a></td> |
|
7 |
<td style="text-align:center"><a href="monitoring"><img src='images/monitor.png' style="width:200px"/> </a></td> |
|
8 |
</tr> |
|
9 |
<tr> |
|
10 |
<td style="text-align:center">if this container runs the IS, you can access the web interface <a href="mvc/inspector">here</a><br/></img></td> |
|
11 |
<td style="text-align:center">if this container is monitored, you can access the monitoring web interface <a href="monitoring">here</a></td> |
|
12 |
</tr> |
|
13 |
</table> |
webapps/dnet-container-provision/trunk/pom.xml | ||
---|---|---|
145 | 145 |
<version>5.2.4.Final</version> |
146 | 146 |
</dependency> |
147 | 147 |
|
148 |
<dependency> |
|
149 |
<groupId>io.prometheus</groupId> |
|
150 |
<artifactId>simpleclient</artifactId> |
|
151 |
<version>0.6.0</version> |
|
152 |
</dependency> |
|
153 |
|
|
154 |
<dependency> |
|
155 |
<groupId>io.micrometer</groupId> |
|
156 |
<artifactId>micrometer-registry-prometheus</artifactId> |
|
157 |
<version>1.1.5</version> |
|
158 |
</dependency> |
|
159 |
|
|
160 |
<dependency> |
|
161 |
<groupId>io.micrometer</groupId> |
|
162 |
<artifactId>micrometer-spring-legacy</artifactId> |
|
163 |
<version>1.1.5</version> |
|
164 |
</dependency> |
|
165 |
|
|
166 |
<dependency> |
|
167 |
<groupId>io.micrometer</groupId> |
|
168 |
<artifactId>micrometer-core</artifactId> |
|
169 |
<version>1.1.5</version> |
|
170 |
</dependency> |
|
171 |
|
|
172 |
|
|
148 | 173 |
</dependencies> |
149 | 174 |
<properties> |
150 | 175 |
<springfox-version>2.5.0</springfox-version> |
Also available in: Unified diff
Skeleton to export metrics to prometheus