{"id":18131469,"url":"https://github.com/hedon954/goapm-example","last_synced_at":"2026-02-15T22:05:43.387Z","repository":{"id":260495828,"uuid":"881264774","full_name":"hedon954/goapm-example","owner":"hedon954","description":"goapm-example is a simple example for goapm.","archived":false,"fork":false,"pushed_at":"2024-11-14T11:15:25.000Z","size":2951,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T06:42:59.588Z","etag":null,"topics":["apm","elasticsearch","gin","go","grafana","http","jaeger","kibana","mysql","opentelemetry","opentelemetry-collector","opentelemetry-go","otel","prometheus","redis","trace"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hedon954.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-10-31T08:16:27.000Z","updated_at":"2024-11-14T11:15:28.000Z","dependencies_parsed_at":"2024-10-31T17:31:37.555Z","dependency_job_id":null,"html_url":"https://github.com/hedon954/goapm-example","commit_stats":null,"previous_names":["hedon954/goapm-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedon954%2Fgoapm-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedon954%2Fgoapm-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedon954%2Fgoapm-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hedon954%2Fgoapm-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hedon954","download_url":"https://codeload.github.com/hedon954/goapm-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230523762,"owners_count":18239445,"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":["apm","elasticsearch","gin","go","grafana","http","jaeger","kibana","mysql","opentelemetry","opentelemetry-collector","opentelemetry-go","otel","prometheus","redis","trace"],"created_at":"2024-11-01T12:07:36.573Z","updated_at":"2026-02-15T22:05:38.362Z","avatar_url":"https://github.com/hedon954.png","language":"Go","readme":"# goapm-example\n\n`goapm-example` is a simple example for [goapm](https://github.com/hedon954/goapm).\n\n## Architecture\n![architecture](./assets/imgs/architecture.png)\n\n\n## Requirements\n\n- `Go`: 1.23.2 or later\n- `Docker` installed\n- `Make` installed\n- Make sure the following ports are not occupied\n  - `30001`/`30002`/`30003`/`30004`/`30012`/`30013`: `order`/`user`/`sku` service\n  - `1888`/`8888`/`8889`/`13133`/`4317`/`4318`/`55678`: `otel-collector`\n  - `3306`: `MySQL`\n  - `6379`: `Redis`\n  - `16686`/`14268`/`14250`: `Jaeger`\n  - `3000`: `Grafana`\n  - `9090`: `Prometheus`\n  - `5601`: `Kibana`\n  - `9200`: `Elasticsearch`\n  - `5044`: `Logstash`\n\n## Quick Start\n\nStart the base infrastructures and services:\n\n```bash\nmake docker-up\n```\n\nSend some requests to the services:\n\n```bash\n# successful request\ncurl http://127.0.0.1:30001/order/add?uid=1\u0026sku_id=3\u0026num=1\n\n# failed request -\u003e sku not enough\ncurl http://127.0.0.1:30001/order/add?uid=1\u0026sku_id=3\u0026num=1000000\n\n# failed request -\u003e user not exist\ncurl http://127.0.0.1:30001/order/add?uid=1000000\u0026sku_id=3\u0026num=1\n```\n\n## Some Links\n\n- [Jaeger](http://127.0.0.1:16686)\n- [Grafana](http://127.0.0.1:3000)\n- [Prometheus](http://127.0.0.1:9090)\n- [Kibana](http://127.0.0.1:5601)\n\n## Effect Pictures\n\n### Grafana\n![Grafana-MySQL](./assets/imgs/grafana-mysql.png)\n\n![Grafana-Biz](./assets/imgs/grafana-biz.png)\n\n![Application-Trafiic](./assets/imgs/grafana-traffic.png)\n\n![Application-Runtime](./assets/imgs/grafana-runtime.png)\n\n![Application-GOX](./assets/imgs/grafana-gox.png)\n\n### Jaeger\n![Jaeger-Trace](./assets/imgs/jaeger-trace.png)\n\n\n### Prometheus\n![Prometheus](./assets/imgs/prometheus.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedon954%2Fgoapm-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhedon954%2Fgoapm-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhedon954%2Fgoapm-example/lists"}