Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 19ec584

Browse files
author
Noah Hanjun Lee
authored
Add a new metric 'gitploy_total_commit_count' (#180)
* Add a new field 'commit_count' * Add to count commits in statistics logic * Add a new metric 'gitploy_total_commit_count' * Add doc for the metric
1 parent a15f433 commit 19ec584

13 files changed

+320
-8
lines changed

docs/concepts/metrics.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ scrape_configs:
3131
Gitploy provides the following Gitploy metrics. *Note that Some metrics are provided only for the production environment* (i.e. `production_environment: true` in the configuration file).
3232

3333
* **gitploy_requests_total** <br/> How many HTTP requests processed, partitioned by status code and HTTP method.
34-
* **gitploy_request_duration_seconds**<br/> The HTTP request latencies in seconds.
34+
* **gitploy_request_duration_seconds**<br/> The HTTP request latencies in seconds
3535
* **gitploy_deployment_count** <br/> The total deployment count of the production deployments.
3636
* **gitploy_rollback_count**<br/> The total rollback count of the production deployments.
3737
* **gitploy_line_additions**<br/> The total added lines of the production deployments.
3838
* **gitploy_line_deletions**<br/> The total deleted lines of the production deployments.
3939
* **gitploy_line_changes**<br/> The total changed lines of the production deployments.
4040
* **gitploy_lead_time_seconds**<br/> The total amount of time it takes a commit to get into the production environments.
41+
* **gitploy_commit_count**<br/> The total commit count of production deployments.
4142
* **gitploy_member_count**<br/> The total count of members.
4243
* **gitploy_member_limit**<br/> The limit count of members.

ent/deploymentstatistics.go

+11-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/deploymentstatistics/deploymentstatistics.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/deploymentstatistics/where.go

+83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/deploymentstatistics_create.go

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/deploymentstatistics_update.go

+70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ent/migrate/schema.go

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)