summaryrefslogtreecommitdiffstats
path: root/dashboard/opnfv_yardstick_tc010.json
blob: c903aee101bea4941826a4e861b2291c2b6259bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
##############################################################################
# Copyright (c) 2016 Red Hat Inc.
# Dan Radez <dradez@redhat.com>
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

CACHE_DIR="$(pwd)/cache"

# Make sure the cache dir exists
function cache_dir {
    if [ ! -d $CACHE_DIR/ ]; then mkdir $CACHE_DIR/; fi
    if [ ! -f $CACHE_DIR/.cache ]; then touch $CACHE_DIR/.cache; fi
    echo "Cache Dir: $CACHE_DIR"
}

function cache_git_tar {
    echo "cache_git_tar git ls-remote"
}

# $1 = download url
# $2 = filename to write to
function curl_file {
    if [ -f $CACHE_DIR/$2 ]; then
    echo "Removing stale $2"
        rm -f $CACHE_DIR/$2
    fi
    echo "Downloading $1"
    echo "Cache download location: $CACHE_DIR/$2"
    until curl -C- -L -o $CACHE_DIR/$2 $1  || (( count++ >= 20 )); do
        echo -n '' #do nothing, we just want to loop
    done
    sed -i "/$2/d" $CACHE_DIR/.cache
    echo "$(md5sum $CACHE_DIR/$2) $2" >> $CACHE_DIR/.cache
}

# $1 =  download url
function populate_cache {
    local my_md5
    cache_dir

    # get the file name
    filename="${1##*/}"

    # check if the cache file exists
    # and if it has an md5 compare that
    echo "Checking cache file exists: ${filename}"
    if [ ! -f $CACHE_DIR/${filename} ]; then
        echo "Cache file: ${CACHE_DIR}/${filename} missing...will download..."
        curl_file $1 $filename
    else
        echo "Cache file exists...comparing MD5 checksum"
        remote_md5="$(curl -sf -L ${1}.md5 | awk {'print $1'})"
        if [ -z "$remote_md5" ]; then
            echo "Got empty MD5 from remote for $filename, skipping MD5 check"
            curl_file $1 $filename
        else
            my_md5=$(grep ${filename} $CACHE_DIR/.cache | awk {'print $1'})
            if [ "$remote_md5" != "$my_md5" ]; then
                echo "MD5 mismatch, cache file MD5 is ${my_md5}"
                echo "Downloading $filename"
                curl_file $1 $filename
            else
              echo "Will use cache for ${filename}"
            fi
        fi
    fi
}

# $1 = filename to get from cache
function get_cached_file {
  cp -f $CACHE_DIR/$1 .
}
'#n604'>604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873
{
  "__inputs": [
    {
      "name": "DS_YARDSTICK",
      "label": "yardstick",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.4.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": []
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "refresh": false,
  "rows": [
    {
      "collapse": false,
      "height": 702,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "yardstick",
          "fill": 0,
          "id": 1,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sideWidth": 220,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": true,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "16MB",
              "yaxis": 1
            }
          ],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "512B",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies0.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies1.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "2KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies2.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "3KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies3.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "4KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "E",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies4.size"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "6KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "F",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies5.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "8KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "G",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies6.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "12KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "H",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies7.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "16KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "I",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies8.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "24KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "J",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies9.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "32KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "K",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies10.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "48KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "L",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies11.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "64KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "M",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies12.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "96KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "N",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies13.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "128KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "O",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies14.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "192KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "P",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies15.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "256KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Q",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies16.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "384KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "R",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies17.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "512KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "S",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies18.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "768KB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "T",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies19.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "U",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies20.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "1.5MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "V",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies21.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "2MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "W",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies22.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "3MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "X",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies23.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "4MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Y",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies24.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "6MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "Z",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies25.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "8MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies26.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "12MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies27.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "16MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies28.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "24MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies29.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "32MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies30.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "48MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies31.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "64MB",
              "dsType": "influxdb",
              "groupBy": [],
              "measurement": "opnfv_yardstick_tc010",
              "orderByTime": "ASC",
              "policy": "default",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "latencies32.latency"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [
            {
              "colorMode": "warning",
              "fill": true,
              "line": true,
              "op": "gt",
              "value": 30
            },
            {
              "colorMode": "ok",
              "fill": true,
              "line": true,
              "op": "lt",
              "value": 30
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Memory Read Latency - Lmbench",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ns",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [
    "Compute"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now/d",
    "to": "now/d"
  },
  "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": "opnfv_yardstick_tc010",
  "version": 12
}