servicemonitor-query-scheduler.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{- if .Values.queryScheduler.enabled }}
  2. {{- with .Values.serviceMonitor }}
  3. {{- if .enabled }}
  4. apiVersion: monitoring.coreos.com/v1
  5. kind: ServiceMonitor
  6. metadata:
  7. name: {{ include "loki.querySchedulerFullname" $ }}
  8. {{- with .namespace }}
  9. namespace: {{ . }}
  10. {{- end }}
  11. {{- with .annotations }}
  12. annotations:
  13. {{- toYaml . | nindent 4 }}
  14. {{- end }}
  15. labels:
  16. {{- include "loki.querySchedulerLabels" $ | nindent 4 }}
  17. {{- with .labels }}
  18. {{- toYaml . | nindent 4 }}
  19. {{- end }}
  20. spec:
  21. {{- with .namespaceSelector }}
  22. namespaceSelector:
  23. {{- toYaml . | nindent 4 }}
  24. {{- end }}
  25. selector:
  26. matchLabels:
  27. {{- include "loki.querySchedulerSelectorLabels" $ | nindent 6 }}
  28. endpoints:
  29. - port: http
  30. {{- with .interval }}
  31. interval: {{ . }}
  32. {{- end }}
  33. {{- with .scrapeTimeout }}
  34. scrapeTimeout: {{ . }}
  35. {{- end }}
  36. {{- with .relabelings }}
  37. relabelings:
  38. {{- toYaml . | nindent 8 }}
  39. {{- end }}
  40. {{- with .metricRelabelings }}
  41. metricRelabelings:
  42. {{- toYaml . | nindent 8 }}
  43. {{- end }}
  44. {{- with .scheme }}
  45. scheme: {{ . }}
  46. {{- end }}
  47. {{- with .tlsConfig }}
  48. tlsConfig:
  49. {{- toYaml . | nindent 8 }}
  50. {{- end }}
  51. {{- end }}
  52. {{- end }}
  53. {{- end }}