Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add prometheus metriocs #1616

Merged
merged 1 commit into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1158,3 +1158,24 @@ data:
ender-dragon:
is-enabled: true
ignored-worlds: []

PrometheusExporter-config.yml: |
host: 0.0.0.0
port: 9225
enable_metrics:
entities_total: true
villagers_total: true
loaded_chunks_total: true
jvm_memory: true
players_online_total: true
players_total: true
tps: true
world_size: true
jvm_threads: true
jvm_gc: true
tick_duration_median: true
tick_duration_average: true
tick_duration_min: false
tick_duration_max: true
player_online: true
player_statistic: true
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ spec:
mountPath: /plugins/ByeByeWither/config.yml
subPath: ByeByeWither-config.yml

# PrometheusExporter プラグインの設定ファイル
- name: common-mcserver-plugin-configs
mountPath: /plugins/PrometheusExporter/config.yml
subPath: PrometheusExporter-config.yml

# SeichiAssist プラグインの設定ファイル
- name: seichiassist-config
mountPath: /plugins/SeichiAssist/config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
endpoints:
- interval: 30s
port: jmx-metrics
- interval: 30s
port: prometheus
selector:
matchLabels:
app: mcserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ spec:
port: 18321
protocol: TCP
targetPort: jmx-metrics
- name: prometheus
port: 9225
protocol: TCP
targetPort: prometheus
selector:
mcserver: debug-s1