2022-05-11 04:11:33 -07:00
|
|
|
local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet';
|
|
|
|
local dashboard = grafana.dashboard;
|
2022-05-11 07:54:29 -07:00
|
|
|
local template = grafana.template;
|
|
|
|
|
2022-05-11 01:09:58 -07:00
|
|
|
{
|
|
|
|
grafanaDashboards+:: {
|
2022-05-11 07:54:29 -07:00
|
|
|
|
2022-05-11 01:09:58 -07:00
|
|
|
'apache-http.json':
|
2022-05-11 04:11:33 -07:00
|
|
|
dashboard.new(
|
2022-05-11 05:44:20 -07:00
|
|
|
'Apache HTTP server',
|
2022-05-11 04:11:33 -07:00
|
|
|
time_from='%s' % $._config.dashboardPeriod,
|
|
|
|
editable=false,
|
|
|
|
tags=($._config.dashboardTags),
|
|
|
|
timezone='%s' % $._config.dashboardTimezone,
|
|
|
|
refresh='%s' % $._config.dashboardRefresh,
|
|
|
|
graphTooltip='shared_crosshair',
|
|
|
|
).addTemplates(
|
|
|
|
[
|
2022-05-11 01:09:58 -07:00
|
|
|
{
|
2022-05-11 04:11:33 -07:00
|
|
|
current: {
|
|
|
|
text: 'default',
|
|
|
|
value: 'default',
|
|
|
|
},
|
|
|
|
hide: 0,
|
|
|
|
label: 'Data Source',
|
2022-05-11 01:17:31 -07:00
|
|
|
name: 'datasource',
|
2022-05-11 04:11:33 -07:00
|
|
|
query: 'prometheus',
|
|
|
|
refresh: 1,
|
|
|
|
regex: '',
|
2022-05-11 01:09:58 -07:00
|
|
|
type: 'datasource',
|
|
|
|
},
|
2022-05-11 07:54:29 -07:00
|
|
|
template.new(
|
|
|
|
name='job',
|
|
|
|
label='job',
|
|
|
|
datasource='$datasource',
|
|
|
|
query='label_values(apache_up, job)',
|
|
|
|
current='',
|
|
|
|
refresh=2,
|
|
|
|
includeAll=true,
|
|
|
|
sort=1
|
|
|
|
),
|
|
|
|
template.new(
|
|
|
|
name='instance',
|
|
|
|
label='instance',
|
|
|
|
datasource='$datasource',
|
|
|
|
query='label_values(apache_up{job=~"$job"}, instance)',
|
|
|
|
current='',
|
|
|
|
refresh=2,
|
|
|
|
includeAll=false,
|
|
|
|
sort=1
|
|
|
|
),
|
2022-05-11 04:11:33 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
.addPanels([
|
2022-05-11 04:25:46 -07:00
|
|
|
{
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
|
|
|
},
|
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
color: {
|
|
|
|
mode: 'thresholds',
|
|
|
|
},
|
|
|
|
decimals: 1,
|
|
|
|
mappings: [
|
|
|
|
{
|
|
|
|
options: {
|
|
|
|
match: 'null',
|
|
|
|
result: {
|
|
|
|
text: 'N/A',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
type: 'special',
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
color: 'green',
|
|
|
|
value: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color: 'red',
|
|
|
|
value: 80,
|
|
|
|
},
|
2022-05-11 01:09:58 -07:00
|
|
|
],
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
unit: 's',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
overrides: [],
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 3,
|
|
|
|
w: 4,
|
|
|
|
x: 0,
|
|
|
|
y: 0,
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
id: 8,
|
|
|
|
links: [],
|
|
|
|
maxDataPoints: 100,
|
|
|
|
options: {
|
|
|
|
colorMode: 'none',
|
|
|
|
graphMode: 'none',
|
|
|
|
justifyMode: 'auto',
|
|
|
|
orientation: 'horizontal',
|
|
|
|
reduceOptions: {
|
|
|
|
calcs: [
|
2022-05-11 04:30:58 -07:00
|
|
|
'lastNotNull',
|
2022-05-11 04:25:46 -07:00
|
|
|
],
|
|
|
|
fields: '',
|
|
|
|
values: false,
|
|
|
|
},
|
|
|
|
textMode: 'auto',
|
|
|
|
},
|
|
|
|
pluginVersion: '8.4.5',
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_uptime_seconds_total{instance=~"$instance"}',
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
title: 'Uptime',
|
|
|
|
type: 'stat',
|
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:43:24 -07:00
|
|
|
id: 9,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 3,
|
2022-05-11 05:43:24 -07:00
|
|
|
w: 4,
|
2022-05-11 04:25:46 -07:00
|
|
|
x: 4,
|
|
|
|
y: 0,
|
|
|
|
},
|
2022-05-11 05:43:24 -07:00
|
|
|
type: 'stat',
|
|
|
|
title: 'Version',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
|
|
|
type: 'prometheus',
|
|
|
|
},
|
|
|
|
pluginVersion: '8.4.5',
|
|
|
|
maxDataPoints: 100,
|
|
|
|
links: [],
|
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
mappings: [
|
|
|
|
{
|
|
|
|
options: {
|
|
|
|
match: 'null',
|
|
|
|
result: {
|
|
|
|
text: 'N/A',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type: 'special',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
color: 'green',
|
|
|
|
value: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
color: 'red',
|
|
|
|
value: 80,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'thresholds',
|
|
|
|
},
|
|
|
|
decimals: 1,
|
|
|
|
unit: 'none',
|
|
|
|
},
|
|
|
|
overrides: [],
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
reduceOptions: {
|
|
|
|
values: false,
|
|
|
|
calcs: [
|
|
|
|
'lastNotNull',
|
|
|
|
],
|
|
|
|
fields: '',
|
|
|
|
},
|
|
|
|
orientation: 'horizontal',
|
|
|
|
textMode: 'auto',
|
|
|
|
colorMode: 'none',
|
|
|
|
graphMode: 'none',
|
|
|
|
justifyMode: 'auto',
|
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_version{instance=~"$instance"}',
|
|
|
|
legendFormat: '',
|
|
|
|
interval: '',
|
|
|
|
exemplar: true,
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
datasource: {
|
|
|
|
type: 'prometheus',
|
|
|
|
uid: 'grafanacloud-prom',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 5,
|
|
|
|
gridPos: {
|
|
|
|
h: 3,
|
|
|
|
w: 16,
|
|
|
|
x: 8,
|
|
|
|
y: 0,
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
type: 'state-timeline',
|
|
|
|
title: 'Apache Up / Down',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
|
|
|
type: 'prometheus',
|
|
|
|
},
|
|
|
|
pluginVersion: '8.4.5',
|
|
|
|
links: [],
|
|
|
|
options: {
|
|
|
|
mergeValues: false,
|
|
|
|
showValue: 'never',
|
|
|
|
alignValue: 'left',
|
|
|
|
rowHeight: 0.9,
|
2022-05-11 04:11:33 -07:00
|
|
|
legend: {
|
2022-05-11 04:25:46 -07:00
|
|
|
displayMode: 'list',
|
|
|
|
placement: 'right',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
|
|
|
tooltip: {
|
2022-05-11 04:25:46 -07:00
|
|
|
mode: 'single',
|
|
|
|
sort: 'none',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_up{instance=~"$instance"}',
|
|
|
|
legendFormat: 'Apache up',
|
|
|
|
interval: '',
|
|
|
|
exemplar: true,
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
datasource: {
|
|
|
|
type: 'prometheus',
|
|
|
|
uid: 'grafanacloud-prom',
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
],
|
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
lineWidth: 0,
|
|
|
|
fillOpacity: 70,
|
|
|
|
spanNulls: false,
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
color: {
|
|
|
|
mode: 'continuous-GrYlRd',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
mappings: [
|
|
|
|
{
|
|
|
|
type: 'value',
|
|
|
|
options: {
|
|
|
|
'0': {
|
|
|
|
text: 'Down',
|
|
|
|
color: 'red',
|
|
|
|
index: 1,
|
|
|
|
},
|
|
|
|
'1': {
|
|
|
|
text: 'Up',
|
|
|
|
color: 'green',
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
color: 'green',
|
|
|
|
value: null,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
overrides: [],
|
|
|
|
},
|
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:40:39 -07:00
|
|
|
id: 3,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 10,
|
|
|
|
w: 12,
|
|
|
|
x: 0,
|
|
|
|
y: 3,
|
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
type: 'timeseries',
|
|
|
|
title: 'Bytes sent',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
pluginVersion: '8.4.5',
|
2022-05-11 04:25:46 -07:00
|
|
|
links: [],
|
|
|
|
options: {
|
2022-05-11 05:40:39 -07:00
|
|
|
tooltip: {
|
|
|
|
mode: 'multi',
|
|
|
|
sort: 'none',
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
displayMode: 'table',
|
|
|
|
placement: 'bottom',
|
|
|
|
calcs: [
|
|
|
|
'mean',
|
|
|
|
'lastNotNull',
|
|
|
|
'max',
|
|
|
|
'min',
|
|
|
|
],
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
2022-05-11 05:19:58 -07:00
|
|
|
expr: 'rate(apache_sent_kilobytes_total{instance=~"$instance"}[$__rate_interval]) * 1000',
|
2022-05-11 04:25:46 -07:00
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
2022-05-11 05:19:58 -07:00
|
|
|
legendFormat: 'Bytes sent',
|
2022-05-11 04:25:46 -07:00
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 05:40:39 -07:00
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
drawStyle: 'line',
|
|
|
|
lineInterpolation: 'linear',
|
|
|
|
barAlignment: 0,
|
|
|
|
lineWidth: 1,
|
|
|
|
fillOpacity: 10,
|
|
|
|
gradientMode: 'none',
|
|
|
|
spanNulls: true,
|
|
|
|
showPoints: 'never',
|
|
|
|
pointSize: 5,
|
|
|
|
stacking: {
|
|
|
|
mode: 'none',
|
|
|
|
group: 'A',
|
|
|
|
},
|
|
|
|
axisPlacement: 'auto',
|
|
|
|
axisLabel: '',
|
|
|
|
scaleDistribution: {
|
|
|
|
type: 'linear',
|
|
|
|
},
|
|
|
|
hideFrom: {
|
|
|
|
tooltip: false,
|
|
|
|
viz: false,
|
|
|
|
legend: false,
|
|
|
|
},
|
|
|
|
thresholdsStyle: {
|
|
|
|
mode: 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'palette-classic',
|
|
|
|
},
|
|
|
|
mappings: [],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
value: null,
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 80,
|
|
|
|
color: 'red',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
unit: 'Bps',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
overrides: [],
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:40:39 -07:00
|
|
|
id: 5,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 10,
|
|
|
|
w: 12,
|
|
|
|
x: 12,
|
|
|
|
y: 3,
|
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
type: 'timeseries',
|
|
|
|
title: 'Apache accesses',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
pluginVersion: '8.4.5',
|
2022-05-11 04:25:46 -07:00
|
|
|
links: [],
|
|
|
|
options: {
|
2022-05-11 05:40:39 -07:00
|
|
|
tooltip: {
|
|
|
|
mode: 'multi',
|
|
|
|
sort: 'none',
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
displayMode: 'table',
|
|
|
|
placement: 'bottom',
|
|
|
|
calcs: [
|
|
|
|
'mean',
|
|
|
|
'lastNotNull',
|
|
|
|
'max',
|
|
|
|
'min',
|
|
|
|
],
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
2022-05-11 04:31:53 -07:00
|
|
|
expr: 'rate(apache_accesses_total{instance=~"$instance"}[$__rate_interval])',
|
2022-05-11 04:25:46 -07:00
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
legendFormat: 'Accesses',
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 05:40:39 -07:00
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
drawStyle: 'line',
|
|
|
|
lineInterpolation: 'linear',
|
|
|
|
barAlignment: 0,
|
|
|
|
lineWidth: 1,
|
|
|
|
fillOpacity: 10,
|
|
|
|
gradientMode: 'none',
|
|
|
|
spanNulls: true,
|
|
|
|
showPoints: 'never',
|
|
|
|
pointSize: 5,
|
|
|
|
stacking: {
|
|
|
|
mode: 'none',
|
|
|
|
group: 'A',
|
|
|
|
},
|
|
|
|
axisPlacement: 'auto',
|
|
|
|
axisLabel: '',
|
|
|
|
scaleDistribution: {
|
|
|
|
type: 'linear',
|
|
|
|
},
|
|
|
|
hideFrom: {
|
|
|
|
tooltip: false,
|
|
|
|
viz: false,
|
|
|
|
legend: false,
|
|
|
|
},
|
|
|
|
thresholdsStyle: {
|
|
|
|
mode: 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'palette-classic',
|
|
|
|
},
|
|
|
|
mappings: [],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
value: null,
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 80,
|
|
|
|
color: 'red',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
unit: 'reqps',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
overrides: [],
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:40:39 -07:00
|
|
|
id: 2,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 10,
|
|
|
|
w: 24,
|
|
|
|
x: 0,
|
|
|
|
y: 13,
|
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
type: 'timeseries',
|
|
|
|
title: 'Apache scoreboard statuses',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
pluginVersion: '8.4.5',
|
2022-05-11 04:25:46 -07:00
|
|
|
links: [],
|
|
|
|
options: {
|
2022-05-11 05:40:39 -07:00
|
|
|
tooltip: {
|
|
|
|
mode: 'multi',
|
|
|
|
sort: 'desc',
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
displayMode: 'table',
|
|
|
|
placement: 'right',
|
|
|
|
calcs: [
|
|
|
|
'mean',
|
|
|
|
'lastNotNull',
|
|
|
|
'max',
|
|
|
|
'min',
|
|
|
|
],
|
|
|
|
sortBy: 'Last *',
|
|
|
|
sortDesc: true,
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_scoreboard{instance=~"$instance"}',
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
legendFormat: '{{ state }}',
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 05:40:39 -07:00
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
drawStyle: 'line',
|
2022-05-11 07:18:48 -07:00
|
|
|
lineInterpolation: 'stepAfter',
|
2022-05-11 05:40:39 -07:00
|
|
|
barAlignment: 0,
|
|
|
|
lineWidth: 1,
|
|
|
|
fillOpacity: 10,
|
|
|
|
gradientMode: 'none',
|
|
|
|
spanNulls: true,
|
|
|
|
showPoints: 'never',
|
|
|
|
pointSize: 5,
|
|
|
|
stacking: {
|
|
|
|
mode: 'normal',
|
|
|
|
group: 'A',
|
|
|
|
},
|
|
|
|
axisPlacement: 'auto',
|
|
|
|
axisLabel: '',
|
|
|
|
scaleDistribution: {
|
|
|
|
type: 'linear',
|
|
|
|
},
|
|
|
|
hideFrom: {
|
|
|
|
tooltip: false,
|
|
|
|
viz: false,
|
|
|
|
legend: false,
|
|
|
|
},
|
|
|
|
thresholdsStyle: {
|
|
|
|
mode: 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'palette-classic',
|
|
|
|
},
|
|
|
|
mappings: [],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
value: null,
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 80,
|
|
|
|
color: 'red',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
unit: 'short',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
overrides: [],
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:40:39 -07:00
|
|
|
id: 7,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 10,
|
|
|
|
w: 12,
|
|
|
|
x: 0,
|
|
|
|
y: 23,
|
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
type: 'timeseries',
|
|
|
|
title: 'Apache worker statuses',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
pluginVersion: '8.4.5',
|
2022-05-11 04:25:46 -07:00
|
|
|
links: [],
|
|
|
|
options: {
|
2022-05-11 05:40:39 -07:00
|
|
|
tooltip: {
|
|
|
|
mode: 'multi',
|
|
|
|
sort: 'none',
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
displayMode: 'table',
|
|
|
|
placement: 'bottom',
|
|
|
|
calcs: [
|
|
|
|
'mean',
|
|
|
|
'lastNotNull',
|
|
|
|
'max',
|
|
|
|
'min',
|
|
|
|
],
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_workers{instance=~"$instance"}\n',
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
legendFormat: '{{ state }}',
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 05:40:39 -07:00
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
drawStyle: 'line',
|
2022-05-11 07:54:06 -07:00
|
|
|
lineInterpolation: 'stepAfter',
|
2022-05-11 05:40:39 -07:00
|
|
|
barAlignment: 0,
|
|
|
|
lineWidth: 1,
|
|
|
|
fillOpacity: 10,
|
|
|
|
gradientMode: 'none',
|
|
|
|
spanNulls: true,
|
|
|
|
showPoints: 'never',
|
|
|
|
pointSize: 5,
|
|
|
|
stacking: {
|
|
|
|
mode: 'normal',
|
|
|
|
group: 'A',
|
|
|
|
},
|
|
|
|
axisPlacement: 'auto',
|
|
|
|
axisLabel: '',
|
|
|
|
scaleDistribution: {
|
|
|
|
type: 'linear',
|
|
|
|
},
|
|
|
|
hideFrom: {
|
|
|
|
tooltip: false,
|
|
|
|
viz: false,
|
|
|
|
legend: false,
|
|
|
|
},
|
|
|
|
thresholdsStyle: {
|
|
|
|
mode: 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'palette-classic',
|
|
|
|
},
|
|
|
|
mappings: [],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
value: null,
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 80,
|
|
|
|
color: 'red',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
unit: 'short',
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
overrides: [],
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
{
|
2022-05-11 05:40:39 -07:00
|
|
|
id: 8,
|
2022-05-11 04:25:46 -07:00
|
|
|
gridPos: {
|
|
|
|
h: 10,
|
|
|
|
w: 12,
|
|
|
|
x: 12,
|
|
|
|
y: 23,
|
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
type: 'timeseries',
|
|
|
|
title: 'Apache CPU load',
|
|
|
|
datasource: {
|
|
|
|
uid: '${datasource}',
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
pluginVersion: '8.4.5',
|
2022-05-11 04:25:46 -07:00
|
|
|
links: [],
|
|
|
|
options: {
|
2022-05-11 05:40:39 -07:00
|
|
|
tooltip: {
|
|
|
|
mode: 'multi',
|
|
|
|
sort: 'none',
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
displayMode: 'table',
|
|
|
|
placement: 'bottom',
|
|
|
|
calcs: [
|
|
|
|
'mean',
|
|
|
|
'lastNotNull',
|
|
|
|
'max',
|
|
|
|
'min',
|
|
|
|
],
|
|
|
|
},
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
expr: 'apache_cpuload{instance=~"$instance"}',
|
|
|
|
format: 'time_series',
|
|
|
|
intervalFactor: 1,
|
|
|
|
legendFormat: 'Load',
|
|
|
|
refId: 'A',
|
|
|
|
step: 240,
|
|
|
|
},
|
|
|
|
],
|
2022-05-11 05:40:39 -07:00
|
|
|
fieldConfig: {
|
|
|
|
defaults: {
|
|
|
|
custom: {
|
|
|
|
drawStyle: 'line',
|
|
|
|
lineInterpolation: 'linear',
|
|
|
|
barAlignment: 0,
|
|
|
|
lineWidth: 1,
|
|
|
|
fillOpacity: 10,
|
|
|
|
gradientMode: 'none',
|
|
|
|
spanNulls: true,
|
|
|
|
showPoints: 'never',
|
|
|
|
pointSize: 5,
|
|
|
|
stacking: {
|
|
|
|
mode: 'none',
|
|
|
|
group: 'A',
|
|
|
|
},
|
|
|
|
axisPlacement: 'auto',
|
|
|
|
axisLabel: '',
|
|
|
|
scaleDistribution: {
|
|
|
|
type: 'linear',
|
|
|
|
},
|
|
|
|
hideFrom: {
|
|
|
|
tooltip: false,
|
|
|
|
viz: false,
|
|
|
|
legend: false,
|
|
|
|
},
|
|
|
|
thresholdsStyle: {
|
|
|
|
mode: 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
color: {
|
|
|
|
mode: 'palette-classic',
|
|
|
|
},
|
|
|
|
mappings: [],
|
|
|
|
thresholds: {
|
|
|
|
mode: 'absolute',
|
|
|
|
steps: [
|
|
|
|
{
|
|
|
|
value: null,
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 80,
|
|
|
|
color: 'red',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
unit: 'short',
|
|
|
|
min: 0,
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
overrides: [],
|
2022-05-11 04:11:33 -07:00
|
|
|
},
|
2022-05-11 05:40:39 -07:00
|
|
|
timeFrom: null,
|
|
|
|
timeShift: null,
|
2022-05-11 04:25:46 -07:00
|
|
|
},
|
|
|
|
]),
|
2022-05-11 04:11:33 -07:00
|
|
|
|
2022-05-11 01:09:58 -07:00
|
|
|
},
|
|
|
|
}
|