Link

Monitor

  • Prometheus metrics are enabled by default in the Fyde Access Proxy components
  • The scrapping path is in the root of the endpoint /
  • Ports can be customized in each component (check Parameters)

Examples

Envoy Proxy Prometheus job configuration

  • Add the following job to the existing prometheus configuration
- job_name: envoy-proxy
  scrape_interval: 10s
  scrape_timeout:  5s
  metrics_path: /
  static_configs:
    - targets: ['envoy-proxy:9000']

Envoy Proxy prometheus-operator Service Monitor

  • Apply the following configuration
  • Ensure that prometheus-operator is allowed to scrape that namespace
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app: envoy-proxy
  name: envoy-proxy
spec:
  endpoints:
    - interval: 10s
      path: /
      port: metrics
  namespaceSelector:
    matchNames:
      - fyde-access-proxy
  selector:
    matchLabels:
      app: envoy-proxy
  • Also add the following to the corresponding service, if the service is deployed in kubernetes:
    - name: metrics
      protocol: TCP
      port: 9000
      targetPort: 9000