File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ Counters go up (they can only increase in value), and reset when the process res
4545let counter = myProm.createCounter (forType : Int .self , named : " my_counter" )
4646counter.inc () // Increment by 1
4747counter.inc (12 ) // Increment by given value
48- counter.reset () // Set the value back to 0
4948```
5049
5150## Gauge
@@ -77,30 +76,6 @@ let summary = myProm.createSummary(forType: Double.self, named: "my_summary")
7776summary.observe (4.7 ) // Observe the given value
7877```
7978
80- ## Info
81-
82- Info tracks key-value information, usually about a whole target. These are typically helpful details like git sha or other metadata.
83-
84- ``` swift
85- struct MyInfoStruct : MetricLabels {
86- let value: String
87-
88- init () {
89- self .value = " abc"
90- }
91-
92- init (_ v : String ) {
93- self .value = v
94- }
95- }
96-
97- let info = myProm.createInfo (named : " my_info" , helpText : " Just some info" , labelType : MyInfoStruct.self )
98-
99- let info = prom.createInfo (named : " my_info" , helpText : " Just some info" , labelType : MyInfoStruct.self )
100-
101- info.info (MyInfoStruct (" def" ))
102- ```
103-
10479## Labels
10580All metric types support adding labels, allowing for grouping of related metrics.
10681
You can’t perform that action at this time.
0 commit comments