{"id":16839554,"url":"https://github.com/simonpasquier/instrumented_app","last_synced_at":"2025-04-11T05:21:40.121Z","repository":{"id":52542739,"uuid":"111815091","full_name":"simonpasquier/instrumented_app","owner":"simonpasquier","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-20T15:10:06.000Z","size":368,"stargazers_count":0,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:25:02.748Z","etag":null,"topics":["example","prometheus","prometheus-client"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonpasquier.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":"2017-11-23T13:51:24.000Z","updated_at":"2020-08-13T08:00:40.000Z","dependencies_parsed_at":"2025-02-18T20:34:32.747Z","dependency_job_id":"51b1f80c-8368-4da3-81d1-acfc7c595a52","html_url":"https://github.com/simonpasquier/instrumented_app","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpasquier%2Finstrumented_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpasquier%2Finstrumented_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpasquier%2Finstrumented_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpasquier%2Finstrumented_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonpasquier","download_url":"https://codeload.github.com/simonpasquier/instrumented_app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248346326,"owners_count":21088438,"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":["example","prometheus","prometheus-client"],"created_at":"2024-10-13T12:32:50.889Z","updated_at":"2025-04-11T05:21:40.091Z","avatar_url":"https://github.com/simonpasquier.png","language":"Go","readme":"[![Build Status](https://travis-ci.com/simonpasquier/instrumented_app.svg?branch=master)](https://travis-ci.com/simonpasquier/instrumented_app)\n\nThis is an example of application instrumented for Prometheus. By default it\nlistens on port 8080 and exposes metrics on the `/metrics` endpoint.\n\nThe root endpoint will respond with a random delay (1 second at most).\n\nExposed metrics:\n\n* `orders_total`, a fast moving counter.\n* `order_errors_total{stage=\u003cstage\u003e}`, a slow moving counter.\n* `user_sessions`, a gauge value randomly set between 0 and 100.\n\n## Usage\n\n```\n$ ./instrumented_app --help\nusage: instrumented_app [\u003cflags\u003e]\n\nFlags:\n  --help                     Show context-sensitive help (also try --help-long and --help-man).\n  --listen=\"127.0.0.1:8080\"  Listen address\n  --listen-metrics=\"\"        Listen address for exposing metrics (default to 'listen' if blank)\n  --basic-auth=\"\"            Basic authentication (eg \u003cuser\u003e:\u003cpassword\u003e)\n\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpasquier%2Finstrumented_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonpasquier%2Finstrumented_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpasquier%2Finstrumented_app/lists"}