diff --git a/f5-bigip-mixin/alerts.libsonnet b/f5-bigip-mixin/alerts.libsonnet new file mode 100644 index 000000000..331282f13 --- /dev/null +++ b/f5-bigip-mixin/alerts.libsonnet @@ -0,0 +1,85 @@ +{ + new(this): { + local config = this.config, + + groups: [ + { + name: 'f5-bigip-alerts', + rules: [ + { + alert: 'BigIPLowNodeAvailabilityStatus', + expr: ||| + 100 * (sum(bigip_node_status_availability_state{%(filteringSelector)s}) / clamp_min(count(bigip_node_status_availability_state{%(filteringSelector)s}), 1)) < %(alertsCriticalNodeAvailability)s + ||| % config, + 'for': '5m', + labels: { + severity: 'critical', + }, + annotations: { + summary: 'Detecting a significant number of unavailable nodes which can causes potential downtime or degraded performance.', + description: + ( + '{{ printf "%%.0f" $value }} percent of available nodes, ' + + 'which is below the threshold of %(alertsCriticalNodeAvailability)s.' + ) % config, + }, + }, + { + alert: 'BigIPServerSideConnectionLimit', + expr: ||| + max without(instance, job) (100 * bigip_node_serverside_cur_conns{%(filteringSelector)s} / clamp_min(bigip_node_serverside_max_conns{%(filteringSelector)s}, 1)) > %(alertsWarningServerSideConnectionLimit)s + ||| % config, + 'for': '5m', + labels: { + severity: 'warning', + }, + annotations: { + summary: 'Approaching the connection limit may lead to rejecting new connections, impacting availability.', + description: + ( + '{{ printf "%%.0f" $value }} percent of the max number of connections in use on node {{$labels.node}}, ' + + 'which is above the threshold of %(alertsWarningServerSideConnectionLimit)s percent.' + ) % config, + }, + }, + { + alert: 'BigIPHighRequestRate', + expr: ||| + max without(instance, job) (100 * rate(bigip_pool_tot_requests{%(filteringSelector)s}[10m]) / clamp_min(rate(bigip_pool_tot_requests{%(filteringSelector)s}[50m] offset 10m), 1)) > %(alertsCriticalHighRequestRate)s + ||| % config, + 'for': '10m', + labels: { + severity: 'warning', + }, + annotations: { + summary: 'An unexpected spike in requests might indicate an issue like a DDoS attack or unexpected high load.', + description: + ( + '{{ printf "%%.0f" $value }} percent increase in requests on pool {{$labels.pool}}, ' + + 'which is above the threshold of %(alertsCriticalHighRequestRate)s.' + ) % config, + }, + }, + { + alert: 'BigIPHighConnectionQueueDepth', + expr: ||| + max without(instance, job) (100 * rate(bigip_pool_connq_depth{%(filteringSelector)s}[5m])) / clamp_min(rate(bigip_pool_connq_depth{%(filteringSelector)s}[50m] offset 10m), 1) > %(alertsCriticalHighConnectionQueueDepth)s + ||| % config, + 'for': '5m', + labels: { + severity: 'warning', + }, + annotations: { + summary: 'A sudden spike or sustained high queue depth may indicate a bottleneck in handling incoming connections.', + description: + ( + '{{ printf "%%.0f" $value }} percent increase in connection queue depth on node {{$labels.pool}}, ' + + 'which is above the threshold of %(alertsCriticalHighConnectionQueueDepth)s.' + ) % config, + }, + }, + ], + }, + ], + }, +} diff --git a/f5-bigip-mixin/config.libsonnet b/f5-bigip-mixin/config.libsonnet index e0e1ae355..be2e84b89 100644 --- a/f5-bigip-mixin/config.libsonnet +++ b/f5-bigip-mixin/config.libsonnet @@ -1,17 +1,31 @@ { - _config+:: { - dashboardTags: ['f5-bigip-mixin'], - dashboardPeriod: 'now-30m', - dashboardTimezone: 'default', - dashboardRefresh: '1m', + local this = self, + filteringSelector: 'job="integrations/f5-bigip"', + groupLabels: ['job'], + instanceLabels: ['instance'], + uid: 'f5-bigip', + dashboardNamePrefix: 'F5 BIG-IP', + dashboardTags: [self.uid + '-mixin'], + dashboardPeriod: 'now-30m', + dashboardTimezone: 'default', + dashboardRefresh: '1m', - // alerts thresholds - alertsCriticalNodeAvailability: 95, // % - alertsWarningServerSideConnectionLimit: 80, // % - alertsCriticalHighRequestRate: 150, // % - alertsCriticalHighConnectionQueueDepth: 75, // % + // alerts thresholds + alertsCriticalNodeAvailability: 95, // % + alertsWarningServerSideConnectionLimit: 80, // % + alertsCriticalHighRequestRate: 150, // % + alertsCriticalHighConnectionQueueDepth: 75, // % - enableLokiLogs: false, - filterSelector: 'job=~"syslog"', + enableLokiLogs: true, + extraLogLabels: [], + showLogsVolume: true, + + // metrics source for signals + metricsSource: 'prometheus', + signals: { + cluster: (import './signals/cluster.libsonnet')(this), + node: (import './signals/node.libsonnet')(this), + pool: (import './signals/pool.libsonnet')(this), + virtualServer: (import './signals/virtualserver.libsonnet')(this), }, } diff --git a/f5-bigip-mixin/dashboards.libsonnet b/f5-bigip-mixin/dashboards.libsonnet new file mode 100644 index 000000000..7df3a0c16 --- /dev/null +++ b/f5-bigip-mixin/dashboards.libsonnet @@ -0,0 +1,206 @@ +local g = import './g.libsonnet'; +local commonlib = import 'common-lib/common/main.libsonnet'; +local logslib = import 'logs-lib/logs/main.libsonnet'; + +{ + local root = self, + new(this):: + local prefix = this.config.dashboardNamePrefix; + local links = this.grafana.links; + local tags = this.config.dashboardTags; + local uid = g.util.string.slugify(this.config.uid); + local vars = this.grafana.variables; + local annotations = this.grafana.annotations; + local refresh = this.config.dashboardRefresh; + local period = this.config.dashboardPeriod; + local timezone = this.config.dashboardTimezone; + + { + 'bigip-cluster-overview.json': + g.dashboard.new(prefix + ' cluster overview') + + g.dashboard.withPanels( + g.util.panel.resolveCollapsedFlagOnRows( + g.util.grid.wrapPanels( + [ + this.grafana.rows.clusterOverviewRow, + ] + ) + ) + ) + root.applyCommon( + vars.multiInstance + [ + g.dashboard.variable.custom.new('k', values=['5', '10', '20', '50']) + + g.dashboard.variable.query.selectionOptions.withMulti(false) + + g.dashboard.variable.custom.generalOptions.withCurrent('5') + + g.dashboard.variable.custom.generalOptions.withLabel('Top node count') + + g.dashboard.variable.query.refresh.onTime(), + + + g.dashboard.variable.query.new('bigip_partition') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('partition', 'bigip_node_status_availability_state{' + this.config.filteringSelector + '}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP partition') + + g.dashboard.variable.query.refresh.onTime(), + + + ], + uid + '_cluster_overview', + tags, + links { f5BigipClusterOverview:: {} }, + annotations, + timezone, + refresh, + period, + ), + + 'bigip-node-overview.json': + g.dashboard.new(prefix + ' node overview') + + g.dashboard.withPanels( + g.util.panel.resolveCollapsedFlagOnRows( + g.util.grid.wrapPanels( + [ + this.grafana.rows.nodeOverviewRow, + ] + ) + ) + ) + root.applyCommon( + vars.multiInstance + [ + g.dashboard.variable.query.new('bigip_node') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('node', 'bigip_node_status_availability_state{' + this.config.filteringSelector + '}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP node') + + g.dashboard.variable.query.refresh.onTime(), + + g.dashboard.variable.query.new('bigip_partition') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('partition', 'bigip_node_status_availability_state{' + this.config.filteringSelector + ', node=~"$bigip_node"}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP partition') + + g.dashboard.variable.query.refresh.onTime(), + ], + uid + '_node_overview', + tags, + links { f5BigipNodeOverview:: {} }, + annotations, + timezone, + refresh, + period, + ), + + 'bigip-pool-overview.json': + g.dashboard.new(prefix + ' pool overview') + + g.dashboard.withPanels( + g.util.panel.resolveCollapsedFlagOnRows( + g.util.grid.wrapPanels( + [ + this.grafana.rows.poolOverviewRow, + ] + ) + ) + ) + root.applyCommon( + vars.multiInstance + [ + g.dashboard.variable.query.new('bigip_pool') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('pool', 'bigip_pool_status_availability_state{' + this.config.filteringSelector + '}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP pool') + + g.dashboard.variable.query.refresh.onTime(), + + + g.dashboard.variable.query.new('bigip_partition') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('partition', 'bigip_pool_status_availability_state{' + this.config.filteringSelector + ', pool=~"$bigip_pool"}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP partition') + + g.dashboard.variable.query.refresh.onTime(), + ], + uid + '_pool_overview', + tags, + links { f5BigipPoolOverview:: {} }, + annotations, + timezone, + refresh, + period, + ), + + 'bigip-virtual-server-overview.json': + g.dashboard.new(prefix + ' virtual server overview') + + g.dashboard.withPanels( + g.util.panel.resolveCollapsedFlagOnRows( + g.util.grid.wrapPanels( + [ + this.grafana.rows.virtualServerOverviewRow, + ] + ) + ) + ) + root.applyCommon( + vars.multiInstance + [ + g.dashboard.variable.query.new('bigip_vs') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('vs', 'bigip_vs_status_availability_state{' + this.config.filteringSelector + '}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP virtual server') + + g.dashboard.variable.query.refresh.onTime(), + + + g.dashboard.variable.query.new('bigip_partition') + + g.dashboard.variable.query.withDatasourceFromVariable(vars.datasources.prometheus) + + g.dashboard.variable.query.queryTypes.withLabelValues('partition', 'bigip_vs_status_availability_state{' + this.config.filteringSelector + ', vs=~"$bigip_vs"}') + + g.dashboard.variable.query.selectionOptions.withIncludeAll(true, '.+') + + g.dashboard.variable.query.selectionOptions.withMulti(true) + + g.dashboard.variable.query.generalOptions.withLabel('BIG-IP partition') + + g.dashboard.variable.query.refresh.onTime(), + ], + uid + '_virtual_server_overview', + tags, + links { f5BigipVirtualServerOverview:: {} }, + annotations, + timezone, + refresh, + period, + ), + } + if this.config.enableLokiLogs then { + 'bigip-logs.json': + logslib.new( + prefix + ' logs', + datasourceName=this.grafana.variables.datasources.loki.name, + datasourceRegex=this.grafana.variables.datasources.loki.regex, + filterSelector=this.config.filteringSelector, + labels=this.config.groupLabels + this.config.extraLogLabels, + formatParser=null, + showLogsVolume=this.config.showLogsVolume, + ) + { + dashboards+: + { + logs+: + root.applyCommon(super.logs.templating.list, uid=uid + '-logs', tags=tags, links=links { f5BigipLogs+:: {} }, annotations=annotations, timezone=timezone, refresh=refresh, period=period), + }, + panels+: + { + logs+: + { + logsPanel+: + g.panel.logs.options.withShowTime(true), + }, + }, + }.dashboards.logs, + } else {}, + + applyCommon(vars, uid, tags, links, annotations, timezone, refresh, period): + g.dashboard.withTags(tags) + + g.dashboard.withUid(uid) + + g.dashboard.withLinks(links) + + g.dashboard.withTimezone(timezone) + + g.dashboard.withRefresh(refresh) + + g.dashboard.time.withFrom(period) + + g.dashboard.withVariables(vars) + + g.dashboard.withAnnotations(annotations), +} diff --git a/f5-bigip-mixin/dashboards/bigip-cluster-overview.libsonnet b/f5-bigip-mixin/dashboards/bigip-cluster-overview.libsonnet deleted file mode 100644 index 0078aa668..000000000 --- a/f5-bigip-mixin/dashboards/bigip-cluster-overview.libsonnet +++ /dev/null @@ -1,644 +0,0 @@ -local grafana = (import 'grafonnet/grafana.libsonnet'); -local dashboard = grafana.dashboard; -local template = grafana.template; -local prometheus = grafana.prometheus; -local dashboardUid = 'bigip-cluster-overview'; - -local promDatasourceName = 'datasource'; - -local promDatasource = { - uid: '${%s}' % promDatasourceName, -}; - -local nodeAvailabilityPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - '100 * sum by(partition, instance, job) (bigip_node_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}) / clamp_min(count by(partition, instance, job) (bigip_node_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}),1)', - datasource=promDatasource, - legendFormat='{{instance}}', - format='time_series', - ), - ], - type: 'gauge', - title: 'Node availability', - description: 'The percentage of nodes available.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'red', - value: null, - }, - { - color: 'red', - value: 95, - }, - { - color: 'yellow', - value: 96, - }, - { - color: 'green', - value: 100, - }, - ], - }, - unit: 'percent', - }, - overrides: [], - }, - options: { - minVizHeight: 75, - minVizWidth: 75, - orientation: 'auto', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showThresholdLabels: false, - showThresholdMarkers: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local poolAvailabilityPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - '100 * sum by(partition, instance, job) (bigip_pool_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}) / clamp_min(count by(partition, instance, job) (bigip_pool_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}),1)', - datasource=promDatasource, - legendFormat='{{instance}}', - format='time_series', - ), - ], - type: 'gauge', - title: 'Pool availability', - description: 'The percentage of pools available.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'red', - value: null, - }, - { - color: 'red', - value: 95, - }, - { - color: 'yellow', - value: 96, - }, - { - color: 'green', - value: 100, - }, - ], - }, - unit: 'percent', - }, - overrides: [], - }, - options: { - minVizHeight: 75, - minVizWidth: 75, - orientation: 'auto', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showThresholdLabels: false, - showThresholdMarkers: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local virtualServerAvailabilityPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - '100 * sum by(partition, instance, job) (bigip_vs_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}) / clamp_min(count by(partition, instance, job) (bigip_vs_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}),1)', - datasource=promDatasource, - legendFormat='{{instance}}', - format='time_series', - ), - ], - type: 'gauge', - title: 'Virtual server availability', - description: 'The percentage of virtual servers available.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'red', - value: null, - }, - { - color: 'red', - value: 95, - }, - { - color: 'yellow', - value: 96, - }, - { - color: 'green', - value: 100, - }, - ], - }, - unit: 'percent', - }, - overrides: [], - }, - options: { - minVizHeight: 75, - minVizWidth: 75, - orientation: 'auto', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showThresholdLabels: false, - showThresholdMarkers: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local topActiveServersideNodesPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, bigip_node_serverside_cur_conns{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"})', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - ), - ], - type: 'bargauge', - title: 'Top active server-side nodes', - description: 'Nodes with the highest number of active server-side connections.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topOutboundTrafficNodesPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, increase(bigip_node_serverside_bytes_out{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}[$__interval:]))', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'bargauge', - title: 'Top outbound traffic nodes / $__interval', - description: 'Nodes with the highest outbound traffic.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'decbytes', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topActiveMembersInPoolsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, bigip_pool_active_member_cnt{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"})', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - ), - ], - type: 'bargauge', - title: 'Top active members in pools', - description: 'Pools with the highest number of active members.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topRequestedPoolsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, increase(bigip_pool_tot_requests{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}[$__interval:]))', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'bargauge', - title: 'Top requested pools / $__interval', - description: 'Pools with the highest number of requests.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topQueueDepthPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, bigip_pool_connq_depth{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"})', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - ), - ], - type: 'bargauge', - title: 'Top queue depth', - description: 'Pools with the largest connection queues.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topUtilizedVirtualServersPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, increase(bigip_vs_clientside_bytes_in{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}[$__interval:])) + topk(5, increase(bigip_vs_clientside_bytes_out{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"}[$__interval:]))', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'bargauge', - title: 'Top utilized virtual servers / $__interval', - description: 'Virtual servers with the highest traffic (inbound and outbound).', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'decbytes', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -local topLatencyVirtualServersPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'topk($k, bigip_vs_cs_mean_conn_dur{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"})', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - ), - ], - type: 'bargauge', - title: 'Top latency virtual servers', - description: 'Virtual servers with the highest response times.', - fieldConfig: { - defaults: { - color: { - mode: 'thresholds', - }, - mappings: [], - min: 0, - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'ms', - }, - overrides: [], - }, - options: { - displayMode: 'gradient', - minVizHeight: 10, - minVizWidth: 0, - orientation: 'horizontal', - reduceOptions: { - calcs: [ - 'lastNotNull', - ], - fields: '', - values: false, - }, - showUnfilled: true, - valueMode: 'color', - }, - pluginVersion: '10.2.0-60139', -}; - -{ - grafanaDashboards+:: { - 'bigip-cluster-overview.json': - dashboard.new( - 'BIG-IP cluster overview', - time_from='%s' % $._config.dashboardPeriod, - tags=($._config.dashboardTags), - timezone='%s' % $._config.dashboardTimezone, - refresh='%s' % $._config.dashboardRefresh, - description='', - uid=dashboardUid, - ) - .addLink(grafana.link.dashboards( - asDropdown=false, - title='Other BIG-IP dashboards', - includeVars=true, - keepTime=true, - tags=($._config.dashboardTags), - )) - .addTemplates( - [ - template.datasource( - promDatasourceName, - 'prometheus', - null, - label='Data Source', - refresh='load' - ), - template.new( - 'job', - promDatasource, - 'label_values(bigip_node_status_availability_state,job)', - label='Job', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'instance', - promDatasource, - 'label_values(bigip_node_status_availability_state{job=~"$job"}, instance)', - label='Instance', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.custom( - 'k', - query='5,10,20,50', - current='5', - label='Top node count', - refresh='never', - includeAll=false, - multi=false, - allValues='', - ), - template.new( - 'bigip_partition', - promDatasource, - 'label_values(bigip_node_status_availability_state{job=~"$job", instance=~"$instance", partition=~"$bigip_partition"},partition)', - label='BIG-IP partition', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - ] - ) - .addPanels( - [ - nodeAvailabilityPanel { gridPos: { h: 5, w: 8, x: 0, y: 0 } }, - poolAvailabilityPanel { gridPos: { h: 5, w: 8, x: 8, y: 0 } }, - virtualServerAvailabilityPanel { gridPos: { h: 5, w: 8, x: 16, y: 0 } }, - topActiveServersideNodesPanel { gridPos: { h: 5, w: 12, x: 0, y: 5 } }, - topOutboundTrafficNodesPanel { gridPos: { h: 5, w: 12, x: 12, y: 5 } }, - topActiveMembersInPoolsPanel { gridPos: { h: 5, w: 8, x: 0, y: 10 } }, - topRequestedPoolsPanel { gridPos: { h: 5, w: 8, x: 8, y: 10 } }, - topQueueDepthPanel { gridPos: { h: 5, w: 8, x: 16, y: 9 } }, - topUtilizedVirtualServersPanel { gridPos: { h: 5, w: 12, x: 0, y: 15 } }, - topLatencyVirtualServersPanel { gridPos: { h: 5, w: 12, x: 12, y: 15 } }, - ] - ), - }, -} diff --git a/f5-bigip-mixin/dashboards/bigip-logs-overview.libsonnet b/f5-bigip-mixin/dashboards/bigip-logs-overview.libsonnet deleted file mode 100644 index 8e35acd33..000000000 --- a/f5-bigip-mixin/dashboards/bigip-logs-overview.libsonnet +++ /dev/null @@ -1,35 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local logsDashboard = import 'github.com/grafana/jsonnet-libs/logs-lib/logs/main.libsonnet'; - -{ - grafanaDashboards+:: - if $._config.enableLokiLogs then - { - local bigIPLogsPanel = - logsDashboard.new( - 'BIG-IP logs', - datasourceName='loki_datasource', - datasourceRegex='(?!grafanacloud.+usage-insights|grafanacloud.+alert-state-history).+', - filterSelector=$._config.filterSelector, - labels=['job', 'host', 'syslog_facility', 'level'], - formatParser=null, - showLogsVolume=true - ) - { - panels+: - { - logs+: - // BIG-IP logs already have timestamp - g.panel.logs.options.withShowTime(false), - }, - dashboards+: - { - logs+: g.dashboard.withLinksMixin($.grafanaDashboards['bigip-cluster-overview.json'].links) - + g.dashboard.withUid('bigip-logs-overview') - + g.dashboard.withTags($._config.dashboardTags) - + g.dashboard.withRefresh($._config.dashboardRefresh), - }, - }, - 'bigip-logs-overview.json': bigIPLogsPanel.dashboards.logs, - } else {}, -} diff --git a/f5-bigip-mixin/dashboards/bigip-node-overview.libsonnet b/f5-bigip-mixin/dashboards/bigip-node-overview.libsonnet deleted file mode 100644 index 327a0ce8f..000000000 --- a/f5-bigip-mixin/dashboards/bigip-node-overview.libsonnet +++ /dev/null @@ -1,813 +0,0 @@ -local grafana = (import 'grafonnet/grafana.libsonnet'); -local dashboard = grafana.dashboard; -local template = grafana.template; -local prometheus = grafana.prometheus; - -local dashboardUid = 'bigip-node-overview'; - -local promDatasourceName = 'datasource'; - -local promDatasource = { - uid: '${%s}' % promDatasourceName, -}; - -local availabilityStatusPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_node_status_availability_state{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}', - datasource=promDatasource, - intervalFactor=2, - instant=true, - legendFormat='{{node}} - {{instance}}', - format='table', - ), - ], - type: 'table', - title: 'Availability status', - description: 'The availability status of the node.', - fieldConfig: { - defaults: { - color: { - mode: 'fixed', - }, - custom: { - align: 'left', - cellOptions: { - type: 'color-text', - }, - inspect: false, - }, - mappings: [ - { - options: { - '0': { - color: 'red', - index: 1, - text: 'Unavailable', - }, - '1': { - color: 'green', - index: 0, - text: 'Available', - }, - }, - type: 'value', - }, - ], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [ - { - matcher: { - id: 'byName', - options: 'Time', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'job', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: '__name__', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'partition', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'instance', - }, - properties: [ - { - id: 'displayName', - value: 'Instance', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'node', - }, - properties: [ - { - id: 'displayName', - value: 'Node', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Value', - }, - properties: [ - { - id: 'displayName', - value: 'Status', - }, - ], - }, - ], - }, - options: { - cellHeight: 'sm', - footer: { - countRows: false, - fields: [], - reducer: [ - 'sum', - ], - show: false, - }, - showHeader: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local activeSessionsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_node_cur_sessions{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Active sessions', - description: 'The current number of active sessions to the node.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local requests__intervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_node_tot_requests{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Requests / $__interval', - description: 'The number of requests made to the node.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local connectionsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_node_serverside_cur_conns{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}} - current', - format='time_series', - ), - prometheus.target( - 'bigip_node_serverside_max_conns{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}} - max', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Connections', - description: 'The current active server-side connections to the node in comparison to the maximum connection capacity.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [ - 'min', - 'mean', - 'max', - ], - displayMode: 'table', - placement: 'right', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficInboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_node_serverside_bytes_in{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Traffic inbound', - description: 'The rate of data received from the pool by the node.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; -local trafficOutboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_node_serverside_bytes_out{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - ), - ], - type: 'timeseries', - title: 'Traffic outbound', - description: 'The rate of data sent from the pool by the node.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsInboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_node_serverside_pkts_in{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets inbound / $__interval', - description: 'The number of packets received by the node from the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsOutboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_node_serverside_pkts_out{job=~"$job", instance=~"$instance", node=~"$bigip_node", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{node}} - {{instance}}', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets outbound / $__interval', - description: 'The number of packets sent by the node from the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -{ - grafanaDashboards+:: { - 'bigip-node-overview.json': - dashboard.new( - 'BIG-IP node overview', - time_from='%s' % $._config.dashboardPeriod, - tags=($._config.dashboardTags), - timezone='%s' % $._config.dashboardTimezone, - refresh='%s' % $._config.dashboardRefresh, - description='', - uid=dashboardUid, - ) - .addLink(grafana.link.dashboards( - asDropdown=false, - title='Other BIG-IP dashboards', - includeVars=true, - keepTime=true, - tags=($._config.dashboardTags), - )) - .addTemplates( - std.flattenArrays([ - [ - template.datasource( - promDatasourceName, - 'prometheus', - null, - label='Data Source', - refresh='load' - ), - ], - [ - template.new( - 'job', - promDatasource, - 'label_values(bigip_node_status_availability_state,job)', - label='Job', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'instance', - promDatasource, - 'label_values(bigip_node_status_availability_state{job=~"$job"}, instance)', - label='Instance', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_node', - promDatasource, - 'label_values(bigip_node_status_availability_state{job=~"$job", instance=~"$instance"},node)', - label='BIG-IP node', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_partition', - promDatasource, - 'label_values(bigip_node_status_availability_state{job=~"$job", instance=~"$instance"},partition)', - label='BIG-IP partition', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - ], - ]) - ) - .addPanels( - std.flattenArrays([ - [ - availabilityStatusPanel { gridPos: { h: 5, w: 8, x: 0, y: 0 } }, - requests__intervalPanel { gridPos: { h: 5, w: 8, x: 8, y: 0 } }, - activeSessionsPanel { gridPos: { h: 5, w: 8, x: 16, y: 0 } }, - connectionsPanel { gridPos: { h: 5, w: 24, x: 0, y: 5 } }, - trafficInboundPanel { gridPos: { h: 5, w: 12, x: 0, y: 10 } }, - trafficOutboundPanel { gridPos: { h: 5, w: 12, x: 12, y: 10 } }, - packetsInboundIntervalPanel { gridPos: { h: 5, w: 12, x: 0, y: 15 } }, - packetsOutboundIntervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 15 } }, - ], - ]) - ), - }, -} diff --git a/f5-bigip-mixin/dashboards/bigip-pool-overview.libsonnet b/f5-bigip-mixin/dashboards/bigip-pool-overview.libsonnet deleted file mode 100644 index 11df0c891..000000000 --- a/f5-bigip-mixin/dashboards/bigip-pool-overview.libsonnet +++ /dev/null @@ -1,980 +0,0 @@ -local grafana = (import 'grafonnet/grafana.libsonnet'); -local dashboard = grafana.dashboard; -local template = grafana.template; -local prometheus = grafana.prometheus; - -local dashboardUid = 'bigip-pool-overview'; - -local promDatasourceName = 'prometheus_datasource'; - -local promDatasource = { - uid: '${%s}' % promDatasourceName, -}; - -local availabilityStatusPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_pool_status_availability_state{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - intervalFactor=2, - instant=true, - format='table', - ), - ], - type: 'table', - title: 'Availability status', - description: 'The availability status of the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'fixed', - }, - custom: { - align: 'left', - cellOptions: { - type: 'color-text', - }, - inspect: false, - }, - mappings: [ - { - options: { - '0': { - color: 'red', - index: 1, - text: 'Unavailable', - }, - '1': { - color: 'green', - index: 0, - text: 'Available', - }, - }, - type: 'value', - }, - ], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [ - { - matcher: { - id: 'byName', - options: 'Time', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'job', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: '__name__', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'partition', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'instance', - }, - properties: [ - { - id: 'displayName', - value: 'Instance', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'pool', - }, - properties: [ - { - id: 'displayName', - value: 'Pool', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Value', - }, - properties: [ - { - id: 'displayName', - value: 'Status', - }, - ], - }, - ], - }, - options: { - cellHeight: 'sm', - footer: { - countRows: false, - fields: [], - reducer: [ - 'sum', - ], - show: false, - }, - showHeader: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local requests__intervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_pool_tot_requests{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Requests / $__interval', - description: 'The number of requests made to the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local membersPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_pool_active_member_cnt{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}} - active', - format='time_series', - ), - prometheus.target( - 'bigip_pool_min_active_members{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}} - minimum', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Members', - description: 'The number of active and minimum required members within the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [ - 'min', - 'mean', - 'max', - ], - displayMode: 'table', - placement: 'right', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local connectionsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_pool_serverside_cur_conns{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}} - current', - format='time_series', - ), - prometheus.target( - 'bigip_pool_serverside_max_conns{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}} - maximum', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Connections', - description: 'The current and maximum number of node connections within the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [ - 'min', - 'mean', - 'max', - ], - displayMode: 'table', - placement: 'right', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local connectionQueueDepthPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_pool_connq_depth{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Connection queue depth', - description: 'The depth of connection queues within the pool, including the current depth.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local connectionQueueServiced__intervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_pool_connq_serviced{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Connection queue serviced / $__interval', - description: 'The number of connections that have been serviced within the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficInboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_pool_serverside_bytes_in{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Traffic inbound', - description: 'The rate of date received from virtual servers by the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficOutboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_pool_serverside_bytes_out{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - ), - ], - type: 'timeseries', - title: 'Traffic outbound', - description: 'The rate of date sent from virtual servers by the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsInboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_pool_serverside_pkts_out{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets inbound / $__interval', - description: 'The number of packets received from virtual servers by the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsOutboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_pool_serverside_pkts_out{job=~"$job", instance=~"$instance", pool=~"$bigip_pool", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{pool}} - {{instance}}', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets outbound / $__interval', - description: 'The number of packets sent from virtual servers by the pool.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -{ - grafanaDashboards+:: { - 'bigip-pool-overview.json': - dashboard.new( - 'BIG-IP pool overview', - time_from='%s' % $._config.dashboardPeriod, - tags=($._config.dashboardTags), - timezone='%s' % $._config.dashboardTimezone, - refresh='%s' % $._config.dashboardRefresh, - description='', - uid=dashboardUid, - ) - .addLink(grafana.link.dashboards( - asDropdown=false, - title='Other BIG-IP dashboards', - includeVars=true, - keepTime=true, - tags=($._config.dashboardTags), - )) - .addTemplates( - std.flattenArrays([ - [ - template.datasource( - promDatasourceName, - 'prometheus', - null, - label='Data Source', - refresh='load' - ), - ], - [ - template.new( - 'job', - promDatasource, - 'label_values(bigip_pool_status_availability_state,job)', - label='Job', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'instance', - promDatasource, - 'label_values(bigip_pool_status_availability_state{job=~"$job"}, instance)', - label='Instance', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_pool', - promDatasource, - 'label_values(bigip_pool_status_availability_state{job=~"$job", instance=~"$instance"},pool)', - label='BIG-IP pool', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_partition', - promDatasource, - 'label_values(bigip_pool_status_availability_state{job=~"$job", instance=~"$instance"},partition)', - label='BIG-IP partition', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - ], - ]) - ) - .addPanels( - std.flattenArrays([ - [ - availabilityStatusPanel { gridPos: { h: 5, w: 12, x: 0, y: 0 } }, - requests__intervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 0 } }, - membersPanel { gridPos: { h: 5, w: 24, x: 0, y: 5 } }, - connectionsPanel { gridPos: { h: 5, w: 24, x: 0, y: 10 } }, - connectionQueueDepthPanel { gridPos: { h: 5, w: 12, x: 0, y: 15 } }, - connectionQueueServiced__intervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 15 } }, - trafficInboundPanel { gridPos: { h: 5, w: 12, x: 0, y: 20 } }, - trafficOutboundPanel { gridPos: { h: 5, w: 12, x: 12, y: 20 } }, - packetsInboundIntervalPanel { gridPos: { h: 5, w: 12, x: 0, y: 25 } }, - packetsOutboundIntervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 25 } }, - ], - ]) - ), - }, -} diff --git a/f5-bigip-mixin/dashboards/bigip-virtual-server-overview.libsonnet b/f5-bigip-mixin/dashboards/bigip-virtual-server-overview.libsonnet deleted file mode 100644 index 47d940bc3..000000000 --- a/f5-bigip-mixin/dashboards/bigip-virtual-server-overview.libsonnet +++ /dev/null @@ -1,1221 +0,0 @@ -local grafana = (import 'grafonnet/grafana.libsonnet'); -local dashboard = grafana.dashboard; -local template = grafana.template; -local prometheus = grafana.prometheus; -local dashboardUid = 'bigip-virtual-server-overview'; - -local promDatasourceName = 'datasource'; - -local promDatasource = { - uid: '${%s}' % promDatasourceName, -}; - -local availabilityStatusPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_vs_status_availability_state{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - intervalFactor=2, - instant=true, - format='table', - ), - ], - type: 'table', - title: 'Availability status', - description: 'The availability status of the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'fixed', - }, - custom: { - align: 'left', - cellOptions: { - type: 'color-text', - }, - inspect: false, - }, - mappings: [ - { - options: { - '0': { - color: 'red', - index: 1, - text: 'Unavailable', - }, - '1': { - color: 'green', - index: 0, - text: 'Available', - }, - }, - type: 'value', - }, - ], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [ - { - matcher: { - id: 'byName', - options: 'Time', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'job', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: '__name__', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'partition', - }, - properties: [ - { - id: 'custom.hidden', - value: true, - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'instance', - }, - properties: [ - { - id: 'displayName', - value: 'Instance', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'vs', - }, - properties: [ - { - id: 'displayName', - value: 'Virtual server', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Value', - }, - properties: [ - { - id: 'displayName', - value: 'Status', - }, - ], - }, - ], - }, - options: { - cellHeight: 'sm', - footer: { - countRows: false, - fields: [], - reducer: [ - 'sum', - ], - show: false, - }, - showHeader: true, - }, - pluginVersion: '10.2.0-60139', -}; - -local requests__intervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_vs_tot_requests{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Requests / $__interval', - description: 'The number of requests made to the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local connectionsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_vs_clientside_cur_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - current', - format='time_series', - ), - prometheus.target( - 'bigip_vs_clientside_max_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - maximum', - format='time_series', - ), - prometheus.target( - 'bigip_vs_clientside_evicted_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - evicted', - ), - ], - type: 'timeseries', - title: 'Connections', - description: 'The evicted and current client-side connections within the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [ - 'min', - 'mean', - 'max', - ], - displayMode: 'table', - placement: 'right', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local ephemeralConnectionsPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_vs_ephemeral_cur_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - current', - ), - prometheus.target( - 'bigip_vs_ephemeral_max_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - maximum', - ), - prometheus.target( - 'bigip_vs_ephemeral_evicted_conns{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}} - evicted', - ), - ], - type: 'timeseries', - title: 'Ephemeral connections', - description: 'The ephemeral evicted and current client-side connections within the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [ - 'min', - 'mean', - 'max', - ], - displayMode: 'table', - placement: 'right', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local averageConnectionDurationPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'bigip_vs_cs_mean_conn_dur{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Average connection duration', - description: 'The average connection duration within the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'ms', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficInboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_vs_clientside_bytes_in{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Traffic inbound', - description: 'The rate of data received from clients by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficOutboundPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_vs_clientside_bytes_out{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - ), - ], - type: 'timeseries', - title: 'Traffic outbound', - description: 'The rate of data sent from clients by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficInboundEphemeralPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_vs_ephemeral_bytes_in{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - ), - ], - type: 'timeseries', - title: 'Ephemeral traffic inbound', - description: 'The rate of ephemeral data received from clients by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local trafficOutboundEphemeralPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'rate(bigip_vs_ephemeral_bytes_out{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__rate_interval])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - ), - ], - type: 'timeseries', - title: 'Ephemeral traffic outbound', - description: 'The rate of ephemeral data sent from clients by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'Bps', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsInboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_vs_clientside_pkts_in{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets inbound / $__interval', - description: 'The number of packets received by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsOutboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_vs_clientside_pkts_out{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Packets outbound / $__interval', - description: 'The number of packets sent by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsEphemeralInboundntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_vs_ephemeral_pkts_in{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - format='time_series', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Ephemeral packets inbound / $__interval', - description: 'The number of ephemeral packets received by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -local packetsEphemeralOutboundIntervalPanel = { - datasource: promDatasource, - targets: [ - prometheus.target( - 'increase(bigip_vs_ephemeral_pkts_out{job=~"$job", instance=~"$instance", vs=~"$bigip_virtual_server", partition=~"$bigip_partition"}[$__interval:])', - datasource=promDatasource, - legendFormat='{{vs}} - {{instance}}', - interval='1m', - ), - ], - type: 'timeseries', - title: 'Ephemeral packets outbound / $__interval', - description: 'The number of ephemeral packets sent by the virtual server.', - fieldConfig: { - defaults: { - color: { - mode: 'palette-classic', - }, - custom: { - axisCenteredZero: false, - axisColorMode: 'text', - axisLabel: '', - axisPlacement: 'auto', - barAlignment: 0, - drawStyle: 'line', - fillOpacity: 30, - gradientMode: 'none', - hideFrom: { - legend: false, - tooltip: false, - viz: false, - }, - insertNulls: false, - lineInterpolation: 'smooth', - lineWidth: 2, - pointSize: 5, - scaleDistribution: { - type: 'linear', - }, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - thresholdsStyle: { - mode: 'off', - }, - }, - mappings: [], - thresholds: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - ], - }, - unit: 'none', - }, - overrides: [], - }, - options: { - legend: { - calcs: [], - displayMode: 'list', - placement: 'bottom', - showLegend: true, - }, - tooltip: { - mode: 'multi', - sort: 'desc', - }, - }, -}; - -{ - grafanaDashboards+:: { - 'bigip-virtual-server-overview.json': - dashboard.new( - 'BIG-IP virtual server overview', - time_from='%s' % $._config.dashboardPeriod, - tags=($._config.dashboardTags), - timezone='%s' % $._config.dashboardTimezone, - refresh='%s' % $._config.dashboardRefresh, - description='', - uid=dashboardUid, - ) - .addLink(grafana.link.dashboards( - asDropdown=false, - title='Other BIG-IP dashboards', - includeVars=true, - keepTime=true, - tags=($._config.dashboardTags), - )) - .addTemplates( - std.flattenArrays([ - [ - template.datasource( - promDatasourceName, - 'prometheus', - null, - label='Data Source', - refresh='load' - ), - ], - [ - template.new( - 'job', - promDatasource, - 'label_values(bigip_vs_status_availability_state,job)', - label='Job', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'instance', - promDatasource, - 'label_values(bigip_vs_status_availability_state{job=~"$job"}, instance)', - label='Instance', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_virtual_server', - promDatasource, - 'label_values(bigip_vs_status_availability_state{job=~"$job", instance=~"$instance"},vs)', - label='BIG-IP virtual server', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - template.new( - 'bigip_partition', - promDatasource, - 'label_values(bigip_vs_status_availability_state{job=~"$job", instance=~"$instance"},partition)', - label='BIG-IP partition', - refresh=2, - includeAll=true, - multi=true, - allValues='.+', - sort=1 - ), - ], - ]) - ) - .addPanels( - std.flattenArrays([ - [ - availabilityStatusPanel { gridPos: { h: 5, w: 8, x: 0, y: 0 } }, - requests__intervalPanel { gridPos: { h: 5, w: 8, x: 8, y: 0 } }, - averageConnectionDurationPanel { gridPos: { h: 5, w: 8, x: 16, y: 0 } }, - connectionsPanel { gridPos: { h: 5, w: 24, x: 0, y: 5 } }, - ephemeralConnectionsPanel { gridPos: { h: 5, w: 24, x: 0, y: 10 } }, - trafficInboundPanel { gridPos: { h: 5, w: 12, x: 0, y: 15 } }, - trafficOutboundPanel { gridPos: { h: 5, w: 12, x: 12, y: 15 } }, - trafficInboundEphemeralPanel { gridPos: { h: 5, w: 12, x: 0, y: 20 } }, - trafficOutboundEphemeralPanel { gridPos: { h: 5, w: 12, x: 12, y: 20 } }, - packetsInboundIntervalPanel { gridPos: { h: 5, w: 12, x: 0, y: 25 } }, - packetsOutboundIntervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 25 } }, - packetsEphemeralInboundntervalPanel { gridPos: { h: 5, w: 12, x: 0, y: 30 } }, - packetsEphemeralOutboundIntervalPanel { gridPos: { h: 5, w: 12, x: 12, y: 30 } }, - ], - ]) - ), - }, -} diff --git a/f5-bigip-mixin/dashboards/dashboards.libsonnet b/f5-bigip-mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index 36515fb6e..000000000 --- a/f5-bigip-mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,5 +0,0 @@ -(import 'bigip-cluster-overview.libsonnet') + -(import 'bigip-node-overview.libsonnet') + -(import 'bigip-pool-overview.libsonnet') + -(import 'bigip-virtual-server-overview.libsonnet') + -(import 'bigip-logs-overview.libsonnet') diff --git a/f5-bigip-mixin/dashboards_out/bigip-cluster-overview.json b/f5-bigip-mixin/dashboards_out/bigip-cluster-overview.json index 6c8762fe2..a40cc4075 100644 --- a/f5-bigip-mixin/dashboards_out/bigip-cluster-overview.json +++ b/f5-bigip-mixin/dashboards_out/bigip-cluster-overview.json @@ -1,48 +1,79 @@ { - "__inputs": [ ], - "__requires": [ ], "annotations": { - "list": [ ] + "list": [ + { } + ] }, - "description": "", - "editable": false, - "gnetId": null, - "graphTooltip": 0, - "hideControls": false, - "id": null, "links": [ { - "asDropdown": false, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "f5-bigip-mixin" - ], - "targetBlank": false, - "title": "Other BIG-IP dashboards", - "type": "dashboards", - "url": "" + "f5BigipLogs": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP logs", + "type": "link", + "url": "/d/f5bigip-logs" + }, + "f5BigipNodeOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP node overview", + "type": "link", + "url": "/d/f5bigip_node_overview" + }, + "f5BigipPoolOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP pool overview", + "type": "link", + "url": "/d/f5bigip_pool_overview" + }, + "f5BigipVirtualServerOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP virtual server overview", + "type": "link", + "url": "/d/f5bigip_virtual_server_overview" + }, + "otherDashboards": { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "f5-bigip-mixin" + ], + "title": "All dashboards", + "type": "dashboards" + } } ], "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 0, + "x": 0, + "y": 0 + }, + "id": 1, + "panels": [ ], + "title": "Cluster overview", + "type": "row" + }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The percentage of nodes available.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", - "value": null + "value": 0 }, { "color": "red", @@ -59,40 +90,32 @@ ] }, "unit": "percent" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 0, - "y": 0 + "y": 1 }, "id": 2, "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "100 * sum by(partition, instance, job) (bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}) / clamp_min(count by(partition, instance, job) (bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}),1)", + "expr": "100 * sum by (job,instance,partition) (bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}) / clamp_min(count by (job,instance,partition) (bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}),1)", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{instance}}", + "refId": "Node availability" } ], "title": "Node availability", @@ -100,21 +123,18 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The percentage of pools available.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", - "value": null + "value": 0 }, { "color": "red", @@ -131,40 +151,32 @@ ] }, "unit": "percent" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 8, - "y": 0 + "y": 1 }, "id": 3, "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "100 * sum by(partition, instance, job) (bigip_pool_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}) / clamp_min(count by(partition, instance, job) (bigip_pool_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}),1)", + "expr": "100 * sum by (job,instance,partition) (bigip_pool_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}) / clamp_min(count by (job,instance,partition) (bigip_pool_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}),1)", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{instance}}", + "refId": "Pool availability" } ], "title": "Pool availability", @@ -172,21 +184,18 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The percentage of virtual servers available.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", - "value": null + "value": 0 }, { "color": "red", @@ -203,40 +212,32 @@ ] }, "unit": "percent" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 16, - "y": 0 + "y": 1 }, "id": 4, "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "100 * sum by(partition, instance, job) (bigip_vs_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}) / clamp_min(count by(partition, instance, job) (bigip_vs_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}),1)", + "expr": "100 * sum by (job,instance,partition) (bigip_vs_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}) / clamp_min(count by (job,instance,partition) (bigip_vs_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\"}),1)", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{instance}}", + "refId": "Virtual server availability" } ], "title": "Virtual server availability", @@ -244,61 +245,39 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Nodes with the highest number of active server-side connections.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 5 + "y": 9 }, "id": 5, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, bigip_node_serverside_cur_conns{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"})", + "expr": "topk($k, bigip_node_serverside_cur_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"})", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Top active server-side nodes" } ], "title": "Top active server-side nodes", @@ -306,62 +285,40 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Nodes with the highest outbound traffic.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "decbytes" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 5 + "y": 9 }, "id": 6, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, increase(bigip_node_serverside_bytes_out{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:]))", + "expr": "topk($k, increase(bigip_node_serverside_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval))", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{node}} - {{instance}}", + "refId": "Top outbound traffic nodes" } ], "title": "Top outbound traffic nodes / $__interval", @@ -369,61 +326,39 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Pools with the highest number of active members.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 0, - "y": 10 + "y": 17 }, "id": 7, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, bigip_pool_active_member_cnt{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"})", + "expr": "topk($k, bigip_pool_active_member_cnt{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"})", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Top active members in pools" } ], "title": "Top active members in pools", @@ -431,62 +366,40 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Pools with the highest number of requests.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 8, - "y": 10 + "y": 17 }, "id": 8, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, increase(bigip_pool_tot_requests{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:]))", + "expr": "topk($k, increase(bigip_pool_tot_requests{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval))", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Top requested pools" } ], "title": "Top requested pools / $__interval", @@ -494,61 +407,39 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Pools with the largest connection queues.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 8, "x": 16, - "y": 9 + "y": 17 }, "id": 9, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, bigip_pool_connq_depth{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"})", + "expr": "topk($k, bigip_pool_connq_depth{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"})", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Top queue depth" } ], "title": "Top queue depth", @@ -556,62 +447,40 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Virtual servers with the highest traffic (inbound and outbound).", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "decbytes" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 15 + "y": 25 }, "id": 10, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, increase(bigip_vs_clientside_bytes_in{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:])) + topk(5, increase(bigip_vs_clientside_bytes_out{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:]))", + "expr": "topk($k, increase(bigip_vs_clientside_bytes_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)) + topk($k, increase(bigip_vs_clientside_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval))", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Top utilized virtual servers" } ], "title": "Top utilized virtual servers / $__interval", @@ -619,61 +488,39 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "Virtual servers with the highest response times.", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ ], "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "ms" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 15 + "y": 25 }, "id": 11, "options": { "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "valueMode": "color" + "orientation": "horizontal" }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "topk($k, bigip_vs_cs_mean_conn_dur{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"})", + "expr": "topk($k, bigip_vs_cs_mean_conn_dur{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", partition=~\"$bigip_partition\"})", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Top latency virtual servers" } ], "title": "Top latency virtual servers", @@ -681,123 +528,105 @@ } ], "refresh": "1m", - "rows": [ ], - "schemaVersion": 14, - "style": "dark", + "schemaVersion": 39, "tags": [ "f5-bigip-mixin" ], "templating": { "list": [ { - "current": { }, - "hide": 0, - "label": "Data Source", - "name": "datasource", - "options": [ ], + "label": "Prometheus data source", + "name": "prometheus_datasource", "query": "prometheus", - "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Job", "multi": true, "name": "job", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state,job)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, job)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state{job=~\"$job\"}, instance)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\"}, instance)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" + }, + { + "hide": 2, + "label": "Loki data source", + "name": "loki_datasource", + "query": "loki", + "regex": "", + "type": "datasource" }, { - "allValue": "", "current": { + "selected": false, "text": "5", "value": "5" }, - "hide": 0, - "includeAll": false, "label": "Top node count", "multi": false, "name": "k", "options": [ { + "selected": true, "text": "5", "value": "5" }, { + "selected": false, "text": "10", "value": "10" }, { + "selected": false, "text": "20", "value": "20" }, { + "selected": false, "text": "50", "value": "50" } ], - "query": "5,10,20,50", - "refresh": 0, + "query": "5 : 5,10 : 10,20 : 20,50 : 50", + "refresh": 2, "type": "custom" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP partition", "multi": true, "name": "bigip_partition", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\", partition=~\"$bigip_partition\"},partition)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, partition)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -805,33 +634,7 @@ "from": "now-30m", "to": "now" }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, "timezone": "default", - "title": "BIG-IP cluster overview", - "uid": "bigip-cluster-overview", - "version": 0 + "title": "F5 BIG-IP cluster overview", + "uid": "f5bigip_cluster_overview" } \ No newline at end of file diff --git a/f5-bigip-mixin/dashboards_out/bigip-logs.json b/f5-bigip-mixin/dashboards_out/bigip-logs.json new file mode 100644 index 000000000..25847d3f7 --- /dev/null +++ b/f5-bigip-mixin/dashboards_out/bigip-logs.json @@ -0,0 +1,306 @@ +{ + "annotations": { + "list": [ + { } + ] + }, + "links": [ + { + "f5BigipClusterOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP cluster overview", + "type": "link", + "url": "/d/f5bigip_cluster_overview" + }, + "f5BigipNodeOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP node overview", + "type": "link", + "url": "/d/f5bigip_node_overview" + }, + "f5BigipPoolOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP pool overview", + "type": "link", + "url": "/d/f5bigip_pool_overview" + }, + "f5BigipVirtualServerOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP virtual server overview", + "type": "link", + "url": "/d/f5bigip_virtual_server_overview" + }, + "otherDashboards": { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "f5-bigip-mixin" + ], + "title": "All dashboards", + "type": "dashboards" + } + } + ], + "panels": [ + { + "datasource": { + "type": "loki", + "uid": "${loki_datasource}" + }, + "description": "Logs volume grouped by \"level\" label.", + "fieldConfig": { + "defaults": { + "custom": { + "drawStyle": "bars", + "fillOpacity": 50, + "stacking": { + "mode": "normal" + } + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "(E|e)merg|(F|f)atal|(A|a)lert|(C|c)rit.*" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "purple", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "(E|e)(rr.*|RR.*)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "(W|w)(arn.*|ARN.*|rn|RN)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "(N|n)(otice|ote)|(I|i)(nf.*|NF.*)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "dbg.*|DBG.*|(D|d)(EBUG|ebug)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "(T|t)(race|RACE)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "light-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "logs" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1, + "maxDataPoints": 100, + "options": { + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "v11.0.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${loki_datasource}" + }, + "expr": "sum by (level) (count_over_time({job=\"integrations/f5-bigip\",job=~\"$job\"}\n|~ \"$regex_search\"\n\n[$__auto]))\n", + "legendFormat": "{{ level }}" + } + ], + "title": "Logs volume", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": "Value", + "renamePattern": "logs" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, + "gridPos": { + "h": 18, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 2, + "logsPanel": { + "options": { + "showTime": true + } + }, + "options": { + "dedupStrategy": "exact", + "enableLogDetails": true, + "prettifyLogMessage": true, + "showTime": true, + "wrapLogMessage": true + }, + "pluginVersion": "v11.0.0", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "${loki_datasource}" + }, + "expr": "{job=\"integrations/f5-bigip\",job=~\"$job\"} \n|~ \"$regex_search\"\n\n\n" + } + ], + "title": "Logs", + "type": "logs" + } + ], + "refresh": "1m", + "schemaVersion": 39, + "tags": [ + "f5-bigip-mixin" + ], + "templating": { + "list": [ + { + "label": "Loki data source", + "name": "loki_datasource", + "query": "loki", + "regex": "", + "type": "datasource" + }, + { + "allValue": ".*", + "datasource": { + "type": "loki", + "uid": "${loki_datasource}" + }, + "includeAll": true, + "label": "Job", + "multi": true, + "name": "job", + "query": "label_values({job=\"integrations/f5-bigip\"}, job)", + "refresh": 2, + "sort": 1, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "", + "value": "" + }, + "label": "Regex search", + "name": "regex_search", + "options": [ + { + "selected": true, + "text": "", + "value": "" + } + ], + "query": "", + "type": "textbox" + } + ] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timezone": "default", + "title": "F5 BIG-IP logs", + "uid": "f5bigip-logs" + } \ No newline at end of file diff --git a/f5-bigip-mixin/dashboards_out/bigip-node-overview.json b/f5-bigip-mixin/dashboards_out/bigip-node-overview.json index 7bd428062..8beefad4b 100644 --- a/f5-bigip-mixin/dashboards_out/bigip-node-overview.json +++ b/f5-bigip-mixin/dashboards_out/bigip-node-overview.json @@ -1,282 +1,167 @@ { - "__inputs": [ ], - "__requires": [ ], "annotations": { - "list": [ ] + "list": [ + { } + ] }, - "description": "", - "editable": false, - "gnetId": null, - "graphTooltip": 0, - "hideControls": false, - "id": null, "links": [ { - "asDropdown": false, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "f5-bigip-mixin" - ], - "targetBlank": false, - "title": "Other BIG-IP dashboards", - "type": "dashboards", - "url": "" + "f5BigipClusterOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP cluster overview", + "type": "link", + "url": "/d/f5bigip_cluster_overview" + }, + "f5BigipLogs": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP logs", + "type": "link", + "url": "/d/f5bigip-logs" + }, + "f5BigipPoolOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP pool overview", + "type": "link", + "url": "/d/f5bigip_pool_overview" + }, + "f5BigipVirtualServerOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP virtual server overview", + "type": "link", + "url": "/d/f5bigip_virtual_server_overview" + }, + "otherDashboards": { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "f5-bigip-mixin" + ], + "title": "All dashboards", + "type": "dashboards" + } } ], "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 0, + "x": 0, + "y": 0 + }, + "id": 1, + "panels": [ ], + "title": "Node overview", + "type": "row" + }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The availability status of the node.", "fieldConfig": { "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Unavailable" - }, - "1": { - "color": "green", - "index": 0, - "text": "Available" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "job" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "partition" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "instance" - }, - "properties": [ - { - "id": "displayName", - "value": "Instance" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "node" - }, - "properties": [ - { - "id": "displayName", - "value": "Node" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" - }, - "properties": [ - { - "id": "displayName", - "value": "Status" - } - ] - } - ] + } }, "gridPos": { - "h": 5, - "w": 8, + "h": 8, + "w": 24, "x": 0, - "y": 0 + "y": 1 }, "id": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": [ ], - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", + "expr": "bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", "format": "table", "instant": true, - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "legendFormat": "{{node}} - {{instance}}", + "refId": "Availability status" } ], "title": "Availability status", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "__name__": true, + "job": true, + "partition": true + }, + "indexByName": { }, + "renameByName": { + "Value": "Status", + "instance": "Instance", + "node": "Node" + } + } + } + ], "type": "table" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of requests made to the node.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 0 + "h": 8, + "w": 12, + "x": 0, + "y": 9 }, "id": 3, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_node_tot_requests{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_node_tot_requests{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{node}} - {{instance}}", + "refId": "Requests" } ], "title": "Requests / $__interval", @@ -284,87 +169,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The current number of active sessions to the node.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 0 + "h": 8, + "w": 12, + "x": 12, + "y": 9 }, "id": 4, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_node_cur_sessions{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", + "expr": "bigip_node_cur_sessions{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Active sessions" } ], "title": "Active sessions", @@ -372,100 +221,62 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The current active server-side connections to the node in comparison to the maximum connection capacity.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 24, "x": 0, - "y": 5 + "y": 17 }, "id": 5, "options": { "legend": { - "calcs": [ - "min", - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "calcs": [ ], + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_node_serverside_cur_conns{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", + "expr": "bigip_node_serverside_cur_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}} - current" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Server-side current connections" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_node_serverside_max_conns{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", + "expr": "bigip_node_serverside_max_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}} - max" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Server-side maximum connections" } ], "title": "Connections", @@ -473,87 +284,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of data received from the pool by the node.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 10 + "y": 25 }, "id": 6, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_node_serverside_bytes_in{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_node_serverside_bytes_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Traffic inbound" } ], "title": "Traffic inbound", @@ -561,87 +336,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of data sent from the pool by the node.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 10 + "y": 25 }, "id": 7, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_node_serverside_bytes_out{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_node_serverside_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "legendFormat": "{{node}} - {{instance}}", + "refId": "Traffic outbound" } ], "title": "Traffic outbound", @@ -649,88 +388,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of packets received by the node from the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 15 + "y": 33 }, "id": 8, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_node_serverside_pkts_in{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_node_serverside_pkts_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{node}} - {{instance}}", + "refId": "Packets inbound" } ], "title": "Packets inbound / $__interval", @@ -738,88 +441,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of packets sent by the node from the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 15 + "y": 33 }, "id": 9, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_node_serverside_pkts_out{job=~\"$job\", instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_node_serverside_pkts_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", node=~\"$bigip_node\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{node}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{node}} - {{instance}}", + "refId": "Packets outbound" } ], "title": "Packets outbound / $__interval", @@ -827,112 +494,84 @@ } ], "refresh": "1m", - "rows": [ ], - "schemaVersion": 14, - "style": "dark", + "schemaVersion": 39, "tags": [ "f5-bigip-mixin" ], "templating": { "list": [ { - "current": { }, - "hide": 0, - "label": "Data Source", - "name": "datasource", - "options": [ ], + "label": "Prometheus data source", + "name": "prometheus_datasource", "query": "prometheus", - "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Job", "multi": true, "name": "job", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state,job)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, job)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state{job=~\"$job\"}, instance)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\"}, instance)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" + }, + { + "hide": 2, + "label": "Loki data source", + "name": "loki_datasource", + "query": "loki", + "regex": "", + "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP node", "multi": true, "name": "bigip_node", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\"},node)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, node)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP partition", "multi": true, "name": "bigip_partition", - "options": [ ], - "query": "label_values(bigip_node_status_availability_state{job=~\"$job\", instance=~\"$instance\"},partition)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\", node=~\"$bigip_node\"}, partition)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -940,33 +579,7 @@ "from": "now-30m", "to": "now" }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, "timezone": "default", - "title": "BIG-IP node overview", - "uid": "bigip-node-overview", - "version": 0 + "title": "F5 BIG-IP node overview", + "uid": "f5bigip_node_overview" } \ No newline at end of file diff --git a/f5-bigip-mixin/dashboards_out/bigip-pool-overview.json b/f5-bigip-mixin/dashboards_out/bigip-pool-overview.json index 542c8d36e..4ed63b7f9 100644 --- a/f5-bigip-mixin/dashboards_out/bigip-pool-overview.json +++ b/f5-bigip-mixin/dashboards_out/bigip-pool-overview.json @@ -1,282 +1,167 @@ { - "__inputs": [ ], - "__requires": [ ], "annotations": { - "list": [ ] + "list": [ + { } + ] }, - "description": "", - "editable": false, - "gnetId": null, - "graphTooltip": 0, - "hideControls": false, - "id": null, "links": [ { - "asDropdown": false, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "f5-bigip-mixin" - ], - "targetBlank": false, - "title": "Other BIG-IP dashboards", - "type": "dashboards", - "url": "" + "f5BigipClusterOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP cluster overview", + "type": "link", + "url": "/d/f5bigip_cluster_overview" + }, + "f5BigipLogs": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP logs", + "type": "link", + "url": "/d/f5bigip-logs" + }, + "f5BigipNodeOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP node overview", + "type": "link", + "url": "/d/f5bigip_node_overview" + }, + "f5BigipVirtualServerOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP virtual server overview", + "type": "link", + "url": "/d/f5bigip_virtual_server_overview" + }, + "otherDashboards": { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "f5-bigip-mixin" + ], + "title": "All dashboards", + "type": "dashboards" + } } ], "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 0, + "x": 0, + "y": 0 + }, + "id": 1, + "panels": [ ], + "title": "Pool overview", + "type": "row" + }, { "datasource": { - "uid": "${prometheus_datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The availability status of the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Unavailable" - }, - "1": { - "color": "green", - "index": 0, - "text": "Available" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "job" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "partition" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "instance" - }, - "properties": [ - { - "id": "displayName", - "value": "Instance" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "pool" - }, - "properties": [ - { - "id": "displayName", - "value": "Pool" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" - }, - "properties": [ - { - "id": "displayName", - "value": "Status" - } - ] - } - ] + } }, "gridPos": { - "h": 5, - "w": 12, + "h": 8, + "w": 24, "x": 0, - "y": 0 + "y": 1 }, "id": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": [ ], - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_status_availability_state{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "table", "instant": true, - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Availability status" } ], "title": "Availability status", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "__name__": true, + "job": true, + "partition": true + }, + "indexByName": { }, + "renameByName": { + "Value": "Status", + "instance": "Instance", + "pool": "Pool" + } + } + } + ], "type": "table" }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The number of requests made to the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, - "x": 12, - "y": 0 + "x": 0, + "y": 9 }, "id": 3, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_pool_tot_requests{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_pool_tot_requests{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Requests" } ], "title": "Requests / $__interval", @@ -284,100 +169,62 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The number of active and minimum required members within the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 5 + "h": 8, + "w": 12, + "x": 12, + "y": 9 }, "id": 4, "options": { "legend": { - "calcs": [ - "min", - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "calcs": [ ], + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_active_member_cnt{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_active_member_cnt{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}} - active" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Active members" }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_min_active_members{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_min_active_members{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}} - minimum" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Minimum active members" } ], "title": "Members", @@ -385,100 +232,62 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The current and maximum number of node connections within the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 24, + "h": 8, + "w": 12, "x": 0, - "y": 10 + "y": 17 }, "id": 5, "options": { "legend": { - "calcs": [ - "min", - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "calcs": [ ], + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_serverside_cur_conns{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_serverside_cur_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}} - current" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Server-side current connections" }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_serverside_max_conns{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_serverside_max_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}} - maximum" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Server-side maximum connections" } ], "title": "Connections", @@ -486,87 +295,51 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The depth of connection queues within the pool, including the current depth.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, - "x": 0, - "y": 15 + "x": 12, + "y": 17 }, "id": 6, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "bigip_pool_connq_depth{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", + "expr": "bigip_pool_connq_depth{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Connection queue depth" } ], "title": "Connection queue depth", @@ -574,88 +347,52 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The number of connections that have been serviced within the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 15 + "h": 8, + "w": 24, + "x": 0, + "y": 25 }, "id": 7, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_pool_connq_serviced{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_pool_connq_serviced{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Connection queue serviced" } ], "title": "Connection queue serviced / $__interval", @@ -663,87 +400,51 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The rate of date received from virtual servers by the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 20 + "y": 33 }, "id": 8, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_pool_serverside_bytes_in{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_pool_serverside_bytes_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Traffic inbound" } ], "title": "Traffic inbound", @@ -751,87 +452,51 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The rate of date sent from virtual servers by the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 20 + "y": 33 }, "id": 9, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_pool_serverside_bytes_out{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_pool_serverside_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Traffic outbound" } ], "title": "Traffic outbound", @@ -839,88 +504,52 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The number of packets received from virtual servers by the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 25 + "y": 41 }, "id": 10, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_pool_serverside_pkts_out{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_pool_serverside_pkts_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Packets inbound" } ], "title": "Packets inbound / $__interval", @@ -928,88 +557,52 @@ }, { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, "description": "The number of packets sent from virtual servers by the pool.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 25 + "y": 41 }, "id": 11, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_pool_serverside_pkts_out{job=~\"$job\", instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_pool_serverside_pkts_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", pool=~\"$bigip_pool\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{pool}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{pool}} - {{instance}}", + "refId": "Packets outbound" } ], "title": "Packets outbound / $__interval", @@ -1017,112 +610,84 @@ } ], "refresh": "1m", - "rows": [ ], - "schemaVersion": 14, - "style": "dark", + "schemaVersion": 39, "tags": [ "f5-bigip-mixin" ], "templating": { "list": [ { - "current": { }, - "hide": 0, - "label": "Data Source", + "label": "Prometheus data source", "name": "prometheus_datasource", - "options": [ ], "query": "prometheus", - "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Job", "multi": true, "name": "job", - "options": [ ], - "query": "label_values(bigip_pool_status_availability_state,job)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, job)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", - "options": [ ], - "query": "label_values(bigip_pool_status_availability_state{job=~\"$job\"}, instance)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\"}, instance)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" + }, + { + "hide": 2, + "label": "Loki data source", + "name": "loki_datasource", + "query": "loki", + "regex": "", + "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP pool", "multi": true, "name": "bigip_pool", - "options": [ ], - "query": "label_values(bigip_pool_status_availability_state{job=~\"$job\", instance=~\"$instance\"},pool)", + "query": "label_values(bigip_pool_status_availability_state{job=\"integrations/f5-bigip\"}, pool)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { + "type": "prometheus", "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP partition", "multi": true, "name": "bigip_partition", - "options": [ ], - "query": "label_values(bigip_pool_status_availability_state{job=~\"$job\", instance=~\"$instance\"},partition)", + "query": "label_values(bigip_pool_status_availability_state{job=\"integrations/f5-bigip\", pool=~\"$bigip_pool\"}, partition)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -1130,33 +695,7 @@ "from": "now-30m", "to": "now" }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, "timezone": "default", - "title": "BIG-IP pool overview", - "uid": "bigip-pool-overview", - "version": 0 + "title": "F5 BIG-IP pool overview", + "uid": "f5bigip_pool_overview" } \ No newline at end of file diff --git a/f5-bigip-mixin/dashboards_out/bigip-virtual-server-overview.json b/f5-bigip-mixin/dashboards_out/bigip-virtual-server-overview.json index d7c096721..2dd477e1f 100644 --- a/f5-bigip-mixin/dashboards_out/bigip-virtual-server-overview.json +++ b/f5-bigip-mixin/dashboards_out/bigip-virtual-server-overview.json @@ -1,282 +1,167 @@ { - "__inputs": [ ], - "__requires": [ ], "annotations": { - "list": [ ] + "list": [ + { } + ] }, - "description": "", - "editable": false, - "gnetId": null, - "graphTooltip": 0, - "hideControls": false, - "id": null, "links": [ { - "asDropdown": false, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "f5-bigip-mixin" - ], - "targetBlank": false, - "title": "Other BIG-IP dashboards", - "type": "dashboards", - "url": "" + "f5BigipClusterOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP cluster overview", + "type": "link", + "url": "/d/f5bigip_cluster_overview" + }, + "f5BigipLogs": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP logs", + "type": "link", + "url": "/d/f5bigip-logs" + }, + "f5BigipNodeOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP node overview", + "type": "link", + "url": "/d/f5bigip_node_overview" + }, + "f5BigipPoolOverview": { + "includeVars": true, + "keepTime": true, + "title": "F5 BIG-IP pool overview", + "type": "link", + "url": "/d/f5bigip_pool_overview" + }, + "otherDashboards": { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "f5-bigip-mixin" + ], + "title": "All dashboards", + "type": "dashboards" + } } ], "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 0, + "x": 0, + "y": 0 + }, + "id": 1, + "panels": [ ], + "title": "Virtual server overview", + "type": "row" + }, { "datasource": { - "uid": "${datasource}" + "type": "datasource", + "uid": "-- Mixed --" }, "description": "The availability status of the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "fixed" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Unavailable" - }, - "1": { - "color": "green", - "index": 0, - "text": "Available" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "job" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "__name__" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "partition" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "instance" - }, - "properties": [ - { - "id": "displayName", - "value": "Instance" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "vs" - }, - "properties": [ - { - "id": "displayName", - "value": "Virtual server" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" - }, - "properties": [ - { - "id": "displayName", - "value": "Status" - } - ] - } - ] + } }, "gridPos": { - "h": 5, - "w": 8, + "h": 8, + "w": 24, "x": 0, - "y": 0 + "y": 1 }, "id": 2, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": [ ], - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "10.2.0-60139", + "pluginVersion": "v11.4.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_status_availability_state{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "table", "instant": true, - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Availability status" } ], "title": "Availability status", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "__name__": true, + "job": true, + "partition": true + }, + "indexByName": { }, + "renameByName": { + "Value": "Status", + "instance": "Instance", + "vs": "Virtual Server" + } + } + } + ], "type": "table" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of requests made to the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 0 + "h": 8, + "w": 12, + "x": 0, + "y": 9 }, "id": 3, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_vs_tot_requests{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_vs_tot_requests{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Requests" } ], "title": "Requests / $__interval", @@ -284,87 +169,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The average connection duration within the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "ms" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 0 + "h": 8, + "w": 12, + "x": 12, + "y": 9 }, "id": 4, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_cs_mean_conn_dur{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_cs_mean_conn_dur{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Average connection duration" } ], "title": "Average connection duration", @@ -372,109 +221,73 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The evicted and current client-side connections within the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 24, + "h": 8, + "w": 12, "x": 0, - "y": 5 + "y": 17 }, "id": 5, "options": { "legend": { - "calcs": [ - "min", - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "calcs": [ ], + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_clientside_cur_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_clientside_cur_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - current" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Client-side current connections" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_clientside_max_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_clientside_max_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - maximum" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Client-side maximum connections" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_clientside_evicted_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_clientside_evicted_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - evicted" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Client-side evicted connections" } ], "title": "Connections", @@ -482,109 +295,73 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The ephemeral evicted and current client-side connections within the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 10 + "h": 8, + "w": 12, + "x": 12, + "y": 17 }, "id": 6, "options": { "legend": { - "calcs": [ - "min", - "mean", - "max" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true + "calcs": [ ], + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_ephemeral_cur_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_ephemeral_cur_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - current" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral current connections" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_ephemeral_max_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_ephemeral_max_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - maximum" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral maximum connections" }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "bigip_vs_ephemeral_evicted_conns{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}", + "expr": "bigip_vs_ephemeral_evicted_conns{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}} - evicted" + "instant": false, + "legendFormat": "{{vs}} - {{instance}} - evicted", + "refId": "Ephemeral evicted connections" } ], "title": "Ephemeral connections", @@ -592,87 +369,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of data received from clients by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 15 + "y": 25 }, "id": 7, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_vs_clientside_bytes_in{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_vs_clientside_bytes_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Traffic inbound" } ], "title": "Traffic inbound", @@ -680,87 +421,51 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of data sent from clients by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 15 + "y": 25 }, "id": 8, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_vs_clientside_bytes_out{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_vs_clientside_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Traffic outbound" } ], "title": "Traffic outbound", @@ -768,87 +473,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of ephemeral data received from clients by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 20 + "y": 33 }, "id": 9, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_vs_ephemeral_bytes_in{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_vs_ephemeral_bytes_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral traffic inbound" } ], "title": "Ephemeral traffic inbound", @@ -856,87 +526,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The rate of ephemeral data sent from clients by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "Bps" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 20 + "y": 33 }, "id": 10, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "rate(bigip_vs_ephemeral_bytes_out{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__rate_interval])", + "expr": "rate(bigip_vs_ephemeral_bytes_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__rate_interval])", "format": "time_series", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral traffic outbound" } ], "title": "Ephemeral traffic outbound", @@ -944,88 +579,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of packets received by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 25 + "y": 41 }, "id": 11, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_vs_clientside_pkts_in{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_vs_clientside_pkts_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Packets inbound" } ], "title": "Packets inbound / $__interval", @@ -1033,88 +632,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of packets sent by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 25 + "y": 41 }, "id": 12, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_vs_clientside_pkts_out{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_vs_clientside_pkts_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Packets outbound" } ], "title": "Packets outbound / $__interval", @@ -1122,88 +685,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of ephemeral packets received by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 30 + "y": 49 }, "id": 13, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_vs_ephemeral_pkts_in{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_vs_ephemeral_pkts_in{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral packets inbound" } ], "title": "Ephemeral packets inbound / $__interval", @@ -1211,88 +738,52 @@ }, { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, "description": "The number of ephemeral packets sent by the virtual server.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", "fillOpacity": 30, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, + "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [ ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] + "showPoints": "never" }, "unit": "none" - }, - "overrides": [ ] + } }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 12, - "y": 30 + "y": 49 }, "id": 14, "options": { "legend": { "calcs": [ ], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "displayMode": "list" }, "tooltip": { "mode": "multi", "sort": "desc" } }, + "pluginVersion": "v11.0.0", "targets": [ { "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "expr": "increase(bigip_vs_ephemeral_pkts_out{job=~\"$job\", instance=~\"$instance\", vs=~\"$bigip_virtual_server\", partition=~\"$bigip_partition\"}[$__interval:])", + "expr": "increase(bigip_vs_ephemeral_pkts_out{job=\"integrations/f5-bigip\",job=~\"$job\",instance=~\"$instance\", vs=~\"$bigip_vs\", partition=~\"$bigip_partition\"}[$__interval:] offset -$__interval)", "format": "time_series", - "interval": "1m", - "intervalFactor": 2, - "legendFormat": "{{vs}} - {{instance}}" + "instant": false, + "interval": "2m", + "legendFormat": "{{vs}} - {{instance}}", + "refId": "Ephemeral packets outbound" } ], "title": "Ephemeral packets outbound / $__interval", @@ -1300,112 +791,84 @@ } ], "refresh": "1m", - "rows": [ ], - "schemaVersion": 14, - "style": "dark", + "schemaVersion": 39, "tags": [ "f5-bigip-mixin" ], "templating": { "list": [ { - "current": { }, - "hide": 0, - "label": "Data Source", - "name": "datasource", - "options": [ ], + "label": "Prometheus data source", + "name": "prometheus_datasource", "query": "prometheus", - "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Job", "multi": true, "name": "job", - "options": [ ], - "query": "label_values(bigip_vs_status_availability_state,job)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\"}, job)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", - "options": [ ], - "query": "label_values(bigip_vs_status_availability_state{job=~\"$job\"}, instance)", + "query": "label_values(bigip_node_status_availability_state{job=\"integrations/f5-bigip\",job=~\"$job\"}, instance)", "refresh": 2, - "regex": "", "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" + }, + { + "hide": 2, + "label": "Loki data source", + "name": "loki_datasource", + "query": "loki", + "regex": "", + "type": "datasource" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP virtual server", "multi": true, - "name": "bigip_virtual_server", - "options": [ ], - "query": "label_values(bigip_vs_status_availability_state{job=~\"$job\", instance=~\"$instance\"},vs)", + "name": "bigip_vs", + "query": "label_values(bigip_vs_status_availability_state{job=\"integrations/f5-bigip\"}, vs)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "allValue": ".+", - "current": { }, "datasource": { - "uid": "${datasource}" + "type": "prometheus", + "uid": "${prometheus_datasource}" }, - "hide": 0, "includeAll": true, "label": "BIG-IP partition", "multi": true, "name": "bigip_partition", - "options": [ ], - "query": "label_values(bigip_vs_status_availability_state{job=~\"$job\", instance=~\"$instance\"},partition)", + "query": "label_values(bigip_vs_status_availability_state{job=\"integrations/f5-bigip\", vs=~\"$bigip_vs\"}, partition)", "refresh": 2, - "regex": "", - "sort": 1, - "tagValuesQuery": "", - "tags": [ ], - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -1413,33 +876,7 @@ "from": "now-30m", "to": "now" }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, "timezone": "default", - "title": "BIG-IP virtual server overview", - "uid": "bigip-virtual-server-overview", - "version": 0 + "title": "F5 BIG-IP virtual server overview", + "uid": "f5bigip_virtual_server_overview" } \ No newline at end of file diff --git a/f5-bigip-mixin/g.libsonnet b/f5-bigip-mixin/g.libsonnet new file mode 100644 index 000000000..e6a2060ee --- /dev/null +++ b/f5-bigip-mixin/g.libsonnet @@ -0,0 +1 @@ +import 'github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet' diff --git a/f5-bigip-mixin/jsonnetfile.json b/f5-bigip-mixin/jsonnetfile.json index 83a4fe35b..518b46ec2 100644 --- a/f5-bigip-mixin/jsonnetfile.json +++ b/f5-bigip-mixin/jsonnetfile.json @@ -19,6 +19,15 @@ }, "version": "main" }, + { + "source": { + "git": { + "remote": "https://github.com/grafana/jsonnet-libs.git", + "subdir": "common-lib" + } + }, + "version": "master" + }, { "source": { "git": { diff --git a/f5-bigip-mixin/links.libsonnet b/f5-bigip-mixin/links.libsonnet new file mode 100644 index 000000000..83f78e663 --- /dev/null +++ b/f5-bigip-mixin/links.libsonnet @@ -0,0 +1,38 @@ +local g = import './g.libsonnet'; + +{ + local link = g.dashboard.link, + + new(this): { + f5BigipClusterOverview: + link.link.new(this.config.dashboardNamePrefix + ' cluster overview', '/d/' + this.grafana.dashboards['bigip-cluster-overview.json'].uid) + + link.link.options.withKeepTime(true) + + link.link.options.withIncludeVars(true), + + f5BigipNodeOverview: + link.link.new(this.config.dashboardNamePrefix + ' node overview', '/d/' + this.grafana.dashboards['bigip-node-overview.json'].uid) + + link.link.options.withKeepTime(true) + + link.link.options.withIncludeVars(true), + + f5BigipPoolOverview: + link.link.new(this.config.dashboardNamePrefix + ' pool overview', '/d/' + this.grafana.dashboards['bigip-pool-overview.json'].uid) + + link.link.options.withKeepTime(true) + + link.link.options.withIncludeVars(true), + + f5BigipVirtualServerOverview: + link.link.new(this.config.dashboardNamePrefix + ' virtual server overview', '/d/' + this.grafana.dashboards['bigip-virtual-server-overview.json'].uid) + + link.link.options.withKeepTime(true) + + link.link.options.withIncludeVars(true), + + otherDashboards: + link.dashboards.new('All dashboards', this.config.dashboardTags) + + link.dashboards.options.withIncludeVars(true) + + link.dashboards.options.withKeepTime(true) + + link.dashboards.options.withAsDropdown(true), + } + if this.config.enableLokiLogs then { + f5BigipLogs: + link.link.new(this.config.dashboardNamePrefix + ' logs', '/d/' + this.grafana.dashboards['bigip-logs.json'].uid) + + link.link.options.withKeepTime(true) + + link.link.options.withIncludeVars(true), + } else {}, +} diff --git a/f5-bigip-mixin/main.libsonnet b/f5-bigip-mixin/main.libsonnet new file mode 100644 index 000000000..8bfd83ae5 --- /dev/null +++ b/f5-bigip-mixin/main.libsonnet @@ -0,0 +1,49 @@ +local alerts = import './alerts.libsonnet'; +local config = import './config.libsonnet'; +local dashboards = import './dashboards.libsonnet'; +local links = import './links.libsonnet'; +local panels = import './panels.libsonnet'; +local rows = import './rows.libsonnet'; +local commonlib = import 'common-lib/common/main.libsonnet'; + +{ + withConfigMixin(config): { + config+: config, + }, + + new(): { + + local this = self, + config: config, + + signals: + { + [sig]: commonlib.signals.unmarshallJsonMulti( + this.config.signals[sig], + type=this.config.metricsSource + ) + for sig in std.objectFields(this.config.signals) + }, + + grafana: { + variables: commonlib.variables.new( + filteringSelector=this.config.filteringSelector, + groupLabels=this.config.groupLabels, + instanceLabels=this.config.instanceLabels, + varMetric='bigip_node_status_availability_state', + customAllValue='.+', + enableLokiLogs=this.config.enableLokiLogs, + ), + annotations: {}, + links: links.new(this), + panels: panels.new(this), + dashboards: dashboards.new(this), + rows: rows.new(this), + }, + + prometheus: { + alerts: alerts.new(this), + recordingRules: {}, + }, + }, +} diff --git a/f5-bigip-mixin/mixin.libsonnet b/f5-bigip-mixin/mixin.libsonnet index 4d987cf31..da0abe9ad 100644 --- a/f5-bigip-mixin/mixin.libsonnet +++ b/f5-bigip-mixin/mixin.libsonnet @@ -1,3 +1,13 @@ -(import 'dashboards/dashboards.libsonnet') + -(import 'alerts/alerts.libsonnet') + -(import 'config.libsonnet') +local main = import './main.libsonnet'; + +// Create the mixin with default configuration +local mixin = main.new(); + +// Export in the standard mixin format +{ + grafanaDashboards+:: mixin.grafana.dashboards, + prometheusAlerts+:: { + groups+: mixin.prometheus.alerts.groups, + }, + prometheusRules+:: mixin.prometheus.recordingRules, +} diff --git a/f5-bigip-mixin/panels.libsonnet b/f5-bigip-mixin/panels.libsonnet new file mode 100644 index 000000000..2b3383ded --- /dev/null +++ b/f5-bigip-mixin/panels.libsonnet @@ -0,0 +1,470 @@ +local g = import './g.libsonnet'; +local commonlib = import 'common-lib/common/main.libsonnet'; + +{ + new(this):: + { + local signals = this.signals, + + // Cluster overview panels - Gauges + clusterNodeAvailabilityGauge: + g.panel.gauge.new('Node availability') + + g.panel.gauge.queryOptions.withTargets([ + signals.cluster.nodeAvailability.asTarget() { interval+: '2m' }, + ]) + + g.panel.gauge.panelOptions.withDescription('The percentage of nodes available.') + + g.panel.gauge.standardOptions.withUnit('percent') + + g.panel.gauge.standardOptions.thresholds.withMode('absolute') + + g.panel.gauge.standardOptions.thresholds.withSteps([ + g.panel.gauge.thresholdStep.withValue(0) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(95) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(96) + + g.panel.gauge.thresholdStep.withColor('yellow'), + g.panel.gauge.thresholdStep.withValue(100) + + g.panel.gauge.thresholdStep.withColor('green'), + ]) + + g.panel.gauge.options.withShowThresholdMarkers(true) + + g.panel.gauge.options.withShowThresholdLabels(false), + + clusterPoolAvailabilityGauge: + g.panel.gauge.new('Pool availability') + + g.panel.gauge.queryOptions.withTargets([ + signals.cluster.poolAvailability.asTarget() { interval+: '2m' }, + ]) + + g.panel.gauge.panelOptions.withDescription('The percentage of pools available.') + + g.panel.gauge.standardOptions.withUnit('percent') + + g.panel.gauge.standardOptions.thresholds.withMode('absolute') + + g.panel.gauge.standardOptions.thresholds.withSteps([ + g.panel.gauge.thresholdStep.withValue(0) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(95) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(96) + + g.panel.gauge.thresholdStep.withColor('yellow'), + g.panel.gauge.thresholdStep.withValue(100) + + g.panel.gauge.thresholdStep.withColor('green'), + ]) + + g.panel.gauge.options.withShowThresholdMarkers(true) + + g.panel.gauge.options.withShowThresholdLabels(false), + + clusterVirtualServerAvailabilityGauge: + g.panel.gauge.new('Virtual server availability') + + g.panel.gauge.queryOptions.withTargets([ + signals.cluster.virtualServerAvailability.asTarget() { interval+: '2m' }, + ]) + + g.panel.gauge.panelOptions.withDescription('The percentage of virtual servers available.') + + g.panel.gauge.standardOptions.withUnit('percent') + + g.panel.gauge.standardOptions.thresholds.withMode('absolute') + + g.panel.gauge.standardOptions.thresholds.withSteps([ + g.panel.gauge.thresholdStep.withValue(0) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(95) + + g.panel.gauge.thresholdStep.withColor('red'), + g.panel.gauge.thresholdStep.withValue(96) + + g.panel.gauge.thresholdStep.withColor('yellow'), + g.panel.gauge.thresholdStep.withValue(100) + + g.panel.gauge.thresholdStep.withColor('green'), + ]) + + g.panel.gauge.options.withShowThresholdMarkers(true) + + g.panel.gauge.options.withShowThresholdLabels(false), + + // Cluster overview panels - BarGauges for TopK + clusterTopActiveServersideNodesBarGauge: + g.panel.barGauge.new('Top active server-side nodes') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topActiveServersideNodes.asTarget(), + ]) + + g.panel.barGauge.panelOptions.withDescription('Nodes with the highest number of active server-side connections.') + + g.panel.barGauge.standardOptions.withUnit('none') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopOutboundTrafficNodesBarGauge: + g.panel.barGauge.new('Top outbound traffic nodes / $__interval') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topOutboundTrafficNodes.asTarget() { interval+: '2m' }, + ]) + + g.panel.barGauge.panelOptions.withDescription('Nodes with the highest outbound traffic.') + + g.panel.barGauge.standardOptions.withUnit('decbytes') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopActiveMembersInPoolsBarGauge: + g.panel.barGauge.new('Top active members in pools') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topActiveMembersInPools.asTarget(), + ]) + + g.panel.barGauge.panelOptions.withDescription('Pools with the highest number of active members.') + + g.panel.barGauge.standardOptions.withUnit('none') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopRequestedPoolsBarGauge: + g.panel.barGauge.new('Top requested pools / $__interval') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topRequestedPools.asTarget() { interval+: '2m' }, + ]) + + g.panel.barGauge.panelOptions.withDescription('Pools with the highest number of requests.') + + g.panel.barGauge.standardOptions.withUnit('none') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopQueueDepthBarGauge: + g.panel.barGauge.new('Top queue depth') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topQueueDepthPools.asTarget(), + ]) + + g.panel.barGauge.panelOptions.withDescription('Pools with the largest connection queues.') + + g.panel.barGauge.standardOptions.withUnit('none') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopUtilizedVirtualServersBarGauge: + g.panel.barGauge.new('Top utilized virtual servers / $__interval') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topUtilizedVirtualServers.asTarget() { interval+: '2m' }, + ]) + + g.panel.barGauge.panelOptions.withDescription('Virtual servers with the highest traffic (inbound and outbound).') + + g.panel.barGauge.standardOptions.withUnit('decbytes') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + clusterTopLatencyVirtualServersBarGauge: + g.panel.barGauge.new('Top latency virtual servers') + + g.panel.barGauge.queryOptions.withTargets([ + signals.cluster.topLatencyVirtualServers.asTarget(), + ]) + + g.panel.barGauge.panelOptions.withDescription('Virtual servers with the highest response times.') + + g.panel.barGauge.standardOptions.withUnit('ms') + + g.panel.barGauge.standardOptions.withMin(0) + + g.panel.barGauge.options.withDisplayMode('gradient') + + g.panel.barGauge.options.withOrientation('horizontal'), + + // Node panels + nodeAvailabilityStatusTable: + g.panel.table.new('Availability status') + + g.panel.table.queryOptions.withTargets([ + signals.node.availabilityState.asTableTarget(), + ]) + + g.panel.table.queryOptions.withTransformations([ + g.panel.table.transformation.withId('organize') + + g.panel.table.transformation.withOptions({ + excludeByName: { + Time: true, + job: true, + __name__: true, + partition: true, + }, + indexByName: {}, + renameByName: { + instance: 'Instance', + node: 'Node', + Value: 'Status', + }, + }), + ]) + + g.panel.table.panelOptions.withDescription('The availability status of the node.') + + g.panel.table.standardOptions.withUnit('none'), + + nodeRequestsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Requests / $__interval', + targets=[signals.node.totalRequests.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of requests made to the node.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + nodeActiveSessionsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Active sessions', + targets=[signals.node.currentSessions.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The current number of active sessions to the node.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + nodeConnectionsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Connections', + targets=[ + signals.node.serversideCurrentConns.asTarget(), + signals.node.serversideMaxConns.asTarget(), + ] + ) + + g.panel.timeSeries.panelOptions.withDescription('The current active server-side connections to the node in comparison to the maximum connection capacity.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + nodeTrafficInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic inbound', + targets=[signals.node.serversideBytesIn.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of data received from the pool by the node.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + nodeTrafficOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic outbound', + targets=[signals.node.serversideBytesOut.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of data sent from the pool by the node.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + nodePacketsInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets inbound / $__interval', + targets=[signals.node.serversidePktsIn.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets received by the node from the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + nodePacketsOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets outbound / $__interval', + targets=[signals.node.serversidePktsOut.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets sent by the node from the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + // Pool panels + poolAvailabilityStatusTable: + g.panel.table.new('Availability status') + + g.panel.table.queryOptions.withTargets([ + signals.pool.availabilityState.asTableTarget(), + ]) + + g.panel.table.queryOptions.withTransformations([ + g.panel.table.transformation.withId('organize') + + g.panel.table.transformation.withOptions({ + excludeByName: { + Time: true, + job: true, + __name__: true, + partition: true, + }, + indexByName: {}, + renameByName: { + instance: 'Instance', + pool: 'Pool', + Value: 'Status', + }, + }), + ]) + + g.panel.table.panelOptions.withDescription('The availability status of the pool.') + + g.panel.table.standardOptions.withUnit('none'), + + poolRequestsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Requests / $__interval', + targets=[signals.pool.totalRequests.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of requests made to the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolMembersTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Members', + targets=[ + signals.pool.activeMemberCount.asTarget(), + signals.pool.minActiveMembers.asTarget(), + ] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of active and minimum required members within the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolConnectionsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Connections', + targets=[ + signals.pool.serversideCurrentConns.asTarget(), + signals.pool.serversideMaxConns.asTarget(), + ] + ) + + g.panel.timeSeries.panelOptions.withDescription('The current and maximum number of node connections within the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolConnectionQueueDepthTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Connection queue depth', + targets=[signals.pool.connectionQueueDepth.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The depth of connection queues within the pool, including the current depth.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolConnectionQueueServicedTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Connection queue serviced / $__interval', + targets=[signals.pool.connectionQueueServiced.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of connections that have been serviced within the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolTrafficInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic inbound', + targets=[signals.pool.serversideBytesIn.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of date received from virtual servers by the pool.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + poolTrafficOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic outbound', + targets=[signals.pool.serversideBytesOut.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of date sent from virtual servers by the pool.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + poolPacketsInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets inbound / $__interval', + targets=[signals.pool.serversidePktsIn.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets received from virtual servers by the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + poolPacketsOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets outbound / $__interval', + targets=[signals.pool.serversidePktsOut.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets sent from virtual servers by the pool.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + // Virtual Server panels + virtualServerAvailabilityStatusTable: + g.panel.table.new('Availability status') + + g.panel.table.queryOptions.withTargets([ + signals.virtualServer.availabilityState.asTableTarget(), + ]) + + g.panel.table.queryOptions.withTransformations([ + g.panel.table.transformation.withId('organize') + + g.panel.table.transformation.withOptions({ + excludeByName: { + Time: true, + job: true, + __name__: true, + partition: true, + }, + indexByName: {}, + renameByName: { + instance: 'Instance', + vs: 'Virtual Server', + Value: 'Status', + }, + }), + ]) + + g.panel.table.panelOptions.withDescription('The availability status of the virtual server.') + + g.panel.table.standardOptions.withUnit('none'), + + virtualServerRequestsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Requests / $__interval', + targets=[signals.virtualServer.totalRequests.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of requests made to the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerAvgConnectionDurationTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Average connection duration', + targets=[signals.virtualServer.clientsideMeanConnDuration.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The average connection duration within the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('ms'), + + virtualServerConnectionsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Connections', + targets=[ + signals.virtualServer.clientsideCurrentConns.asTarget(), + signals.virtualServer.clientsideMaxConns.asTarget(), + signals.virtualServer.clientsideEvictedConns.asTarget(), + ] + ) + + g.panel.timeSeries.panelOptions.withDescription('The evicted and current client-side connections within the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerEphemeralConnectionsTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Ephemeral connections', + targets=[ + signals.virtualServer.ephemeralCurrentConns.asTarget(), + signals.virtualServer.ephemeralMaxConns.asTarget(), + signals.virtualServer.ephemeralEvictedConns.asTarget(), + ] + ) + + g.panel.timeSeries.panelOptions.withDescription('The ephemeral evicted and current client-side connections within the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerTrafficInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic inbound', + targets=[signals.virtualServer.clientsideBytesIn.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of data received from clients by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + virtualServerTrafficOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Traffic outbound', + targets=[signals.virtualServer.clientsideBytesOut.asTarget()] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of data sent from clients by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + virtualServerEphemeralTrafficInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Ephemeral traffic inbound', + targets=[signals.virtualServer.ephemeralBytesIn.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of ephemeral data received from clients by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + virtualServerEphemeralTrafficOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Ephemeral traffic outbound', + targets=[signals.virtualServer.ephemeralBytesOut.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The rate of ephemeral data sent from clients by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('Bps'), + + virtualServerPacketsInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets inbound / $__interval', + targets=[signals.virtualServer.clientsidePktsIn.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets received by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerPacketsOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Packets outbound / $__interval', + targets=[signals.virtualServer.clientsidePktsOut.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of packets sent by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerEphemeralPacketsInboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Ephemeral packets inbound / $__interval', + targets=[signals.virtualServer.ephemeralPktsIn.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of ephemeral packets received by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + + virtualServerEphemeralPacketsOutboundTimeSeries: + commonlib.panels.generic.timeSeries.base.new( + 'Ephemeral packets outbound / $__interval', + targets=[signals.virtualServer.ephemeralPktsOut.asTarget() { interval+: '2m' }] + ) + + g.panel.timeSeries.panelOptions.withDescription('The number of ephemeral packets sent by the virtual server.') + + g.panel.timeSeries.standardOptions.withUnit('none'), + }, +} diff --git a/f5-bigip-mixin/prometheus_rules_out/prometheus_alerts.yaml b/f5-bigip-mixin/prometheus_rules_out/prometheus_alerts.yaml index 8ef7b8778..0242f9ece 100644 --- a/f5-bigip-mixin/prometheus_rules_out/prometheus_alerts.yaml +++ b/f5-bigip-mixin/prometheus_rules_out/prometheus_alerts.yaml @@ -1,12 +1,12 @@ groups: - - name: bigip-alerts + - name: f5-bigip-alerts rules: - alert: BigIPLowNodeAvailabilityStatus annotations: description: '{{ printf "%.0f" $value }} percent of available nodes, which is below the threshold of 95.' summary: Detecting a significant number of unavailable nodes which can causes potential downtime or degraded performance. expr: | - 100 * (sum(bigip_node_status_availability_state) / clamp_min(count(bigip_node_status_availability_state), 1)) < 95 + 100 * (sum(bigip_node_status_availability_state{job="integrations/f5-bigip"}) / clamp_min(count(bigip_node_status_availability_state{job="integrations/f5-bigip"}), 1)) < 95 for: 5m labels: severity: critical @@ -15,7 +15,7 @@ groups: description: '{{ printf "%.0f" $value }} percent of the max number of connections in use on node {{$labels.node}}, which is above the threshold of 80 percent.' summary: Approaching the connection limit may lead to rejecting new connections, impacting availability. expr: | - max without(instance, job) (100 * bigip_node_serverside_cur_conns / clamp_min(bigip_node_serverside_max_conns, 1)) > 80 + max without(instance, job) (100 * bigip_node_serverside_cur_conns{job="integrations/f5-bigip"} / clamp_min(bigip_node_serverside_max_conns{job="integrations/f5-bigip"}, 1)) > 80 for: 5m labels: severity: warning @@ -24,7 +24,7 @@ groups: description: '{{ printf "%.0f" $value }} percent increase in requests on pool {{$labels.pool}}, which is above the threshold of 150.' summary: An unexpected spike in requests might indicate an issue like a DDoS attack or unexpected high load. expr: | - max without(instance, job) (100 * rate(bigip_pool_tot_requests[10m]) / clamp_min(rate(bigip_pool_tot_requests[50m] offset 10m), 1)) > 150 + max without(instance, job) (100 * rate(bigip_pool_tot_requests{job="integrations/f5-bigip"}[10m]) / clamp_min(rate(bigip_pool_tot_requests{job="integrations/f5-bigip"}[50m] offset 10m), 1)) > 150 for: 10m labels: severity: warning @@ -33,7 +33,7 @@ groups: description: '{{ printf "%.0f" $value }} percent increase in connection queue depth on node {{$labels.pool}}, which is above the threshold of 75.' summary: A sudden spike or sustained high queue depth may indicate a bottleneck in handling incoming connections. expr: | - max without(instance, job) (100 * rate(bigip_pool_connq_depth[5m])) / clamp_min(rate(bigip_pool_connq_depth[50m] offset 10m), 1) > 75 + max without(instance, job) (100 * rate(bigip_pool_connq_depth{job="integrations/f5-bigip"}[5m])) / clamp_min(rate(bigip_pool_connq_depth{job="integrations/f5-bigip"}[50m] offset 10m), 1) > 75 for: 5m labels: severity: warning diff --git a/f5-bigip-mixin/rows.libsonnet b/f5-bigip-mixin/rows.libsonnet new file mode 100644 index 000000000..e79081bba --- /dev/null +++ b/f5-bigip-mixin/rows.libsonnet @@ -0,0 +1,73 @@ +local g = import './g.libsonnet'; + +{ + new(this):: + { + local panels = this.grafana.panels, + + // Cluster overview row + clusterOverviewRow: + g.panel.row.new('Cluster overview') + + g.panel.row.withPanels([ + panels.clusterNodeAvailabilityGauge { gridPos: { w: 8 } }, + panels.clusterPoolAvailabilityGauge { gridPos: { w: 8 } }, + panels.clusterVirtualServerAvailabilityGauge { gridPos: { w: 8 } }, + panels.clusterTopActiveServersideNodesBarGauge { gridPos: { w: 12 } }, + panels.clusterTopOutboundTrafficNodesBarGauge { gridPos: { w: 12 } }, + panels.clusterTopActiveMembersInPoolsBarGauge { gridPos: { w: 8 } }, + panels.clusterTopRequestedPoolsBarGauge { gridPos: { w: 8 } }, + panels.clusterTopQueueDepthBarGauge { gridPos: { w: 8 } }, + panels.clusterTopUtilizedVirtualServersBarGauge { gridPos: { w: 12 } }, + panels.clusterTopLatencyVirtualServersBarGauge { gridPos: { w: 12 } }, + ]), + + // Node overview row + nodeOverviewRow: + g.panel.row.new('Node overview') + + g.panel.row.withPanels([ + panels.nodeAvailabilityStatusTable { gridPos: { w: 24 } }, + panels.nodeRequestsTimeSeries { gridPos: { w: 12 } }, + panels.nodeActiveSessionsTimeSeries { gridPos: { w: 12 } }, + panels.nodeConnectionsTimeSeries { gridPos: { w: 24 } }, + panels.nodeTrafficInboundTimeSeries { gridPos: { w: 12 } }, + panels.nodeTrafficOutboundTimeSeries { gridPos: { w: 12 } }, + panels.nodePacketsInboundTimeSeries { gridPos: { w: 12 } }, + panels.nodePacketsOutboundTimeSeries { gridPos: { w: 12 } }, + ]), + + // Pool overview row + poolOverviewRow: + g.panel.row.new('Pool overview') + + g.panel.row.withPanels([ + panels.poolAvailabilityStatusTable { gridPos: { w: 24 } }, + panels.poolRequestsTimeSeries { gridPos: { w: 12 } }, + panels.poolMembersTimeSeries { gridPos: { w: 12 } }, + panels.poolConnectionsTimeSeries { gridPos: { w: 12 } }, + panels.poolConnectionQueueDepthTimeSeries { gridPos: { w: 12 } }, + panels.poolConnectionQueueServicedTimeSeries { gridPos: { w: 24 } }, + panels.poolTrafficInboundTimeSeries { gridPos: { w: 12 } }, + panels.poolTrafficOutboundTimeSeries { gridPos: { w: 12 } }, + panels.poolPacketsInboundTimeSeries { gridPos: { w: 12 } }, + panels.poolPacketsOutboundTimeSeries { gridPos: { w: 12 } }, + ]), + + // Virtual Server overview row + virtualServerOverviewRow: + g.panel.row.new('Virtual server overview') + + g.panel.row.withPanels([ + panels.virtualServerAvailabilityStatusTable { gridPos: { w: 24 } }, + panels.virtualServerRequestsTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerAvgConnectionDurationTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerConnectionsTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerEphemeralConnectionsTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerTrafficInboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerTrafficOutboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerEphemeralTrafficInboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerEphemeralTrafficOutboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerPacketsInboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerPacketsOutboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerEphemeralPacketsInboundTimeSeries { gridPos: { w: 12 } }, + panels.virtualServerEphemeralPacketsOutboundTimeSeries { gridPos: { w: 12 } }, + ]), + }, +} diff --git a/f5-bigip-mixin/signals/cluster.libsonnet b/f5-bigip-mixin/signals/cluster.libsonnet new file mode 100644 index 000000000..30d924a22 --- /dev/null +++ b/f5-bigip-mixin/signals/cluster.libsonnet @@ -0,0 +1,154 @@ +function(this) { + local aggregationLabels = '(' + std.join(',', this.groupLabels + this.instanceLabels + ['partition']) + ')', + filteringSelector: this.filteringSelector, + groupLabels: this.groupLabels, + instanceLabels: this.instanceLabels, + enableLokiLogs: this.enableLokiLogs, + aggLevel: 'group', + aggFunction: 'sum', + alertsInterval: '5m', + discoveryMetric: 'bigip_node_status_availability_state', + signals: { + // Cluster availability metrics + nodeAvailability: { + name: 'Node availability', + nameShort: 'Node availability', + type: 'raw', + description: 'The percentage of nodes available.', + unit: 'percent', + sources: { + prometheus: { + expr: '100 * sum by ' + aggregationLabels + ' (bigip_node_status_availability_state{%(queriesSelector)s}) / clamp_min(count by ' + aggregationLabels + ' (bigip_node_status_availability_state{%(queriesSelector)s}),1)', + legendCustomTemplate: '{{instance}}', + }, + }, + }, + + poolAvailability: { + name: 'Pool availability', + nameShort: 'Pool availability', + type: 'raw', + description: 'The percentage of pools available.', + unit: 'percent', + sources: { + prometheus: { + expr: '100 * sum by ' + aggregationLabels + ' (bigip_pool_status_availability_state{%(queriesSelector)s}) / clamp_min(count by ' + aggregationLabels + ' (bigip_pool_status_availability_state{%(queriesSelector)s}),1)', + legendCustomTemplate: '{{instance}}', + }, + }, + }, + + virtualServerAvailability: { + name: 'Virtual server availability', + nameShort: 'Virtual server availability', + type: 'raw', + description: 'The percentage of virtual servers available.', + unit: 'percent', + sources: { + prometheus: { + expr: '100 * sum by ' + aggregationLabels + ' (bigip_vs_status_availability_state{%(queriesSelector)s}) / clamp_min(count by ' + aggregationLabels + ' (bigip_vs_status_availability_state{%(queriesSelector)s}),1)', + legendCustomTemplate: '{{instance}}', + }, + }, + }, + + // TopK metrics for cluster overview + topActiveServersideNodes: { + name: 'Top active server-side nodes', + nameShort: 'Top active nodes', + type: 'raw', + description: 'Nodes with the highest number of active server-side connections.', + unit: 'none', + sources: { + prometheus: { + expr: 'topk($k, bigip_node_serverside_cur_conns{%(queriesSelector)s, partition=~"$bigip_partition"})', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + topOutboundTrafficNodes: { + name: 'Top outbound traffic nodes', + nameShort: 'Top outbound nodes', + type: 'raw', + description: 'Nodes with the highest outbound traffic.', + unit: 'decbytes', + sources: { + prometheus: { + expr: 'topk($k, increase(bigip_node_serverside_bytes_out{%(queriesSelector)s, partition=~"$bigip_partition"}[$__interval:] offset -$__interval))', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + topActiveMembersInPools: { + name: 'Top active members in pools', + nameShort: 'Top pool members', + type: 'raw', + description: 'Pools with the highest number of active members.', + unit: 'none', + sources: { + prometheus: { + expr: 'topk($k, bigip_pool_active_member_cnt{%(queriesSelector)s, partition=~"$bigip_partition"})', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + topRequestedPools: { + name: 'Top requested pools', + nameShort: 'Top pools', + type: 'raw', + description: 'Pools with the highest number of requests.', + unit: 'none', + sources: { + prometheus: { + expr: 'topk($k, increase(bigip_pool_tot_requests{%(queriesSelector)s, partition=~"$bigip_partition"}[$__interval:] offset -$__interval))', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + topQueueDepthPools: { + name: 'Top queue depth', + nameShort: 'Top queue depth', + type: 'raw', + description: 'Pools with the largest connection queues.', + unit: 'none', + sources: { + prometheus: { + expr: 'topk($k, bigip_pool_connq_depth{%(queriesSelector)s, partition=~"$bigip_partition"})', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + topUtilizedVirtualServers: { + name: 'Top utilized virtual servers', + nameShort: 'Top VS', + type: 'raw', + description: 'Virtual servers with the highest traffic (inbound and outbound).', + unit: 'decbytes', + sources: { + prometheus: { + expr: 'topk($k, increase(bigip_vs_clientside_bytes_in{%(queriesSelector)s, partition=~"$bigip_partition"}[$__interval:] offset -$__interval)) + topk($k, increase(bigip_vs_clientside_bytes_out{%(queriesSelector)s, partition=~"$bigip_partition"}[$__interval:] offset -$__interval))', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + topLatencyVirtualServers: { + name: 'Top latency virtual servers', + nameShort: 'Top latency VS', + type: 'raw', + description: 'Virtual servers with the highest response times.', + unit: 'ms', + sources: { + prometheus: { + expr: 'topk($k, bigip_vs_cs_mean_conn_dur{%(queriesSelector)s, partition=~"$bigip_partition"})', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + }, +} diff --git a/f5-bigip-mixin/signals/node.libsonnet b/f5-bigip-mixin/signals/node.libsonnet new file mode 100644 index 000000000..918479b9b --- /dev/null +++ b/f5-bigip-mixin/signals/node.libsonnet @@ -0,0 +1,158 @@ +function(this) { + local aggregationLabels = '(' + std.join(',', this.groupLabels + this.instanceLabels) + ')', + filteringSelector: this.filteringSelector, + groupLabels: this.groupLabels, + instanceLabels: this.instanceLabels, + enableLokiLogs: this.enableLokiLogs, + aggLevel: 'none', + aggFunction: 'avg', + alertsInterval: '5m', + discoveryMetric: 'bigip_node_status_availability_state', + signals: { + availabilityState: { + name: 'Availability status', + nameShort: 'Status', + type: 'gauge', + description: 'The availability status of the node.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_status_availability_state{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + valueMappings: [ + { + type: 'value', + options: { + '0': { + color: 'red', + index: 1, + text: 'Unavailable', + }, + '1': { + color: 'green', + index: 0, + text: 'Available', + }, + }, + }, + ], + }, + }, + }, + + totalRequests: { + name: 'Requests', + nameShort: 'Requests', + type: 'counter', + description: 'The number of requests made to the node.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_tot_requests{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + currentSessions: { + name: 'Active sessions', + nameShort: 'Sessions', + type: 'gauge', + description: 'The current number of active sessions to the node.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_cur_sessions{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversideCurrentConns: { + name: 'Server-side current connections', + nameShort: 'Current conns', + type: 'gauge', + description: 'The current active server-side connections to the node in comparison to the maximum connection capacity.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_serverside_cur_conns{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversideMaxConns: { + name: 'Server-side maximum connections', + nameShort: 'Max conns', + type: 'gauge', + description: 'The maximum server-side connection capacity for the node.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_serverside_max_conns{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversideBytesIn: { + name: 'Traffic inbound', + nameShort: 'In', + type: 'counter', + description: 'The rate of data received from the pool by the node.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_node_serverside_bytes_in{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversideBytesOut: { + name: 'Traffic outbound', + nameShort: 'Out', + type: 'counter', + description: 'The rate of data sent from the pool by the node.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_node_serverside_bytes_out{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversidePktsIn: { + name: 'Packets inbound', + nameShort: 'Pkts in', + type: 'counter', + description: 'The number of packets received by the node from the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_serverside_pkts_in{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + + serversidePktsOut: { + name: 'Packets outbound', + nameShort: 'Pkts out', + type: 'counter', + description: 'The number of packets sent by the node from the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_node_serverside_pkts_out{%(queriesSelector)s, node=~"$bigip_node", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{node}} - {{instance}}', + }, + }, + }, + }, +} diff --git a/f5-bigip-mixin/signals/pool.libsonnet b/f5-bigip-mixin/signals/pool.libsonnet new file mode 100644 index 000000000..c390a7378 --- /dev/null +++ b/f5-bigip-mixin/signals/pool.libsonnet @@ -0,0 +1,201 @@ +function(this) { + local aggregationLabels = '(' + std.join(',', this.groupLabels + this.instanceLabels) + ')', + filteringSelector: this.filteringSelector, + groupLabels: this.groupLabels, + instanceLabels: this.instanceLabels, + enableLokiLogs: this.enableLokiLogs, + aggLevel: 'none', + aggFunction: 'avg', + alertsInterval: '5m', + discoveryMetric: 'bigip_pool_status_availability_state', + signals: { + availabilityState: { + name: 'Availability status', + nameShort: 'Status', + type: 'gauge', + description: 'The availability status of the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_status_availability_state{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + valueMappings: [ + { + type: 'value', + options: { + '0': { + color: 'red', + index: 1, + text: 'Unavailable', + }, + '1': { + color: 'green', + index: 0, + text: 'Available', + }, + }, + }, + ], + }, + }, + }, + + totalRequests: { + name: 'Requests', + nameShort: 'Requests', + type: 'counter', + description: 'The number of requests made to the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_tot_requests{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + activeMemberCount: { + name: 'Active members', + nameShort: 'Active members', + type: 'gauge', + description: 'The number of active and minimum required members within the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_active_member_cnt{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + minActiveMembers: { + name: 'Minimum active members', + nameShort: 'Min members', + type: 'gauge', + description: 'The minimum required number of active members within the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_min_active_members{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversideCurrentConns: { + name: 'Server-side current connections', + nameShort: 'Current conns', + type: 'gauge', + description: 'The current and maximum number of node connections within the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_cur_conns{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversideMaxConns: { + name: 'Server-side maximum connections', + nameShort: 'Max conns', + type: 'gauge', + description: 'The maximum number of node connections within the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_max_conns{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + connectionQueueDepth: { + name: 'Connection queue depth', + nameShort: 'Queue depth', + type: 'gauge', + description: 'The depth of connection queues within the pool, including the current depth.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_connq_depth{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + connectionQueueServiced: { + name: 'Connection queue serviced', + nameShort: 'Queue serviced', + type: 'counter', + description: 'The number of connections that have been serviced within the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_connq_serviced{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversideBytesIn: { + name: 'Traffic inbound', + nameShort: 'In', + type: 'counter', + description: 'The rate of date received from virtual servers by the pool.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_bytes_in{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversideBytesOut: { + name: 'Traffic outbound', + nameShort: 'Out', + type: 'counter', + description: 'The rate of date sent from virtual servers by the pool.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_bytes_out{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversidePktsIn: { + name: 'Packets inbound', + nameShort: 'Pkts in', + type: 'counter', + description: 'The number of packets received from virtual servers by the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_pkts_in{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + + serversidePktsOut: { + name: 'Packets outbound', + nameShort: 'Pkts out', + type: 'counter', + description: 'The number of packets sent from virtual servers by the pool.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_pool_serverside_pkts_out{%(queriesSelector)s, pool=~"$bigip_pool", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{pool}} - {{instance}}', + }, + }, + }, + }, +} diff --git a/f5-bigip-mixin/signals/virtualserver.libsonnet b/f5-bigip-mixin/signals/virtualserver.libsonnet new file mode 100644 index 000000000..42220b5b5 --- /dev/null +++ b/f5-bigip-mixin/signals/virtualserver.libsonnet @@ -0,0 +1,272 @@ +function(this) { + local aggregationLabels = '(' + std.join(',', this.groupLabels + this.instanceLabels) + ')', + filteringSelector: this.filteringSelector, + groupLabels: this.groupLabels, + instanceLabels: this.instanceLabels, + enableLokiLogs: this.enableLokiLogs, + aggLevel: 'none', + aggFunction: 'avg', + alertsInterval: '5m', + discoveryMetric: 'bigip_vs_status_availability_state', + signals: { + availabilityState: { + name: 'Availability status', + nameShort: 'Status', + type: 'gauge', + description: 'The availability status of the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_status_availability_state{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + valueMappings: [ + { + type: 'value', + options: { + '0': { + color: 'red', + index: 1, + text: 'Unavailable', + }, + '1': { + color: 'green', + index: 0, + text: 'Available', + }, + }, + }, + ], + }, + }, + }, + + totalRequests: { + name: 'Requests', + nameShort: 'Requests', + type: 'counter', + description: 'The number of requests made to the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_tot_requests{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsideMeanConnDuration: { + name: 'Average connection duration', + nameShort: 'Avg conn duration', + type: 'gauge', + description: 'The average connection duration within the virtual server.', + unit: 'ms', + sources: { + prometheus: { + expr: 'bigip_vs_cs_mean_conn_dur{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsideCurrentConns: { + name: 'Client-side current connections', + nameShort: 'Current conns', + type: 'gauge', + description: 'The evicted and current client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_cur_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsideMaxConns: { + name: 'Client-side maximum connections', + nameShort: 'Max conns', + type: 'gauge', + description: 'The maximum client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_max_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsideEvictedConns: { + name: 'Client-side evicted connections', + nameShort: 'Evicted conns', + type: 'gauge', + description: 'The evicted client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_evicted_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralCurrentConns: { + name: 'Ephemeral current connections', + nameShort: 'Ephemeral current', + type: 'gauge', + description: 'The ephemeral evicted and current client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_cur_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralMaxConns: { + name: 'Ephemeral maximum connections', + nameShort: 'Ephemeral max', + type: 'gauge', + description: 'The ephemeral maximum client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_max_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralEvictedConns: { + name: 'Ephemeral evicted connections', + nameShort: 'Ephemeral evicted', + type: 'gauge', + description: 'The ephemeral evicted client-side connections within the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_evicted_conns{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}} - evicted', + }, + }, + }, + + clientsideBytesIn: { + name: 'Traffic inbound', + nameShort: 'In', + type: 'counter', + description: 'The rate of data received from clients by the virtual server.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_bytes_in{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsideBytesOut: { + name: 'Traffic outbound', + nameShort: 'Out', + type: 'counter', + description: 'The rate of data sent from clients by the virtual server.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_bytes_out{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralBytesIn: { + name: 'Ephemeral traffic inbound', + nameShort: 'Ephemeral in', + type: 'counter', + description: 'The rate of ephemeral data received from clients by the virtual server.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_bytes_in{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralBytesOut: { + name: 'Ephemeral traffic outbound', + nameShort: 'Ephemeral out', + type: 'counter', + description: 'The rate of ephemeral data sent from clients by the virtual server.', + unit: 'Bps', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_bytes_out{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsidePktsIn: { + name: 'Packets inbound', + nameShort: 'Pkts in', + type: 'counter', + description: 'The number of packets received by the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_pkts_in{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + clientsidePktsOut: { + name: 'Packets outbound', + nameShort: 'Pkts out', + type: 'counter', + description: 'The number of packets sent by the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_clientside_pkts_out{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralPktsIn: { + name: 'Ephemeral packets inbound', + nameShort: 'Ephemeral pkts in', + type: 'counter', + description: 'The number of ephemeral packets received by the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_pkts_in{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + + ephemeralPktsOut: { + name: 'Ephemeral packets outbound', + nameShort: 'Ephemeral pkts out', + type: 'counter', + description: 'The number of ephemeral packets sent by the virtual server.', + unit: 'none', + sources: { + prometheus: { + expr: 'bigip_vs_ephemeral_pkts_out{%(queriesSelector)s, vs=~"$bigip_vs", partition=~"$bigip_partition"}', + rangeFunction: 'increase', + legendCustomTemplate: '{{vs}} - {{instance}}', + }, + }, + }, + }, +}