{"id":18793016,"url":"https://github.com/autometrics-dev/gettingstarted-am-rs","last_synced_at":"2025-12-28T17:30:13.643Z","repository":{"id":186980901,"uuid":"676105259","full_name":"autometrics-dev/gettingstarted-am-rs","owner":"autometrics-dev","description":"Getting started with Autometrics and the Rust Axum web framework","archived":false,"fork":false,"pushed_at":"2023-12-06T10:10:36.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-23T14:31:59.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/autometrics-dev.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":"2023-08-08T12:49:53.000Z","updated_at":"2023-08-09T06:58:26.000Z","dependencies_parsed_at":"2023-08-08T14:40:36.179Z","dependency_job_id":"9940a434-6f43-4eb9-bfc8-e37aad53fe5a","html_url":"https://github.com/autometrics-dev/gettingstarted-am-rs","commit_stats":null,"previous_names":["autometrics-dev/gettingstarted-am-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autometrics-dev%2Fgettingstarted-am-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autometrics-dev%2Fgettingstarted-am-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autometrics-dev%2Fgettingstarted-am-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autometrics-dev%2Fgettingstarted-am-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autometrics-dev","download_url":"https://codeload.github.com/autometrics-dev/gettingstarted-am-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718367,"owners_count":19685725,"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":[],"created_at":"2024-11-07T21:23:07.174Z","updated_at":"2025-12-28T17:30:13.585Z","avatar_url":"https://github.com/autometrics-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Sample Rust Axum app with Autometrics\nThis is a sample backend service written in Rust with Axum framework with several API handlers that are erroring or responding slowly intended to showcase the Autometrics framework with Service Level Objectives.\n\n### Resources\n\n- see the [documentation site](https://docs.autometrics.dev) for more in-depth information on all Autometrics features.\n- ask for help and share feedback on [our Discord](https://discord.com/invite/MJr7pYzZQ4)!\n\n## Getting started\n\nTo get the sample up and running you can follow these steps:\n\n1. Clone the repository\n\n```bash\ngit clone autometrics-dev/gettingstarted-am-rs\n\ncd gettingstarted-am-rs\n```\n\n2. Download the Autometrics CLI\n\nIf you're on macOS you can use Homebrew:\n\n```bash\nbrew install autometrics-dev/tap/am\n```\n\nor you can grab the binaries directly from the [GitHub release](https://github.com/autometrics-dev/am/releases/).\n\n3. Start the application\n\n```bash\ncargo run\n```\n\nThe application will start on a port 3000 by default and expose a metrics endpoint.\n\nNOTE: You can override the listen address by exporting the `LISTEN_ADDRESS`\nenvironment variable. Note that you have to use this same address in the next\nstep.\n\n4. Start the Autometrics CLI and Explorer\n\nStart the Autometrics CLI and point it to the endpoint it can scrape metrics from.\n\n```bash\nam start :3000\n```\n\nAutometrics CLI will download and run a Prometheus binary under the hood and start scraping metrics.\n\n5. Preview the metrics in Autometrics Explorer\n\nAutometrics CLI will also start a server with the Explorer available on `localhost:6789`. You can browse it and start exploring your sample app metrics! (You might need to ping the endpoints a few times to see the data reflected).\n\nThat's all!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautometrics-dev%2Fgettingstarted-am-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautometrics-dev%2Fgettingstarted-am-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautometrics-dev%2Fgettingstarted-am-rs/lists"}