mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +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
|
appVersion: 1.19.5.3112-b23ab3896
|
||||||
description: Plex Media Server
|
description: Plex Media Server
|
||||||
name: plex
|
name: plex
|
||||||
version: 1.8.0
|
version: 1.8.1
|
||||||
keywords:
|
keywords:
|
||||||
- plex
|
- plex
|
||||||
home: https://plex.tv/
|
home: https://plex.tv/
|
||||||
|
@ -10,9 +10,27 @@ metadata:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
data:
|
data:
|
||||||
{{- if .Values.logging.promtail.config }}
|
|
||||||
{{ $root := . }}
|
|
||||||
promtail.yaml: |
|
promtail.yaml: |
|
||||||
{{ tpl (toYaml .Values.logging.promtail.config | indent 4) $root }}
|
server:
|
||||||
{{- end }}
|
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 }}
|
{{- end }}
|
||||||
|
@ -292,9 +292,6 @@ certificate:
|
|||||||
mountPath: /etc/plex-certs
|
mountPath: /etc/plex-certs
|
||||||
|
|
||||||
# Logging configuration
|
# 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:
|
logging:
|
||||||
promtail:
|
promtail:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -302,28 +299,8 @@ logging:
|
|||||||
repository: grafana/promtail
|
repository: grafana/promtail
|
||||||
tag: 1.6.0
|
tag: 1.6.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
config:
|
loki:
|
||||||
server:
|
url: http://loki.logs.svc.cluster.local:3100/loki/api/v1/push
|
||||||
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"
|
|
||||||
|
|
||||||
# Probes configuration
|
# Probes configuration
|
||||||
probes:
|
probes:
|
||||||
|
Loading…
Reference in New Issue
Block a user