Skip to content

Instantly share code, notes, and snippets.

@spiermar
Created April 10, 2015 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spiermar/5d501448e4a445af1608 to your computer and use it in GitHub Desktop.
Save spiermar/5d501448e4a445af1608 to your computer and use it in GitHub Desktop.
New Vector Widget
// append this to the definitions variable on widgets.js
// polling nfs4.client metrics, assuming a cumulative value and reusing the MultipleCumulativeMetricTimeSeriesDataModel data model
{
name: 'nfs4.client',
title: 'NFS4',
directive: 'line-integer-time-series',
dataAttrName: 'data',
dataModelType: MultipleCumulativeMetricTimeSeriesDataModel,
dataModelOptions: {
name: 'nfs4.client',
metricDefinitions: {
"calls": "nfs4.client.calls",
"reqs": "nfs4.client.reqs"
}
},
size: {
width: '25%',
height: '250px'
},
enableVerticalResize: false,
group: "NFS4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment