Skip to content

Commit

Permalink
Review feedback!
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasumoto authored Jul 13, 2019
1 parent bd31546 commit 645207e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Counters go up (they can only increase in value), and reset when the process res
let counter = myProm.createCounter(forType: Int.self, named: "my_counter")
counter.inc() // Increment by 1
counter.inc(12) // Increment by given value
counter.reset() // Set the value back to 0
```

## Gauge
Expand Down Expand Up @@ -77,30 +76,6 @@ let summary = myProm.createSummary(forType: Double.self, named: "my_summary")
summary.observe(4.7) // Observe the given value
```

## Info

Info tracks key-value information, usually about a whole target. These are typically helpful details like git sha or other metadata.

```swift
struct MyInfoStruct: MetricLabels {
let value: String

init() {
self.value = "abc"
}

init(_ v: String) {
self.value = v
}
}

let info = myProm.createInfo(named: "my_info", helpText: "Just some info", labelType: MyInfoStruct.self)

let info = prom.createInfo(named: "my_info", helpText: "Just some info", labelType: MyInfoStruct.self)

info.info(MyInfoStruct("def"))
```

## Labels
All metric types support adding labels, allowing for grouping of related metrics.

Expand Down

0 comments on commit 645207e

Please sign in to comment.