Created
November 21, 2019 21:58
-
-
Save leifmadsen/4f47f92a29323970318dadc5298509d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: integreatly.org/v1alpha1 | |
| kind: Grafana | |
| metadata: | |
| name: saf-demo | |
| namespace: serviceassurance | |
| spec: | |
| logLevel: '' | |
| config: | |
| security: | |
| admin_password: cloudops | |
| admin_user: root | |
| plugins: {} | |
| metrics: {} | |
| external_image_storage: {} | |
| server: {} | |
| dataproxy: {} | |
| log: | |
| level: warn | |
| mode: console | |
| alerting: {} | |
| analytics: {} | |
| auth.anonymous: | |
| enabled: true | |
| auth.basic: {} | |
| auth: | |
| disable_signout_menu: true | |
| users: {} | |
| auth.proxy: {} | |
| auth.generic_oauth: {} | |
| remote_cache: {} | |
| auth.github: {} | |
| external_image_storage.s3: {} | |
| external_image_storage.gcs: {} | |
| auth.ldap: {} | |
| paths: {} | |
| panels: {} | |
| snapshots: {} | |
| external_image_storage.webdav: {} | |
| smtp: {} | |
| metrics.graphite: {} | |
| external_image_storage.azure_blob: {} | |
| database: {} | |
| dashboards: {} | |
| auth.google: {} | |
| disableLoginForm: false | |
| disableSignoutMenu: false | |
| adminPassword: '' | |
| anonymous: false | |
| ingress: | |
| enabled: true | |
| service: {} | |
| basicAuth: false | |
| adminUser: '' | |
| dashboardLabelSelector: | |
| - matchExpressions: | |
| - key: app | |
| operator: In | |
| values: | |
| - grafana | |
| --- | |
| apiVersion: integreatly.org/v1alpha1 | |
| kind: GrafanaDataSource | |
| metadata: | |
| name: saf-demo-prometheus-datasource | |
| namespace: serviceassurance | |
| spec: | |
| datasources: | |
| - access: proxy | |
| editable: true | |
| secureJsonData: {} | |
| name: SAFPrometheus | |
| url: 'http://prometheus-operated:9090' | |
| jsonData: | |
| timeInterval: 1s | |
| isDefault: false | |
| version: 2 | |
| editable: true | |
| type: prometheus | |
| name: saf-demo-datasources.yaml | |
| --- | |
| apiVersion: integreatly.org/v1alpha1 | |
| kind: GrafanaDashboard | |
| metadata: | |
| finalizers: | |
| - grafana.cleanup | |
| generation: 1 | |
| labels: | |
| app: grafana | |
| name: saf-demo-dashboard | |
| selfLink: /apis/integreatly.org/v1alpha1/namespaces/serviceassurance/grafanadashboards/saf-demo-dashboard | |
| spec: | |
| json: | | |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "gnetId": null, | |
| "graphTooltip": 0, | |
| "links": [], | |
| "panels": [ | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": "SAFPrometheus", | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 0, | |
| "y": 0 | |
| }, | |
| "id": 2, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "options": {}, | |
| "percentage": false, | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "expr": "rate(sa_collectd_total_amqp_message_recv_count[10s])", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{service}} Recv (10s avg)", | |
| "refId": "A" | |
| }, | |
| { | |
| "expr": "rate(sa_collectd_total_amqp_processed_message_count[10s])", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{service}} Proc (10s avg)", | |
| "refId": "B" | |
| }, | |
| { | |
| "expr": "sa_collectd_total_amqp_message_recv_count - sa_collectd_total_amqp_processed_message_count", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{service}} Unproc (Total Ever)", | |
| "refId": "C" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "AMQP Msg Recv", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false, | |
| "alignLevel": null | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": "SAFPrometheus", | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 12, | |
| "y": 0 | |
| }, | |
| "id": 4, | |
| "interval": "", | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "options": {}, | |
| "percentage": false, | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "expr": "irate(http_request_duration_microseconds_sum[10s]) / irate(http_request_duration_microseconds_count[10s])", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{service}} (10s avg)", | |
| "refId": "A" | |
| }, | |
| { | |
| "expr": "http_request_duration_microseconds{quantile=\"0.99\"}", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{service}}-{{quantile}}", | |
| "refId": "B" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "HTTP Request time", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false, | |
| "alignLevel": null | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": "SAFPrometheus", | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 0, | |
| "y": 7 | |
| }, | |
| "id": 6, | |
| "legend": { | |
| "alignAsTable": false, | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "rightSide": true, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "options": {}, | |
| "percentage": false, | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "expr": "rate(sa_collectd_ovs_stats_if_packets_rx_total[10s])", | |
| "format": "time_series", | |
| "interval": "", | |
| "intervalFactor": 1, | |
| "legendFormat": "RX {{exported_instance}} ({{ovs_stats}})", | |
| "refId": "A" | |
| }, | |
| { | |
| "expr": "rate(sa_collectd_ovs_stats_if_packets_tx_total[10s])", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "TX {{exported_instance}} ({{ovs_stats}})", | |
| "refId": "B" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "OVS Packets Total (TX / RX)", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false, | |
| "alignLevel": null | |
| } | |
| }, | |
| { | |
| "aliasColors": {}, | |
| "bars": false, | |
| "dashLength": 10, | |
| "dashes": false, | |
| "datasource": "SAFPrometheus", | |
| "fill": 1, | |
| "gridPos": { | |
| "h": 9, | |
| "w": 12, | |
| "x": 12, | |
| "y": 7 | |
| }, | |
| "id": 8, | |
| "legend": { | |
| "avg": false, | |
| "current": false, | |
| "max": false, | |
| "min": false, | |
| "rightSide": true, | |
| "show": true, | |
| "total": false, | |
| "values": false | |
| }, | |
| "lines": true, | |
| "linewidth": 1, | |
| "links": [], | |
| "nullPointMode": "null", | |
| "options": {}, | |
| "percentage": false, | |
| "pointradius": 2, | |
| "points": false, | |
| "renderer": "flot", | |
| "seriesOverrides": [], | |
| "spaceLength": 10, | |
| "stack": false, | |
| "steppedLine": false, | |
| "targets": [ | |
| { | |
| "expr": "rate(sa_collectd_memory{memory=~'used|free'}[1m])", | |
| "format": "time_series", | |
| "intervalFactor": 1, | |
| "legendFormat": "{{exported_instance}} ({{memory}})", | |
| "refId": "A" | |
| } | |
| ], | |
| "thresholds": [], | |
| "timeFrom": null, | |
| "timeRegions": [], | |
| "timeShift": null, | |
| "title": "Memory", | |
| "tooltip": { | |
| "shared": true, | |
| "sort": 0, | |
| "value_type": "individual" | |
| }, | |
| "type": "graph", | |
| "xaxis": { | |
| "buckets": null, | |
| "mode": "time", | |
| "name": null, | |
| "show": true, | |
| "values": [] | |
| }, | |
| "yaxes": [ | |
| { | |
| "format": "bytes", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| }, | |
| { | |
| "format": "short", | |
| "label": null, | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true | |
| } | |
| ], | |
| "yaxis": { | |
| "align": false, | |
| "alignLevel": null | |
| } | |
| } | |
| ], | |
| "schemaVersion": 18, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [] | |
| }, | |
| "time": { | |
| "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": "", | |
| "title": "SAF Demo Dashboard", | |
| "uid": "wKiMYObZz", | |
| "version": 1 | |
| } | |
| name: saf-demo-dashboard.json | |
| status: | |
| lastConfig: c13d7dcdf4204eefb65ffac34c6efbf3 | |
| messages: | |
| - message: dashboard 'serviceassurance/saf-demo-dashboard.json' imported | |
| timestamp: Thursday, 21-Nov-19 21:15:12 UTC | |
| - message: dashboard 'serviceassurance/saf-demo-dashboard.json' imported | |
| timestamp: Thursday, 21-Nov-19 21:49:39 UTC | |
| phase: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment