8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a045e7 commit dd6416cCopy full SHA for dd6416c
prometheus_client/core.py
@@ -232,6 +232,23 @@ def _samples(self):
232
233
@_MetricWrapper
234
class Gauge(object):
235
+ '''Gauge metric, to report instantaneous values.
236
+
237
+ Examples of Gauges include:
238
+ Inprogress requests
239
+ Number of items in a queue
240
+ Free memory
241
+ Total memory
242
+ Temperature
243
244
+ Gauges can go both up and down.
245
246
+ from prometheus_client import Gauge
247
+ g = Gauge('my_inprogress_requests', 'Description of gauge')
248
+ g.inc() # Increment by 1
249
+ g.dec(10) # Decrement by given value
250
+ g.set(4.2) # Set to a given value
251
+ '''
252
_type = 'gauge'
253
_reserved_labelnames = []
254
0 commit comments