{"id":21919839,"url":"https://github.com/kernelci/grafana-singlevalue-panel","last_synced_at":"2026-05-07T17:32:09.999Z","repository":{"id":74505223,"uuid":"601092852","full_name":"kernelci/grafana-singlevalue-panel","owner":"kernelci","description":"A simple Grafana plugin similar to singlestat, but the displayed value is a link.","archived":false,"fork":false,"pushed_at":"2023-02-13T11:03:44.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-20T16:42:16.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernelci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-02-13T10:58:44.000Z","updated_at":"2023-02-13T10:59:58.000Z","dependencies_parsed_at":"2023-03-15T18:16:04.662Z","dependency_job_id":null,"html_url":"https://github.com/kernelci/grafana-singlevalue-panel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kernelci/grafana-singlevalue-panel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fgrafana-singlevalue-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fgrafana-singlevalue-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fgrafana-singlevalue-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fgrafana-singlevalue-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelci","download_url":"https://codeload.github.com/kernelci/grafana-singlevalue-panel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelci%2Fgrafana-singlevalue-panel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32748539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-28T20:11:19.828Z","updated_at":"2026-05-07T17:32:09.984Z","avatar_url":"https://github.com/kernelci.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Singlevalue Grafana plugin\n\nThis plugin is similar to the `singlestat` plugin, with two\ndifferences:\n\n* The value shown is a link, not just plain text.\n* Otherwise, this plugin has fewer features and is simpler than `singlestat`.\n\n![Example usage (the plugin below is singlestat)](screenshots/link-singlestat-usage.png)\n![Configuration panel](screenshots/link-singlestat-config.png)\n\n## Maintainers\n\nEsteban Manchado Velázquez \u003cesteban@redhat.com\u003e (primary) and Nikolai\nKondrashov \u003cnikolai.kondrashov@redhat.com\u003e (secondary).\n\n## Design principles\n\nThis plugin should be familiar to Grafana users (eg. it looks similar\nto Singlestat and supports a small subset of the `${__cell*}` syntax\nin Table), but should be as simple as possible. Most of the code is in\nthe `SingleValueCtrl` class in `src/singlevalue_ctrl.js`.\n\n## Development\n\nTo develop this plugin you need a Grafana installation. It's easy to\nget one with Docker. To make it easier to develop it is better if you\nuse a Docker volume. You can do so by running the following commands:\n\n```\ndocker volume create grafana-storage\ndocker run -d -p 127.0.0.1:3001:3000 -e GF_INSTALL_PLUGINS=\"\u003cWHICHEVER_PLUGINS_YOU_NEED\u003e\" -v grafana-storage:/var/lib/grafana --name grafana grafana/grafana:6.6.0\n```\n\nOther plugins you might need to install are data sources,\neg. `doitintl-bigquery-datasource`. The Docker volume files will be\nunder `/var/lib/docker/volumes/grafana-storage`, so you can install\nthe plugin code there and start developing.\n\n### How to test\n\nCreate a new dashboard and then a new panel. The panel should be a\nvisualization, and the type should be \"Singlevalue panel\". Then input\nyour query and set appropriate values for the \"Text template\" and \"URL\ntemplate\" fields. Usually these will be static values, or the special\nmacro `${__cell_XXX}`, where `XXX` is the 0-based column index (only\nthe first result of the query will be considered).\n\nShort testing checklist:\n\n* Go through every configuration value, changing it and checking that\nthe changes produce the desired results.\n* Check that leaving the URL empty will remove the link and leave the\n  text.\n\n### Making a release\n\nTo make a new release, update the `version` field in `plugin.json`,\ntag the release, then upload a ZIP with the new release to GitLab.\n\nTo make a release ZIP file, type `grunt zip`. That will leave a file\ncalled `grafana-singlevalue-panel-VERSION.zip` in the current\ndirectory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fgrafana-singlevalue-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelci%2Fgrafana-singlevalue-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelci%2Fgrafana-singlevalue-panel/lists"}