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) {
143
143
"" ,
144
144
"member_count" ,
145
145
),
146
- "The total count of member ." ,
146
+ "The total count of members ." ,
147
147
nil ,
148
148
nil ,
149
149
),
@@ -158,7 +158,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
158
158
"" ,
159
159
"member_limit" ,
160
160
),
161
- "The limit of count of member ." ,
161
+ "The limit count of members ." ,
162
162
[]string {"kind" },
163
163
nil ,
164
164
),
Original file line number Diff line number Diff line change 17
17
- Deployment : concepts/deployment.md
18
18
- Lock : concepts/lock.md
19
19
- Permission : concepts/permission.md
20
- - " Self-hosted Server " : concepts/self-hosted-server.md
21
20
- Chatops : concepts/chatops.md
21
+ - Metrics : concepts/metrics.md
22
22
- License : concepts/license.md
23
+ - " Self-hosted Server " : concepts/self-hosted-server.md
23
24
- Tasks :
24
25
- Installation : tasks/installation.md
25
26
- Database : tasks/database.md
You can’t perform that action at this time.
0 commit comments