apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: loki-alloy
  namespace: loki
  labels:
    helm.sh/chart: alloy-1.6.0
    app.kubernetes.io/name: alloy
    app.kubernetes.io/instance: loki
    app.kubernetes.io/version: "v1.13.0"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/part-of: alloy
    app.kubernetes.io/component: metrics
spec:
  endpoints:
    - port: http-metrics
      scheme: http
      honorLabels: true
  selector:
    matchLabels:
      app.kubernetes.io/name: alloy
      app.kubernetes.io/instance: loki
