-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathprometheus-adapter.values.yaml
55 lines (52 loc) · 2.09 KB
/
prometheus-adapter.values.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ----------------------------------------------------------------------
# Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
# The Universal Permissive License (UPL), Version 1.0
# ----------------------------------------------------------------------
prometheus:
url: http://prometheus-operated.prometheus.svc
port: 9090
rules:
custom:
# create a metric on the number of player connections
- seriesQuery: '{__name__=~"^signalserver_player_socket_connections$"}'
resources:
overrides:
namespace: {resource: "namespace"}
pod: {resource: "pod"}
name:
# matches: "^(.*)"
as: "stream_player_connections"
metricsQuery: (avg(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>))
# create a metric on the number of queued players
- seriesQuery: '{__name__=~"^matchmaker_player_queue_count$"}'
resources:
overrides:
namespace: {resource: "namespace"}
service: {resource: "service"}
pod: {resource: "pod"}
name:
# matches: "^(.*)_count"
as: "pixelstream_player_queue_count"
metricsQuery: (sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>))
# create a metric on the number of available (free) pixel streaming pods
- seriesQuery: '{__name__=~"^matchmaker_streamer_available_count$"}'
resources:
overrides:
namespace: {resource: "namespace"}
service: {resource: "service"}
pod: {resource: "pod"}
name:
# matches: "^(.*)_count"
as: "pixelstream_available_count"
metricsQuery: (sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>))
# create a metric on the ratio of players => available streams
- seriesQuery: '{__name__=~"^matchmaker_streamer_demand_ratio$"}'
resources:
overrides:
namespace: {resource: "namespace"}
service: {resource: "service"}
pod: {resource: "pod"}
name:
# matches: "^(.*)_count"
as: "player_stream_pool_ratio"
metricsQuery: (avg(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>))