This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 1+ # Metrics
2+
3+ Gtiploy publishes and exposes metrics that Prometheus can consume at the standard ` /metrics ` endpoint.
4+
5+ ## Configuration
6+
7+ 1\. Configure the server:
8+
9+ ```
10+ GITPLOY_PROMETHEUS_AUTH_SECRET=YOUR_SECRET
11+ ```
12+
13+ 2\. Configure the prometheus scraper:
14+
15+ ```
16+ global:
17+ scrape_interval: 60s
18+
19+ scrape_configs:
20+ - job_name: gitploy
21+ authorization:
22+ credentials: YOUR_SECRET
23+
24+ static_configs:
25+ - targets: ['domain.com']
26+ ```
27+
28+ ## Gitploy Metrics
29+
30+ Gitploy provides the following Gitploy metrics:
31+
32+ * ** gitploy_requests_total** <br /> How many HTTP requests processed, partitioned by status code and HTTP method.
33+ * ** gitploy_request_duration_seconds** <br /> The HTTP request latencies in seconds.
34+ * ** gitploy_deployment_count** <br /> The total count of success deployment for each environment, respectively.
35+ * ** gitploy_member_count** <br /> The total count of members.
36+ * ** gitploy_member_limit** <br /> The limit count of members.
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
143143 "" ,
144144 "member_count" ,
145145 ),
146- "The total count of member ." ,
146+ "The total count of members ." ,
147147 nil ,
148148 nil ,
149149 ),
@@ -158,7 +158,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
158158 "" ,
159159 "member_limit" ,
160160 ),
161- "The limit of count of member ." ,
161+ "The limit count of members ." ,
162162 []string {"kind" },
163163 nil ,
164164 ),
Original file line number Diff line number Diff line change 1717 - Deployment : concepts/deployment.md
1818 - Lock : concepts/lock.md
1919 - Permission : concepts/permission.md
20- - " Self-hosted Server " : concepts/self-hosted-server.md
2120 - Chatops : concepts/chatops.md
21+ - Metrics : concepts/metrics.md
2222 - License : concepts/license.md
23+ - " Self-hosted Server " : concepts/self-hosted-server.md
2324 - Tasks :
2425 - Installation : tasks/installation.md
2526 - Database : tasks/database.md
You can’t perform that action at this time.
0 commit comments