{"id":13414967,"url":"https://github.com/AppMetrics/AppMetrics","last_synced_at":"2025-03-14T22:32:38.624Z","repository":{"id":41168936,"uuid":"74253137","full_name":"AppMetrics/AppMetrics","owner":"AppMetrics","description":"App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.","archived":false,"fork":false,"pushed_at":"2024-05-29T18:49:43.000Z","size":8065,"stargazers_count":2213,"open_issues_count":104,"forks_count":288,"subscribers_count":96,"default_branch":"features/4.4.0","last_synced_at":"2024-07-31T05:06:35.997Z","etag":null,"topics":["application-insights","dotnet","dotnet-core","dotnet-framework","dotnet-standard","dotnetcore","grafana","grafana-dashboard","graphite","health-check","influxdb","instrumentation","metrics","monitoring","performance","prometheus"],"latest_commit_sha":null,"homepage":"https://app-metrics.io","language":"C#","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/AppMetrics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-20T04:39:02.000Z","updated_at":"2024-07-31T05:07:11.561Z","dependencies_parsed_at":"2024-07-31T05:22:52.126Z","dependency_job_id":null,"html_url":"https://github.com/AppMetrics/AppMetrics","commit_stats":null,"previous_names":["alhardy/appmetrics"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppMetrics%2FAppMetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppMetrics%2FAppMetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppMetrics%2FAppMetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppMetrics%2FAppMetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppMetrics","download_url":"https://codeload.github.com/AppMetrics/AppMetrics/tar.gz/refs/heads/features/4.4.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221513935,"owners_count":16835746,"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":["application-insights","dotnet","dotnet-core","dotnet-framework","dotnet-standard","dotnetcore","grafana","grafana-dashboard","graphite","health-check","influxdb","instrumentation","metrics","monitoring","performance","prometheus"],"created_at":"2024-07-30T21:00:40.504Z","updated_at":"2024-10-26T08:30:50.371Z","avatar_url":"https://github.com/AppMetrics.png","language":"C#","readme":"# App Metrics \u003cimg src=\"https://www.app-metrics.io/images/logo.png\" alt=\"App Metrics\" width=\"50px\"/\u003e \n[![Official Site](https://img.shields.io/badge/site-appmetrics-blue.svg?style=flat-square)](https://www.app-metrics.io/getting-started/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://opensource.org/licenses/Apache-2.0)\n[![Donate](https://img.shields.io/badge/donorbox-donate-blue.svg)](https://donorbox.org/help-support-appmetrics?recurring=true) \n\n## What is App Metrics?\n\nApp Metrics is an open-source and cross-platform .NET library used to record metrics within an application. App Metrics can run on .NET Core or on the full .NET framework. App Metrics abstracts away the underlaying repository of your Metrics for example InfluxDB, Graphite, Prometheus etc, by sampling and aggregating in memory and providing extensibility points to flush metrics to a repository at a specified interval.\n\nApp Metrics provides various metric types to measure things such as the rate of requests, counting the number of user logins over time, measure the time taken to execute a database query, measure the amount of free memory and so on. Metrics types supported are Gauges, Counters, Meters, Histograms and Timers and Application Performance Indexes [Apdex](https://www.apdex.org/overview).\n\n`App.Metrics` includes an Exponentially Forward Decaying, Sliding Window and Algorithm R reservoir implementations. For more details on reservoir sampling see the [docs](https://www.app-metrics.io/getting-started/reservoir-sampling/).\n\n### Documentation\n\n- [Getting Started](https://www.app-metrics.io/getting-started/)\n- [ASP.NET Core 2.0](https://www.app-metrics.io/web-monitoring/aspnet-core/)\n- [Reporting](https://www.app-metrics.io/reporting/reporters/)\n- [Sample Applications \u0026 Grafana Dashboards](https://www.app-metrics.io/samples/)\n\n## Latest Builds, Packages \u0026 Repo Stats\n\n|Branch|Azure Devops|\n|------|:--------:|\n|dev|[![Azure Devops](https://img.shields.io/azure-devops/build/AppMetrics/AppMetrics/3/dev.svg?style=flat-square\u0026label=build)](https://dev.azure.com/appmetrics/AppMetrics/_build?definitionId=3)\n|main|[![AppVeyor](https://img.shields.io/azure-devops/build/AppMetrics/AppMetrics/3/main.svg?style=flat-square\u0026label=build)](https://dev.azure.com/appmetrics/AppMetrics/_build?definitionId=3)\n----------\n\n## Visualization\n\nDashboards can be imported from [Grafana](https://grafana.com/dashboards?search=app%20metrics)\n\n#### Grafana Web Monitoring\n\n![Grafana/InfluxDB Generic Web Dashboard Demo](https://raw.githubusercontent.com/AppMetrics/Docs.V2.Hugo/main/static/images/generic_grafana_dashboard_demo.gif)\n\n\n#### Grafana OAuth2 Client Web Monitoring\n\n![Grafana/InfluxDB Generic OAuth2 Web Dashboard Demo](https://raw.githubusercontent.com/AppMetrics/Docs.V2.Hugo/main/static/images/generic_grafana_oauth2_dashboard_demo.gif)\n\n\n## How to build\n\n[Azure Devops](https://dev.azure.com/appmetrics/AppMetrics/_build?definitionId=3) builds are triggered on commits and PRs to the `dev` branch\n\n- Install the latest [.NET Core 2.x SDK](https://dotnet.microsoft.com/download#/current)\n- Run `build.ps1` or `build.sh` in the root of the repository\n\n## How to run benchmarks\n\nApp.Metrics includes benchmarking using [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet).\n\nTwo benchmark projects exist targeting App.Metrics.Core and App.Metrics.Concurrency\n\n```\n\tcd .\\src\\Core\\benchmarks\\App.Metrics.Benchmarks.Runner\n\tdotnet run -c \"Release\" --framework netcoreapp3.1\n\n\tcd .\\src\\Concurrency\\benchmarks\\App.Metrics.Concurrency.Benchmarks.Runner\n\tdotnet run -c \"Release\" --framework netcoreapp3.1\n```\n\nYou'll then be prompted to choose a benchmark to run which will output a markdown file with the result in directory.\n\nYou can find the benchmark results [here](https://github.com/alhardy/AppMetrics/tree/dev/src/Core/benchmarks/App.Metrics.Benchmarks.Runner/BenchmarkDotNet.Artifacts/results) and [here](https://github.com/alhardy/AppMetrics/tree/dev/src/Concurrency/benchmarks/App.Metrics.Concurrency.Benchmarks.Runner/BenchmarkDotNet.Artifacts/results).\n\n## Contributing\n\nSee the [contribution guidlines](.github/CONTRIBUTING.md) for details.\n\n## Acknowledgements\n\n* [ASP.NET Core](https://github.com/aspnet)\n* [Grafana](https://grafana.com/)\n* [Fluent Assertions](http://www.fluentassertions.com/)\n* [xUnit.net](https://xunit.github.io/)\n* [Hugo](https://gohugo.io/)\n* [Netlify](https://www.netlify.com/)\n\n***Thanks for providing free open source licensing***\n\n* [NDepend](http://www.ndepend.com/) \n* [Jetbrains](https://www.jetbrains.com/dotnet/) \n\n## License\n\nThis library is release under Apache 2.0 License ( see LICENSE ) Copyright (c) 2016 Allan Hardy\n\nSee [LICENSE](https://github.com/AppMetrics/AppMetrics/blob/dev/LICENSE)\n\n----------\n\nApp Metrics is based on the [Metrics.NET](https://github.com/etishor/Metrics.NET) library, and at the moment uses the same reservoir sampling code from the original library which is a port of the Java [Dropwizard Metrics](https://github.com/dropwizard/metrics) library. \n\n*Metrics.NET Licensed under these terms*:\n\"Metrics.NET is release under Apache 2.0 License Copyright (c) 2014 Iulian Margarintescu\" see [LICENSE](https://github.com/etishor/Metrics.NET/blob/main/LICENSE)\n\n*Dropwizard Metrics* Licensed under these terms*:\n\"Copyright (c) 2010-2013 Coda Hale, Yammer.com Published under Apache Software License 2.0, see [LICENSE](https://github.com/dropwizard/metrics/blob/3.2-development/LICENSE)\"","funding_links":[],"categories":["Code Analysis and Metrics","代码分析和度量","C\\#","C# #","Libraries"],"sub_categories":["Profling, Tracing, and Metrics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppMetrics%2FAppMetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAppMetrics%2FAppMetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppMetrics%2FAppMetrics/lists"}