servicemonitor-memcached-index-queries.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- if .Values.memcachedIndexQueries.enabled }}
  2. {{- with .Values.serviceMonitor }}
  3. {{- if .enabled }}
  4. apiVersion: monitoring.coreos.com/v1
  5. kind: ServiceMonitor
  6. metadata:
  7. name: {{ include "loki.memcachedIndexQueriesFullname" $ }}
  8. {{- with .namespace }}
  9. namespace: {{ . }}
  10. {{- end }}
  11. {{- with .annotations }}
  12. annotations:
  13. {{- toYaml . | nindent 4 }}
  14. {{- end }}
  15. labels:
  16. {{- include "loki.memcachedIndexQueriesLabels" $ | 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.memcachedIndexQueriesSelectorLabels" $ | nindent 6 }}
  28. endpoints:
  29. - port: http-metrics
  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. {{- with .targetLabels }}
  52. targetLabels:
  53. {{- toYaml . | nindent 4 }}
  54. {{- end }}
  55. {{- end }}
  56. {{- end }}
  57. {{- end }}