feat(loik): be able to specify full loki url
This commit is contained in:
@ -21,3 +21,10 @@
|
|||||||
.idea/
|
.idea/
|
||||||
*.tmproj
|
*.tmproj
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
# git repo files
|
||||||
|
monitoring-mixins/
|
||||||
|
ceph-mixins/
|
||||||
|
gitlab-ci/
|
||||||
|
website-template/
|
||||||
|
docs/
|
||||||
|
@ -25,7 +25,7 @@ data:
|
|||||||
|
|
||||||
- name: journal
|
- name: journal
|
||||||
clients:
|
clients:
|
||||||
- url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:3100/loki/api/v1/push
|
- url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}/loki/api/v1/push
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
|
|
||||||
- job_name: systemd-journal
|
- job_name: systemd-journal
|
||||||
@ -202,7 +202,7 @@ data:
|
|||||||
|
|
||||||
- name: kubernetes
|
- name: kubernetes
|
||||||
clients:
|
clients:
|
||||||
- url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:3100/loki/api/v1/push
|
- url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}/loki/api/v1/push
|
||||||
# basic_auth:
|
# basic_auth:
|
||||||
# username: YOUR_LOKI_USERNAME
|
# username: YOUR_LOKI_USERNAME
|
||||||
# password: YOUR_LOKI_PASSWORD
|
# password: YOUR_LOKI_PASSWORD
|
||||||
@ -279,3 +279,26 @@ data:
|
|||||||
include_exporter_metrics: true
|
include_exporter_metrics: true
|
||||||
enable_collectors:
|
enable_collectors:
|
||||||
- uname
|
- uname
|
||||||
|
|
||||||
|
|
||||||
|
syslog_server.yaml: |
|
||||||
|
# REF: https://grafana.com/docs/loki/latest/send-data/promtail/configuration/#example-syslog-config
|
||||||
|
server:
|
||||||
|
http_listen_port: 9080
|
||||||
|
grpc_listen_port: 0
|
||||||
|
|
||||||
|
positions:
|
||||||
|
filename: /tmp/syslog_server_positions.yaml
|
||||||
|
|
||||||
|
clients:
|
||||||
|
- url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}/loki/api/v1/push
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: syslog
|
||||||
|
syslog:
|
||||||
|
listen_address: 0.0.0.0:1514
|
||||||
|
labels:
|
||||||
|
job: "syslog"
|
||||||
|
relabel_configs:
|
||||||
|
- source_labels: ['__syslog_message_hostname']
|
||||||
|
target_label: 'host'
|
||||||
|
@ -27,7 +27,7 @@ spec:
|
|||||||
type: loki
|
type: loki
|
||||||
access: proxy
|
access: proxy
|
||||||
# basicAuth: true
|
# basicAuth: true
|
||||||
url: "http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:3100"
|
url: "http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}"
|
||||||
isDefault: false
|
isDefault: false
|
||||||
# user: admin
|
# user: admin
|
||||||
jsonData:
|
jsonData:
|
||||||
|
@ -8,6 +8,7 @@ nfc_monitoring:
|
|||||||
|
|
||||||
kubernetes:
|
kubernetes:
|
||||||
cluster_dns_name: cluster.local
|
cluster_dns_name: cluster.local
|
||||||
|
networking: calico
|
||||||
|
|
||||||
|
|
||||||
alert_manager:
|
alert_manager:
|
||||||
@ -45,7 +46,8 @@ nfc_monitoring:
|
|||||||
|
|
||||||
namespace: loki
|
namespace: loki
|
||||||
|
|
||||||
service_name: loki
|
service_name: loki-gateway
|
||||||
|
service_port: 80
|
||||||
|
|
||||||
ServiceMonitor:
|
ServiceMonitor:
|
||||||
selector:
|
selector:
|
||||||
|
Reference in New Issue
Block a user