File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
java/si/matjazcerkvenik/alertmonitor/web/uibeans Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 55* [ CHANGE] Navigation is based on ` providerId ` URL parameter
66* [ ENHANCEMENT] Added Alertmonitor logo to menubar
77* [ ENHANCEMENT] Gracefully stop provider tasks when shutting down
8+ * [ ENHANCEMENT] Sort alerts by severity
89
910
1011## 2.5.0 / 2025-05-02
Original file line number Diff line number Diff line change @@ -18,12 +18,20 @@ services:
1818 networks :
1919 - monitoring_network
2020 environment :
21+ # Timezone configuration
2122 - TZ=${TZ}
23+ # Logging configuration
2224 - SIMPLELOGGER_FILENAME=/opt/jboss/alertmonitor/log/alertmonitor.log
25+ - SIMPLELOGGER_LEVEL=INFO
26+ - SIMPLELOGGER_MAXFILESIZE=50
27+ - SIMPLELOGGER_MAXBACKUPFILES=10
28+ - SIMPLELOGGER_DATEFORMAT="yyyy-MM-dd'T'HH:mm:ss:SSS Z"
29+ # Custom environment variables used for variable substitution
2330 - GRAFANA_HOSTNAME=my.grafana.domain
31+ # Alertmonitor configuration
2432 - ALERTMONITOR_DATA_RETENTION_DAYS=7
2533 - ALERTMONITOR_PSYNC_INTERVAL_SEC=900
26- - ALERTMONITOR_PROMETHEUS_SERVER=http://localhost :9090
34+ - ALERTMONITOR_PROMETHEUS_SERVER=http://prometheus :9090
2735 - ALERTMONITOR_PROMETHEUS_CLIENT_POOL_SIZE=1
2836 - ALERTMONITOR_HTTP_CLIENT_CONNECT_TIMEOUT_SEC=10
2937 - ALERTMONITOR_HTTP_CLIENT_READ_TIMEOUT_SEC=120
Original file line number Diff line number Diff line change 22
33import java .io .Serializable ;
44import java .util .ArrayList ;
5+ import java .util .Comparator ;
56import java .util .List ;
67import java .util .Map ;
78import java .util .stream .Collectors ;
@@ -50,6 +51,7 @@ public List<DEvent> getActiveAlarms() {
5051
5152 List <DEvent > result = list .stream ()
5253 .filter (notif -> filterEvent (notif ))
54+ .sorted (Comparator .comparing (DEvent ::getSeverity ))
5355 .collect (Collectors .toList ());
5456
5557 return result ;
Original file line number Diff line number Diff line change 1717 < p:menuitem value ="Alarms " url ="/alertmonitor " icon ="pi pi-fw pi-star " />
1818 < p:menuitem value ="Targets " url ="/alertmonitor/targets " icon ="pi pi-fw pi-th-large "/>
1919 < p:menuitem value ="Configuration " url ="/alertmonitor/config " icon ="pi pi-fw pi-cog " />
20- < p:menuitem value ="About " url ="/alertmonitor/about " icon ="pi pi-fw pi-exclamation-circle " />
2120 < f:facet name ="options ">
2221 < p:inputText placeholder ="Search " value ="#{uiBean.searchString} "/>
2322 </ f:facet >
You can’t perform that action at this time.
0 commit comments