Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #8

Merged
merged 3 commits into from
Jul 5, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Designed to collect compile time metrics from developers local workstation and l
"branch": "master",
"type": ".Net",
"projectName": "Agoda.Cronos.Accommodation",
"repository": "git@github.agodadev.io:agoda-front-end/agoda-com-dictator.git",
"repository": "git@github.xxxx.io:front-end/dotnet-build-metrics.git",
"date": "2021-06-28T02:53:22.1420552Z"
}
```
Expand All @@ -28,11 +28,13 @@ To use the task simply add the `Agoda.Builds.Metrics` as a dependency to your pr
Condition="Exists('$(MSBuildThisFileDirectory)\..\packages\agoda.builds.metrics\1.0.6\build\Agoda.Builds.Metrics.targets')"
/>
```

ElasticSearcj URl and the INdex name are picked from the Environment variable , if doesnot exist fallback is `http://backend-elasticsearch:9200` and index `build-metrics`
```
string uriString = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("url")) ? Environment.GetEnvironmentVariable("url") : "http://backend-elasticsearch:9200";
string index = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("index")) ? Environment.GetEnvironmentVariable("index") : "build-metrics";
```
Note that the version number is embedded in the path, if you upgrade the library you have to update all of the project files as well.

Grafana dashboard for data visualization:
http://grafana.agoda.local/d/bUtx5Zk7k/net-local-build-analysis?orgId=1&refresh=5s


Example in Visual Studio using MSBuild.
Expand Down