Create a directory to contain everything
touch certindex
echo 1000 > certserial
PCRE_VERSION=8.44 | |
ZABBIX_VERSION=4.4.7 | |
OPENSSL_VERSION=1.1.1g | |
### gcc ### | |
test ! `which gcc` && test `which apt-get` && apt-get install g++ | |
test ! `which gcc` && test `which yum` && yum install g++ | |
### PCRE ### | |
cd /usr/local/src |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>Sentry JS Example</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<script | |
src="https://browser.sentry-cdn.com/5.16.1/bundle.min.js" | |
integrity="sha384-XeIbINcUQP10HtmVHwZigannjNDpoQRe+uhAoW9J5HU5dHFpilP164LjqO78xtIB" | |
crossorigin="anonymous"> |
# HELP last_request_time Last request time | |
# TYPE last_request_time gauge | |
last_request_time{ws_type="ws_type_1",ws_method="get",} 1.591954253939E9 | |
last_request_time{ws_type="ws_type_3",ws_method="post",} 1.591954175872E9 | |
last_request_time{ws_type="ws_type_2",ws_method="post",} 1.591954246263E9 | |
last_request_time{ws_type="ws_type_2",ws_method="get",} 1.59195425353E9 | |
last_request_time{ws_type="ws_type_1",ws_method="post",} 1.591954177074E9 | |
last_request_time{ws_type="ws_type_3",ws_method="get",} 1.591954253931E9 | |
# HELP request_duration Request duration | |
# TYPE request_duration histogram |
{ | |
"channels": { | |
"default": { | |
"version": "9999.1.2.3", | |
"url": "https://nocdevhttpserver/commander/cmdagent/releases/cmdagent_9999.1.2.3.zip", | |
"sha256": "78095C3F13B94F6EB0CF36B44A35985621B03C7EB30AF122D470C63F9BD9DC9E" | |
} | |
} | |
} |
import io.prometheus.client.Collector; | |
import io.prometheus.client.CollectorRegistry; | |
import io.prometheus.client.Counter; | |
import io.prometheus.client.Gauge; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.stream.Collectors; |