{"id":20103870,"url":"https://github.com/ancientlore/kubismus","last_synced_at":"2025-05-06T08:31:23.138Z","repository":{"id":20370657,"uuid":"23646046","full_name":"ancientlore/kubismus","owner":"ancientlore","description":"Embed a status page based on Cubism in your go project.","archived":false,"fork":false,"pushed_at":"2023-02-04T17:07:40.000Z","size":749,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T10:33:51.817Z","etag":null,"topics":["cubism","golang","graphs","metrics","monitor"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ancientlore.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}},"created_at":"2014-09-04T02:45:02.000Z","updated_at":"2021-12-08T20:46:26.000Z","dependencies_parsed_at":"2023-02-18T18:15:28.378Z","dependency_job_id":null,"html_url":"https://github.com/ancientlore/kubismus","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fkubismus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fkubismus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fkubismus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ancientlore%2Fkubismus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ancientlore","download_url":"https://codeload.github.com/ancientlore/kubismus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648598,"owners_count":21782411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cubism","golang","graphs","metrics","monitor"],"created_at":"2024-11-13T17:38:56.906Z","updated_at":"2025-05-06T08:31:23.134Z","avatar_url":"https://github.com/ancientlore.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://raw.githubusercontent.com/ancientlore/kubismus/master/media/kubismus36.png) kubismus\n====================================================================================================\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ancientlore/kubismus.svg)](https://pkg.go.dev/github.com/ancientlore/kubismus)\n\nKubismus is a [go](http://golang.org/) package that makes it easy to display status metrics using [Cubism.js](https://square.github.io/cubism/). (\"Kubismus\" is the German word for \"cubism\".)\n\nCheckout the sample code: [ktest.go](https://gist.github.com/ancientlore/7802445bba933a2c85a8)\n\nScreen Shot\n-----------\n\n![screenshot](https://raw.githubusercontent.com/ancientlore/kubismus/master/media/screenshot.jpg)\n\nDefining the HTTP Handler\n-------------------------\n\nTo get started with all defaults, simply register the HTTP handler and serve HTTP:\n\n\tkubismus.HandleHTTP()\n\tgo http.ListenAndServe(\":8080\", nil)\n\nThis creates an endpoint at http://localhost:8080/kubismus that will register information you log.\n\nIf you need a custom endpoint, use `kubismus.ServeHTTP` directly:\n\n\thttp.Handle(\"/\", http.HandlerFunc(kubismus.ServeHTTP))\n\nAdding Data\n-----------\n\nKubismus shows graphs and a table of data. You can add entries to these at any time. To add an entry to the table that shows the number of goroutines:\n\n\tkubismus.Note(\"Goroutines\", fmt.Sprintf(\"%d\", runtime.NumGoroutine()))\n\nTo add an entry to a graph:\n\n\tkubismus.Metric(\"Metric Name\", count, value)\n\nBy default, each metric has a count, average, and sum graph. To configure which graphs to show, use the `Define` method:\n\n\tkubismus.Define(\"Posts\", kubismus.COUNT, \"HTTP Posts\")\n\tkubismus.Define(\"Posts\", kubismus.SUM, \"Bytes Posted\")\n\nAdding metrics and table entries use channels and are thread-safe. Graphs for new metrics may not appear until a browser refresh.\n\nCustomizing the Title\n---------------------\n\nYou can configure the status page's icon and title:\n\n\tkubismus.Setup(\"My Cool Utility\", \"/web/kubismus36.png\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fancientlore%2Fkubismus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fancientlore%2Fkubismus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fancientlore%2Fkubismus/lists"}