Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Update OTEP 146 with UpDownCounter and (UpDown)SumObserver cases (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd authored Apr 8, 2021
1 parent 1e860c8 commit 2716541
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions text/metrics/0146-metrics-prototype-scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,27 @@ We will need the following metrics every minute:
| Portland | customerB | tomato | 10 |
| Portland | customerC | potato | 2 |

Each customer may enter and exit a grocery store.

Here goes the Python snippet:

```python
store = GroceryStore("Portland")
store.enter_customer("customerA", {"account_type": "restaurant"})
store.enter_customer("customerB", {"account_type": "home cook"})
store.exit_customer("customerB", {"account_type": "home cook"})
store.exit_customer("customerA", {"account_type": "restaurant"})
```

We will need the following metrics every minute:

**Customers in store:**

| Store | Account type | Count |
| -------- | ----------- | ----- |
| Portland | restaurant | 1 |
| Portland | home cook | 1 |

## Scenario 2: HTTP Server

The _HTTP Server_ scenario covers how a library developer X could use metrics
Expand Down Expand Up @@ -166,6 +187,19 @@ speaking it is not considered as a "dimension" from the SDK perspective.
| --------- | ------------ |
| MachineA | 21 |

**Server CPU usage:**

| Host Name | CPU usage (seconds) |
| --------- | ------------------- |
| MachineA | 100.1 |

**Server Memory usage:**

| Host Name | Memory usage (bytes) |
| --------- | -------------------- |
| MachineA | 1000000000 |
| MachineA | 2000000000 |

#### HTTP Server Library

**Received HTTP requests:**
Expand All @@ -190,6 +224,13 @@ Note: the server duration is only available for **finished HTTP requests**.
| MachineA | 1234 | Android | GET | otel.org | 200 | 1.1 | 127.0.0.1 | 51327 | 127.0.0.1 | 80 | 8.5 |
| MachineA | 1234 | Android | POST | otel.org | 304 | 1.1 | 127.0.0.1 | 51328 | 127.0.0.1 | 80 | 100.0 |

**HTTP active sessions:**

| HTTP Host | HTTP flavor | Active sessions |
| --------- | ------------- | --------------- |
| otel.org | 1.1 | 17 |
| otel.org | 2.0 | 20 |

### Application Requirements

The application owner (developer Y) would only want the following metrics:
Expand Down

0 comments on commit 2716541

Please sign in to comment.