https://github.com/autometrics-dev/am
Autometrics Companion CLI app
https://github.com/autometrics-dev/am
Last synced: about 1 year ago
JSON representation
Autometrics Companion CLI app
- Host: GitHub
- URL: https://github.com/autometrics-dev/am
- Owner: autometrics-dev
- License: apache-2.0
- Created: 2023-05-23T07:44:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-21T16:02:30.000Z (over 2 years ago)
- Last Synced: 2025-04-13T15:06:07.142Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 1.04 MB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# am
`am` is the autometrics companion command line interface (CLI). It makes it easier to create a
local Prometheus environment and inspect the metrics using the explorer.
[](https://discord.gg/kHtwcH8As9)
## Features
- Download, configure and start various Prometheus components such as,
- Prometheus - this will scrape, store and expose the metrics data
- Pushgateway - allow for pushing metrics from batch jobs or short-lived
processes
- OTEL collector (coming soon!)
- Visualize your metrics using the explorer
- Inspect your Service Level Objectives

## Getting started
### Installation
The recommended installation for macOS is via [Homebrew](https://brew.sh/):
```
brew install autometrics-dev/tap/am
```
Alternatively, you can download the latest version from the [releases page](https://github.com/autometrics-dev/am/releases)
### Quickstart
The following will download, configure and start Prometheus. Assuming you've created an application that is running locally on port `3000` it will start scraping the metrics for that service on that port:
```
am start :3000
```
You can also specify a host, scheme or a path:
```
am start https://example.com:3000/api/metrics
```
It is also possible to specify multiple endpoints:
```
am start :3000 :3030
```
Now you can visualize and inspect your metrics using the explorer by visiting `http://localhost:6789/`.

### Container
We provide a container that packages `am`. For more details see [docs/container.md](docs/container.md).
## Documentation
Visit the autometrics docs site for more details on how to use `am` and more
details about autometrics: https://docs.autometrics.dev/
## Configuration
`am` support defining a few configuration details in a `am.toml` file. These
will be used by `am start`. Committing the `am.toml` file into git allows your
entire team to have the settings as they are for your application. Example:
```toml
pushgateway-enabled = true
[[endpoint]]
job-name = "main_app"
url = "http://localhost:3030"
```
See [https://docs.autometrics.dev/local-development#configration](https://docs.autometrics.dev/local-development) for more details.
## Contributing
Issues, feature suggestions, and pull requests are very welcome!
If you are interested in getting involved:
- Join the conversation on [Discord](https://discord.gg/9eqGEs56UB)
- Ask questions and share ideas in the [Github Discussions](https://github.com/orgs/autometrics-dev/discussions)
- Take a look at the overall [Autometrics Project Roadmap](https://github.com/orgs/autometrics-dev/projects/1)
If you are cloning this repository to make changes, be sure to clone it **with submodules**:
```shell
git clone --recurse-submodules https://github.com/autometrics-dev/am.git
```
Planning to release a new version of `am`? Take a look at our [releasing](RELEASING.md) guide.
## License
`am` is distributed under the terms of both the MIT license and the Apache. See
[LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) for details.