forked from openmeterio/openmeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
38 lines (33 loc) · 1.08 KB
/
config.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
address: 127.0.0.1:8888
telemetry:
log:
level: debug
# dedupe:
# enabled: true
# driver: redis
# config:
# address: 127.0.0.1:6379
# database: 0
# expiration: 768h # 32d
# Consumer portal
# portal:
# enabled: true
# tokenSecret: this-isnt-secure
meters:
# Sample meter to count API requests
- slug: api_requests_total # Unique identifier for the meter
description: API Requests
eventType: request # Filter events by type
aggregation: COUNT # Aggregation method: COUNT, SUM, etc.
groupBy:
method: $.method # HTTP Method: GET, POST, etc.
route: $.route # Route: /products/:product_id
# Sample meter to count LLM Token Usage
- slug: tokens_total
description: AI Token Usage
eventType: prompt # Filter events by type
aggregation: SUM
valueProperty: $.tokens # JSONPath to parse usage value
groupBy:
model: $.model # AI model used: gpt4-turbo, etc.
type: $.type # Prompt type: input, output, system