mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
Simplify Plex promtail/loki config (#342)
* simplify plex promtail config * bump plex version * fix linting issue
This commit is contained in:
parent
83d76d5abe
commit
c940ad648c
@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: 1.19.5.3112-b23ab3896
|
||||
description: Plex Media Server
|
||||
name: plex
|
||||
version: 1.8.0
|
||||
version: 1.8.1
|
||||
keywords:
|
||||
- plex
|
||||
home: https://plex.tv/
|
||||
|
@ -10,9 +10,27 @@ metadata:
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
data:
|
||||
{{- if .Values.logging.promtail.config }}
|
||||
{{ $root := . }}
|
||||
promtail.yaml: |
|
||||
{{ tpl (toYaml .Values.logging.promtail.config | indent 4) $root }}
|
||||
{{- end }}
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
clients:
|
||||
- url: {{ .Values.logging.promtail.loki.url }}
|
||||
scrape_configs:
|
||||
- job_name: plex-logs
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: plex-logs
|
||||
__path__: "/plex-logs/*.log"
|
||||
- job_name: plex-plugin-logs
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: plex-plugin-logs
|
||||
__path__: "/plex-logs/PMS Plugin Logs/*.log"
|
||||
{{- end }}
|
||||
|
@ -292,9 +292,6 @@ certificate:
|
||||
mountPath: /etc/plex-certs
|
||||
|
||||
# Logging configuration
|
||||
# Standard Plex log paths:
|
||||
# - /config/Library/Application\ Support/Plex\ Media\ Server/Logs/*.log
|
||||
# - /config/Library/Application\ Support/Plex\ Media\ Server/Logs/PMS Plugin Logs/*.log
|
||||
logging:
|
||||
promtail:
|
||||
enabled: false
|
||||
@ -302,28 +299,8 @@ logging:
|
||||
repository: grafana/promtail
|
||||
tag: 1.6.0
|
||||
pullPolicy: IfNotPresent
|
||||
config:
|
||||
server:
|
||||
disable: true
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
clients:
|
||||
- url: http://loki.logs.svc.cluster.local:3100/loki/api/v1/push
|
||||
scrape_configs:
|
||||
- job_name: plex-logs
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: plex-logs
|
||||
__path__: "/plex-logs/*.log"
|
||||
- job_name: plex-plugin-logs
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: plex-plugin-logs
|
||||
__path__: "/plex-logs/PMS Plugin Logs/*.log"
|
||||
loki:
|
||||
url: http://loki.logs.svc.cluster.local:3100/loki/api/v1/push
|
||||
|
||||
# Probes configuration
|
||||
probes:
|
||||
|
Loading…
Reference in New Issue
Block a user