This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ GITPLOY_PROMETHEUS_AUTH_SECRET=YOUR_SECRET
1717global:
1818 scrape_interval: 60s
1919
20- scrape_configs:
20+ scrape_configs:
2121 - job_name: gitploy
22- authorization:
23- credentials: YOUR_SECRET
22+ authorization:
23+ credentials: YOUR_SECRET
2424
25- static_configs:
25+ static_configs:
2626 - targets: ['domain.com']
2727```
2828
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
120120 []string {"namespace" , "name" , "env" },
121121 nil ,
122122 ),
123- prometheus .CounterValue ,
123+ prometheus .GaugeValue ,
124124 float64 (dc .Count ),
125125 dc .Namespace , dc .Name , dc .Env ,
126126 )
@@ -147,7 +147,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
147147 nil ,
148148 nil ,
149149 ),
150- prometheus .CounterValue ,
150+ prometheus .GaugeValue ,
151151 float64 (lic .MemberCount ),
152152 )
153153
@@ -162,7 +162,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
162162 []string {"kind" },
163163 nil ,
164164 ),
165- prometheus .CounterValue ,
165+ prometheus .GaugeValue ,
166166 float64 (lic .MemberLimit ),
167167 string (lic .Kind ),
168168 )
You can’t perform that action at this time.
0 commit comments