Add gc metrics for ZGC and ShenandoahGC

Change-Id: I518a655f4c8080a8b5b23e67d6a518b503000949
This commit is contained in:
Matthias Sohn 2021-02-04 12:28:17 +01:00
parent f839c376af
commit b72d83f48e

View file

@ -39,6 +39,20 @@ barGraph.new(
interval='1m',
)
)
.addTarget(
prometheus.target(
'increase(proc_jvm_gc_time_ZGC{instance="$instance",replica="$replica"}[2m])/increase(proc_uptime{instance="$instance",replica="$replica"}[2m])',
legendFormat='gc time ZGC',
interval='1m',
)
)
.addTarget(
prometheus.target(
'increase(proc_jvm_gc_time_ShenandoahGC{instance="$instance",replica="$replica"}[2m])/increase(proc_uptime{instance="$instance",replica="$replica"}[2m])',
legendFormat='gc time ShenandoahGC',
interval='1m',
)
)
.addSeriesOverride(
{
alias: 'gc time G1 young gen',
@ -63,3 +77,15 @@ barGraph.new(
color: '#E02F44',
}
)
.addSeriesOverride(
{
alias: 'gc time ZGC',
color: '#3274D9',
}
)
.addSeriesOverride(
{
alias: 'gc time ShenandoahGC',
color: '#3274D9',
}
)