From a37925c7e8a643495e9c1aebf8f24a5cc24e1ef6 Mon Sep 17 00:00:00 2001 From: "Pai, Radhika (rp592h)" Date: Wed, 31 Jul 2019 20:49:05 +0000 Subject: [PATCH] Grafana: Code for Calico Dashboard Appended the code that will add the calico dashboard to the Grafana. This will display the felix metrics which are collected by the prometheus. Change-Id: If18a18949f8093747b3f9ba819e036778c40b84e --- grafana/values.yaml | 1035 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1035 insertions(+) diff --git a/grafana/values.yaml b/grafana/values.yaml index 43bfd49e22..cb9ebdd3dc 100644 --- a/grafana/values.yaml +++ b/grafana/values.yaml @@ -16887,3 +16887,1038 @@ conf: title: CoreDNS version: 3 description: A dashboard for the CoreDNS DNS server. + Kubernetes_Calico: + __inputs: + - name: prometheus + label: Prometheus + description: '' + type: datasource + pluginId: prometheus + pluginName: Prometheus + __requires: + - type: grafana + id: grafana + name: Grafana + version: 5.0.0 + - type: panel + id: graph + name: Graph + version: '' + - type: datasource + id: prometheus + name: Prometheus + version: 1.0.0 + annotations: + list: + - builtIn: 1 + datasource: "-- Grafana --" + enable: true + hide: true + iconColor: rgba(0, 211, 255, 1) + name: Annotations & Alerts + type: dashboard + description: Calico cluster monitoring dashboard + editable: false + gnetId: 3244 + graphTooltip: 0 + id: + links: [] + panels: + - collapsed: false + gridPos: + h: 1 + w: 24 + x: 0 + y: 0 + id: 15 + panels: [] + repeat: + title: Felix + type: row + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 1 + id: 1 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_active_local_endpoints + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active Local Endpoints + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 1 + id: 3 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_active_local_policies + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active Local Policies + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 8 + id: 2 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_active_local_selectors + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active Local Selectors + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 8 + id: 4 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_active_local_tags + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active Local Tags + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 15 + id: 5 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_cluster_num_host_endpoints + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Cluster Host Endpoints + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 15 + id: 6 + legend: + alignAsTable: true + avg: false + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_cluster_num_workload_endpoints + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Cluster Workload Endpoints + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 22 + id: 7 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_cluster_num_hosts + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Clusters Hosts + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 22 + id: 8 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_ipsets_calico + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active IP Sets + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 29 + id: 9 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_iptables_chains + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Active IP Tables Chains + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 29 + id: 10 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_ipset_errors + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: IP Set Command Failures + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 36 + id: 11 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_iptables_save_errors + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: IP Tables Save Errors + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 36 + id: 12 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_iptables_restore_errors + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: IP Tables Restore Errors + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 0 + y: 43 + id: 13 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_resyncs_started + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Felix Resyncing Datastore + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + - aliasColors: {} + bars: false + dashLength: 10 + dashes: false + datasource: prometheus + fill: 1 + gridPos: + h: 7 + w: 12 + x: 12 + y: 43 + id: 14 + legend: + alignAsTable: true + avg: true + current: true + max: true + min: true + show: true + total: false + values: true + lines: true + linewidth: 1 + links: [] + nullPointMode: 'null' + percentage: false + pointradius: 5 + points: false + renderer: flot + seriesOverrides: [] + spaceLength: 10 + stack: false + steppedLine: false + targets: + - expr: felix_int_dataplane_failures + format: time_series + intervalFactor: 2 + legendFormat: "{{instance}}" + refId: A + step: 20 + thresholds: [] + timeFrom: + timeShift: + title: Dataplane failed updates + tooltip: + shared: true + sort: 0 + value_type: individual + type: graph + xaxis: + buckets: + mode: time + name: + show: true + values: [] + yaxes: + - format: short + label: + logBase: 1 + max: + min: + show: true + - format: short + label: + logBase: 1 + max: + min: + show: true + refresh: 5m + schemaVersion: 16 + style: dark + tags: + - calico + templating: + list: [] + time: + from: now-1h + 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: utc + title: Kubernetes Calico + version: 2