diff --git a/docs/concepts/metrics.md b/docs/concepts/metrics.md index 86dd5390..829e0e24 100644 --- a/docs/concepts/metrics.md +++ b/docs/concepts/metrics.md @@ -32,12 +32,12 @@ Gitploy provides the following Gitploy metrics. *Note that Some metrics are prov * **gitploy_requests_total**
How many HTTP requests processed, partitioned by status code and HTTP method. * **gitploy_request_duration_seconds**
The HTTP request latencies in seconds -* **gitploy_deployment_count**
The total deployment count of the production deployments. -* **gitploy_rollback_count**
The total rollback count of the production deployments. -* **gitploy_line_additions**
The total added lines of the production deployments. -* **gitploy_line_deletions**
The total deleted lines of the production deployments. -* **gitploy_line_changes**
The total changed lines of the production deployments. -* **gitploy_lead_time_seconds**
The total amount of time it takes a commit to get into the production environments. -* **gitploy_commit_count**
The total commit count of production deployments. +* **gitploy_total_deployment_count**
The total deployment count of the production deployments. +* **gitploy_total_rollback_count**
The total rollback count of the production deployments. +* **gitploy_total_line_additions**
The total added lines of the production deployments. +* **gitploy_total_line_deletions**
The total deleted lines of the production deployments. +* **gitploy_total_line_changes**
The total changed lines of the production deployments. +* **gitploy_total_lead_time_seconds**
The total amount of time it takes a commit to get into the production environments. +* **gitploy_total_commit_count**
The total commit count of production deployments. * **gitploy_member_count**
The total count of members. * **gitploy_member_limit**
The limit count of members. diff --git a/internal/server/metrics/metrics.go b/internal/server/metrics/metrics.go index 90183fe6..90deaebb 100644 --- a/internal/server/metrics/metrics.go +++ b/internal/server/metrics/metrics.go @@ -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"}, @@ -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"}, @@ -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"}, @@ -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"}, @@ -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"}, @@ -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"}, @@ -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"},