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

Fix the name of metrics #182

Merged
merged 1 commit into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 7 additions & 7 deletions docs/concepts/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ Gitploy provides the following Gitploy metrics. *Note that Some metrics are prov

* **gitploy_requests_total** <br/> How many HTTP requests processed, partitioned by status code and HTTP method.
* **gitploy_request_duration_seconds**<br/> The HTTP request latencies in seconds
* **gitploy_deployment_count** <br/> The total deployment count of the production deployments.
* **gitploy_rollback_count**<br/> The total rollback count of the production deployments.
* **gitploy_line_additions**<br/> The total added lines of the production deployments.
* **gitploy_line_deletions**<br/> The total deleted lines of the production deployments.
* **gitploy_line_changes**<br/> The total changed lines of the production deployments.
* **gitploy_lead_time_seconds**<br/> The total amount of time it takes a commit to get into the production environments.
* **gitploy_commit_count**<br/> The total commit count of production deployments.
* **gitploy_total_deployment_count** <br/> The total deployment count of the production deployments.
* **gitploy_total_rollback_count**<br/> The total rollback count of the production deployments.
* **gitploy_total_line_additions**<br/> The total added lines of the production deployments.
* **gitploy_total_line_deletions**<br/> The total deleted lines of the production deployments.
* **gitploy_total_line_changes**<br/> The total changed lines of the production deployments.
* **gitploy_total_lead_time_seconds**<br/> The total amount of time it takes a commit to get into the production environments.
* **gitploy_total_commit_count**<br/> The total commit count of production deployments.
* **gitploy_member_count**<br/> The total count of members.
* **gitploy_member_limit**<br/> The limit count of members.
14 changes: 7 additions & 7 deletions internal/server/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"deployment_count",
"total_deployment_count",
),
"The total deployment count of the production deployments.",
[]string{"namespace", "name", "env"},
Expand All @@ -134,7 +134,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"rollback_count",
"total_rollback_count",
),
"The total rollback count of the production deployments.",
[]string{"namespace", "name", "env"},
Expand All @@ -150,7 +150,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"line_additions",
"total_line_additions",
),
"The total added lines of the production deployments.",
[]string{"namespace", "name", "env"},
Expand All @@ -166,7 +166,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"line_deletions",
"total_line_deletions",
),
"The total deleted lines of the production deployments.",
[]string{"namespace", "name", "env"},
Expand All @@ -182,7 +182,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"line_changes",
"total_line_changes",
),
"The total changed lines of the production deployments.",
[]string{"namespace", "name", "env"},
Expand All @@ -198,7 +198,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"lead_time_seconds",
"total_lead_time_seconds",
),
"The total amount of time it takes a commit to get into the production environments.",
[]string{"namespace", "name", "env"},
Expand All @@ -214,7 +214,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
prometheus.BuildFQName(
namespace,
"",
"commit_count",
"total_commit_count",
),
"The total commit count of production deployments.",
[]string{"namespace", "name", "env"},
Expand Down