Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to grafana.com #10

Open
seriyps opened this issue May 16, 2018 · 9 comments
Open

Upload to grafana.com #10

seriyps opened this issue May 16, 2018 · 9 comments

Comments

@seriyps
Copy link

seriyps commented May 16, 2018

Hi,

Can those dashboards be uploaded to https://grafana.com/dashboards ?

@deadtrickster
Copy link
Owner

deadtrickster commented May 16, 2018

Yes but some of them have to be updated first :-(.
Uploaded allocators https://grafana.com/dashboards/6104 and Elli https://grafana.com/dashboards/6107.

@deadtrickster
Copy link
Owner

Grafana.com says this: "Dashboards from Grafana v3.0 or earlier cannot be uploaded."

If i understand it right upgrade is just import/export to/from recent enough version

@seriyps
Copy link
Author

seriyps commented May 17, 2018

I have an instance of Grafana v5, so, I can try that

@seriyps
Copy link
Author

seriyps commented May 17, 2018

But in my case it doesn't show some panels:
screenshot from 2018-05-17 10-16-47

Uptime uses

process_uptime_seconds{instance="$node"}

And OS memory uses

process_virtual_memory_bytes{instance="$node"}
process_resident_memory_bytes{instance="$node"}

And I can't find them in the output from my node (prometheus 4.1.0).

Sorry for reporting this not in a separate ticket. Tell me if I need to create another one

@deadtrickster
Copy link
Owner

I guess we can reuse existing screenshots.

Perhaps you don't have prometheus_process_collector installed?

@seriyps
Copy link
Author

seriyps commented May 17, 2018

Perhaps you don't have prometheus_process_collector installed?

Yep, that's true. Didn't knew about it. May we use erlang_vm_statistics_wallclock_time_milliseconds for uptime?

@seriyps
Copy link
Author

seriyps commented May 17, 2018

Answer to myself:

Following config may show the uptime using erlang_vm_statistics_wallclock_time_milliseconds:

{
  "cacheTimeout": null,
  "colorBackground": false,
  "colorValue": false,
  "colors": [
    "rgba(245, 54, 54, 0.9)",
    "rgba(237, 129, 40, 0.89)",
    "rgba(50, 172, 45, 0.97)"
  ],
  "datasource": "XXX",
  "decimals": 1,
  "format": "dtdurationms",
  "gauge": {
    "maxValue": 100,
    "minValue": 0,
    "show": false,
    "thresholdLabels": false,
    "thresholdMarkers": true
  },
  "gridPos": {
    "h": 7,
    "w": 6,
    "x": 18,
    "y": 0
  },
  "id": 16,
  "interval": null,
  "links": [],
  "mappingType": 1,
  "mappingTypes": [
    {
      "name": "value to text",
      "value": 1
    },
    {
      "name": "range to text",
      "value": 2
    }
  ],
  "maxDataPoints": 100,
  "nullPointMode": "connected",
  "nullText": null,
  "postfix": "",
  "postfixFontSize": "50%",
  "prefix": "",
  "prefixFontSize": "50%",
  "rangeMaps": [
    {
      "from": "null",
      "text": "N/A",
      "to": "null"
    }
  ],
  "sparkline": {
    "fillColor": "rgba(31, 118, 189, 0.18)",
    "full": false,
    "lineColor": "rgb(31, 120, 193)",
    "show": false
  },
  "tableColumn": "",
  "targets": [
    {
      "expr": "erlang_vm_statistics_wallclock_time_milliseconds{instance=\"$node\"}",
      "intervalFactor": 2,
      "legendFormat": "",
      "refId": "A",
      "step": 4,
      "format": "time_series"
    }
  ],
  "thresholds": "",
  "title": "Uptime",
  "type": "singlestat",
  "valueFontSize": "80%",
  "valueMaps": [
    {
      "op": "=",
      "text": "N/A",
      "value": "null"
    }
  ],
  "valueName": "current"
}

highlights: "expr": "erlang_vm_statistics_wallclock_time_milliseconds{instance=\"$node\"}" Unit set to "duration (ms)" and Stat to "Current"

@deadtrickster
Copy link
Owner

maybe be add it as BEAM dashboard variant for people that don't use prometheus_process_collector? btw why you don't use it?

@seriyps
Copy link
Author

seriyps commented May 17, 2018

@deadtrickster just don't want to add one more native dependency for just 2 metrics that I'm interested in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants