{"id":18678357,"url":"https://github.com/vitalibo/dashing-prometheus-widget","last_synced_at":"2026-02-27T12:38:50.255Z","repository":{"id":101159322,"uuid":"88088683","full_name":"vitalibo/dashing-prometheus-widget","owner":"vitalibo","description":"Simple Dashing widget for displaying Prometheus graphs","archived":false,"fork":false,"pushed_at":"2017-04-14T06:57:07.000Z","size":58,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T09:35:09.701Z","etag":null,"topics":["dashing","prometheus"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitalibo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-12T19:28:51.000Z","updated_at":"2020-08-05T21:03:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa71a8bc-05ba-4f6a-8a38-255993b250ed","html_url":"https://github.com/vitalibo/dashing-prometheus-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vitalibo/dashing-prometheus-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalibo%2Fdashing-prometheus-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalibo%2Fdashing-prometheus-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalibo%2Fdashing-prometheus-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalibo%2Fdashing-prometheus-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitalibo","download_url":"https://codeload.github.com/vitalibo/dashing-prometheus-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitalibo%2Fdashing-prometheus-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29895229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dashing","prometheus"],"created_at":"2024-11-07T09:37:21.304Z","updated_at":"2026-02-27T12:38:50.223Z","avatar_url":"https://github.com/vitalibo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Dashing-Prometheus-Widget\n\nThis widget is for Shopify's dashing framework to display graphs of Prometheus monitoring system.\n\n### Preview\n\n![Screenshot](https://raw.githubusercontent.com/vitalibo/dashing-prometheus-widget/assets/resources/dashing.png)\n\n### Usage\n\nTo install this widget in your dashboard, please copy all files from folder `src` to your dashing installation.\nNow your dashboard available at `http://\u003cdashing-host\u003e:3030/prometheus`.\n\n### Configuration\n\nInsert the HTML code in your erb file like this :\n\n```\n\u003cli data-row=\"1\" data-col=\"1\" data-sizex=\"2\" data-sizey=\"1\"\u003e\n  \u003cdiv\n    data-id=\"scrape_duration_seconds\" data-view=\"Prometheus\"\n    data-title=\"Scrape Duration Seconds\" style=\"background-color:#E1502B\"\u003e\n  \u003c/div\u003e\n\u003c/li\u003e\n```\n\nalso you can you `Graph` as `data-view`\n\nTo configure Prometheus job, you need set `host` and `port` in creating, see following code :\n\n```\nprometheus = Prometheus.new(\n  {\n    :host =\u003e 'prometheus',\n    :port =\u003e 9090\n  })\n```\n\nInvoke method `query_range` required parameters: \n\n- `query=\u003cstring\u003e` -  Prometheus expression query string\n- `step=\u003cduration\u003e` - Query resolution step width.\n- `start=\u003crfc3339 | unix_timestamp\u003e` - Start timestamp.\n- `end=\u003crfc3339 | unix_timestamp\u003e` - End timestamp.\n\n```\nprometheus.query_range(\n 'scrape_duration_seconds',\n '20s')\n```\n\nAnd return array of pairs, example: `{\"x\":1234567890,\"y\":1.23}`, where `x` - timestamp, `y` - value\n\n### Links\n\n- [Dashing](http://dashing.io/)\n- [Prometheus. HTTP API](https://prometheus.io/docs/querying/api/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalibo%2Fdashing-prometheus-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitalibo%2Fdashing-prometheus-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitalibo%2Fdashing-prometheus-widget/lists"}