插件 〉PerfCurve


开发者

SSKGO

订阅以接收不定期产品新闻和更新



面板
社区

PerfCurve

  • 概览
  • 安装
  • 更新日志
  • 相关内容

Grafana PerfCurve 插件

概览

PerfCurve 是一个 Grafana 面板插件,用于在画布上绘制旋转机械(如泵、压缩机等)的操作点及其性能曲线。您只需提供性能曲线上的采样点,即可在画布上绘制多条性能曲线。该面板插件可平滑连接采样点。

Panel Example

重要提示!!

请根据以下规则选择插件版本。

  • 对于 Grafana >= 8.X.X,请使用版本 >= 1.5.X
  • 对于 Grafana >= 7.4.X,请使用版本 >= 1.4.X
  • 对于 Grafana <= 7.3.X,请使用版本 <= 1.3.X

入门

指定 X 轴和 Y 轴的最小值、最大值、标签、单位和小数位数。

Axes

静态曲线

通过以逗号分隔值格式指定采样点,将性能曲线添加到画布。
X 输入框和 Y 输入框中的值数量必须相同。基于采样点绘制自然曲线。

Static curve

动态曲线 (高级)

如果数据库中存在性能曲线数据,可以使用这些数据绘制基于数据动态移动的性能曲线。(查询示例是针对 InfluxDB 数据源编写的。)

Dynamic curve Query for dynamic curve

操作点

设置 X 框和 Y 框的字段名称以绘制操作点。同时设置标签、颜色和点半径。
建议将表格格式作为查询选项。

Operation points Query example

TestData DB 示例

请参阅随附的 TestData DB 示例输入。如果您将 TestData DB 添加到数据源,则 TestData DB 默认可用。

Sample of input with TestDB Sample of panel with TestDB

面板 JSON 示例

{
  "id": 23763571993,
  "gridPos": {
    "h": 9,
    "w": 12,
    "x": 0,
    "y": 0
  },
  "type": "sskgo-perfcurve-panel",
  "title": "Panel Title",
  "pluginVersion": "7.5.6",
  "targets": [
    {
      "alias": "Field X",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "refId": "A",
      "scenarioId": "csv_metric_values",
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "30"
    },
    {
      "alias": "Field Y",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "hide": false,
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "refId": "B",
      "scenarioId": "csv_metric_values",
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "50"
    },
    {
      "scenarioId": "csv_metric_values",
      "refId": "C",
      "alias": "Curve X1",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "hide": false,
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "10, 10"
    },
    {
      "scenarioId": "csv_metric_values",
      "refId": "D",
      "alias": "Curve Y1",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "hide": false,
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "70, 65"
    },
    {
      "scenarioId": "csv_metric_values",
      "refId": "E",
      "alias": "Curve X2",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "hide": false,
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "20, 20"
    },
    {
      "scenarioId": "csv_metric_values",
      "refId": "F",
      "alias": "Curve Y2",
      "csvWave": {
        "timeStep": 60,
        "valuesCSV": "0,0,2,2,1,1"
      },
      "hide": false,
      "lines": 10,
      "points": [],
      "pulseWave": {
        "offCount": 3,
        "offValue": 1,
        "onCount": 3,
        "onValue": 2,
        "timeStep": 60
      },
      "stream": {
        "bands": 1,
        "noise": 2.2,
        "speed": 250,
        "spread": 3.5,
        "type": "signal"
      },
      "stringInput": "68,63"
    }
  ],
  "options": {
    "xAxis": {
      "minValue": 0,
      "maxValue": 60,
      "label": "Flowrate"
    },
    "yAxis": {
      "minValue": 0,
      "maxValue": 100,
      "label": "Pressure"
    },
    "performanceCurveData": [
      {
        "color": "rgba(136, 136, 136, 0.6)",
        "performCurveX": "10,20,30,40,50",
        "performCurveY": "80,78,72,62,48"
      }
    ],
    "dynamicPerfCurve": [
      {
        "fieldGroup": [
          {
            "xField": "Curve X1",
            "yField": "Curve Y1"
          },
          {
            "xField": "Curve X2",
            "yField": "Curve Y2"
          }
        ],
        "color": "#FADE2A"
      }
    ],
    "plotSetting": [
      {
        "color": "#F2495C",
        "label": "Label Name",
        "xField": "Field X",
        "yField": "Field Y"
      }
    ],
    "pointRadius": 4
  },
  "timeFrom": null,
  "timeShift": null,
  "datasource": null
}

在 Grafana Cloud 上安装 PerfCurve

更多信息,请访问文档关于插件安装的内容。

更新日志

v1.5.0 - 2021-02-14

修复

  • 修复在 Grafana 8.x 中使用插件时发生的错误。

新增

  • 在 README 中添加版本依赖信息。
  • README 中的 TestData DB 示例。

v1.4.0 - 2021-02-14

修复

  • 修复在 Grafana 7.4.x 中使用插件时发生的错误。

变更

  • 变更 "@grafana/data"、"@grafana/toolkit" 和 "@grafana/ui" 的 devDependencies。

v1.3.1 - 2021-01-16

变更

  • 更改选项结构和外观。(与之前版本兼容)

v1.3.0 - 2020-11-25

新增

  • 在 dist 目录中添加 MANIFEST 文件,以确保分发文件为社区级插件。

v1.2.2 - 2020-10-17

新增

  • 添加截图。

v1.2.1 - 2020-10-16

新增

  • 在 README.md 中添加使用说明。

修复

  • 修复以指示值为 0 的操作点。

v1.2.0 - 2020-10-11

新增

  • 在工具提示中显示时间戳。

v1.1.0 - 2020-10-03

新增

  • 添加工具提示。
  • 为轴添加单位和小数选项。

v1.0.0 - 2020-09-27

新增

  • 为 X 轴和 Y 轴添加最小值选项。
  • 添加动态性能曲线。

变更

  • 更改选项结构。(与之前版本不兼容)

v0.1.1 - 2020-09-23

修复

  • 修复 plugin.json 中的 id 以遵循元数据说明。

v0.1.0 - 2020-09-23

  • 首次发布