https://github.com/appmetrics/elasticsearch
App Metrics Extensions for Elasticsearch reporting
https://github.com/appmetrics/elasticsearch
dotnet-core elasticsearch grafana metrics monitoring
Last synced: 3 months ago
JSON representation
App Metrics Extensions for Elasticsearch reporting
- Host: GitHub
- URL: https://github.com/appmetrics/elasticsearch
- Owner: AppMetrics
- License: apache-2.0
- Created: 2017-04-15T13:11:38.000Z (about 9 years ago)
- Default Branch: dev
- Last Pushed: 2019-11-04T12:54:45.000Z (over 6 years ago)
- Last Synced: 2025-11-09T20:12:41.557Z (7 months ago)
- Topics: dotnet-core, elasticsearch, grafana, metrics, monitoring
- Language: C#
- Homepage: http://app-metrics.io/getting-started/reporting/index.html
- Size: 247 KB
- Stars: 21
- Watchers: 4
- Forks: 20
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# App Metrics Elasticsearch
[](http://app-metrics.io/reporting/elasticsearch.html) [](https://opensource.org/licenses/Apache-2.0)
## What is it?
This repo contains Elasticsearch extension packages to [App Metrics](https://github.com/AppMetrics/AppMetrics).
## Latest Builds, Packages & Repo Stats
|Branch|AppVeyor|Travis|Coverage|
|------|:--------:|:--------:|:--------:|
|dev|[](https://ci.appveyor.com/project/alhardy/elasticsearch/branch/dev)|[](https://travis-ci.org/alhardy/Elasticsearch)|[](https://coveralls.io/github/AppMetrics/Elasticsearch?branch=dev)
|master|[](https://ci.appveyor.com/project/alhardy/elasticsearch/branch/master)| [](https://travis-ci.org/alhardy/Elasticsearch)| [](https://coveralls.io/github/Elasticsearch/Elasticsearch?branch=master)|
|Package|Dev Release|PreRelease|Latest Release|
|------|:--------:|:--------:|:--------:|
|App.Metrics.Reporting.Elasticsearch|[](https://www.myget.org/feed/appmetrics/package/nuget/App.Metrics.Reporting.Elasticsearch)|[](https://www.nuget.org/packages/App.Metrics.Reporting.Elasticsearch/)|[](https://www.nuget.org/packages/App.Metrics.Reporting.Elasticsearch/)
|App.Metrics.Formatters.Elasticsearch|[](https://www.myget.org/feed/appmetrics/package/nuget/App.Metrics.Formatters.Elasticsearch)|[](https://www.nuget.org/packages/App.Metrics.Formatters.Elasticsearch/)|[](https://www.nuget.org/packages/App.Metrics.Formatters.Elasticsearch/)
#### Grafana/Elasticsearch Web Monitoring

> Grab the dashboard [here](https://grafana.com/dashboards/2140)
#### Grafana/Elasticsearch OAuth2 Client Web Monitoring

> Grab the dashboard [here](https://grafana.com/dashboards/2143)
### Grafana/Elasticsearch Web Application Setup
- Download and run [Elasticsearch](https://www.elastic.co/downloads/elasticsearch).
- Create a new [ES Index and metric field mappings](https://github.com/AppMetrics/Elasticsearch/blob/dev/visualization/App.Metrics.Sandbox-Elasticsearch-IndexAndMappingSetup.json). *Keep note of this for configuring the Elasticsearch reporter in your web application and configuring the Elasticsearch Datasource in Grafana*
- Download and install [Grafana](https://grafana.com/grafana/download), then create a new [Elasticsearch Datasource](http://docs.grafana.org/features/datasources/elasticsearch/) pointing to the Index just created and [import](http://docs.grafana.org/reference/export_import/#importing-a-dashboard) App.Metrics [web dashboard](https://grafana.com/dashboards/2140)
- See the [docs](https://www.app-metrics.io/reporting/reporters/elasticsearch/) on how to configure Elasticsearch reporting.
- Run your app and Grafana at visit `http://localhost:3000`
## How to build
[AppVeyor](https://ci.appveyor.com/project/alhardy/appmetrics-extensions-elasticsearch/branch/master) and [Travis CI](https://travis-ci.org/alhardy/AppMetrics.Extensions.Elasticsearch) builds are triggered on commits and PRs to `dev` and `master` branches.
See the following for build arguments and running locally.
|Configuration|Description|Default|Environment|Required|
|------|--------|:--------:|:--------:|:--------:|
|BuildConfiguration|The configuration to run the build, **Debug** or **Release** |*Release*|All|Optional|
|PreReleaseSuffix|The pre-release suffix for versioning nuget package artifacts e.g. `beta`|*ci*|All|Optional|
|CoverWith|**DotCover** or **OpenCover** to calculate and report code coverage, **None** to skip. When not **None**, a coverage file and html report will be generated at `./artifacts/coverage`|*OpenCover*|Windows Only|Optional|
|SkipCodeInspect|**false** to run ReSharper code inspect and report results, **true** to skip. When **true**, the code inspection html report and xml output will be generated at `./artifacts/resharper-reports`|*false*|Windows Only|Optional|
|BuildNumber|The build number to use for pre-release versions|*0*|All|Optional|
|LinkSources|[Source link](https://github.com/ctaggart/SourceLink) support allows source code to be downloaded on demand while debugging|*true*|All|Optional|
### Windows
Run `build.ps1` from the repositories root directory.
```
.\build.ps1'
```
**With Arguments**
```
.\build.ps1 --ScriptArgs '-BuildConfiguration=Release -PreReleaseSuffix=beta -CoverWith=OpenCover -SkipCodeInspect=false -BuildNumber=1'
```
### Linux & OSX
Run `build.sh` from the repositories root directory. Code Coverage reports are now supported on Linux and OSX, it will be skipped running in these environments.
```
.\build.sh'
```
**With Arguments**
```
.\build.sh --ScriptArgs '-BuildConfiguration=Release -PreReleaseSuffix=beta -BuildNumber=1'
```
## Contributing
See the [contribution guidlines](https://github.com/alhardy/AppMetrics/blob/master/CONTRIBUTING.md) in the [main repo](https://github.com/alhardy/AppMetrics) for details.
## Acknowledgements
* [Elasticsearch](https://www.elastic.co/)
* [DocFX](https://dotnet.github.io/docfx/)
* [Fluent Assertions](http://www.fluentassertions.com/)
* [XUnit](https://xunit.github.io/)
* [StyleCopAnalyzers](https://github.com/DotNetAnalyzers/StyleCopAnalyzers)
* [Cake](https://github.com/cake-build/cake)
* [OpenCover](https://github.com/OpenCover/opencover)
***Thanks for providing free open source licensing***
* [Jetbrains](https://www.jetbrains.com/dotnet/)
* [AppVeyor](https://www.appveyor.com/)
* [Travis CI](https://travis-ci.org/)
* [Coveralls](https://coveralls.io/)
## License
This library is release under Apache 2.0 License ( see LICENSE ) Copyright (c) 2016 Allan Hardy