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
45
45
let counter = myProm.createCounter (forType : Int .self , named : " my_counter" )
46
46
counter.inc () // Increment by 1
47
47
counter.inc (12 ) // Increment by given value
48
- counter.reset () // Set the value back to 0
49
48
```
50
49
51
50
## Gauge
@@ -77,30 +76,6 @@ let summary = myProm.createSummary(forType: Double.self, named: "my_summary")
77
76
summary.observe (4.7 ) // Observe the given value
78
77
```
79
78
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
-
104
79
## Labels
105
80
All metric types support adding labels, allowing for grouping of related metrics.
106
81
You can’t perform that action at this time.
0 commit comments