github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/golang-pull/kubernetes/values.yaml (about)

     1  ---
     2  # Create Cluster Role and bind it to Pyroscope to enable it watching Kubernetes resources.
     3  rbac:
     4    create: true
     5  # Pyroscope configuration.
     6  pyroscopeConfigs:
     7    log-level: debug
     8    scrape-configs:
     9      # Example scrape config for pods
    10      #
    11      # The relabeling allows the actual pod scrape endpoint to be configured via the
    12      # following annotations:
    13      #
    14      # * `pyroscope.io/scrape`: Only scrape pods that have a value of `true`.
    15      # * `pyroscope.io/application-name`: Name of the application being profiled.
    16      # * `pyroscope.io/scheme`: If the metrics endpoint is secured then you will need
    17      # to set this to `https` & most likely set the `tls_config` of the scrape config.
    18      # * `pyroscope.io/port`: Scrape the pod on the indicated port.
    19      # * `pyroscope.io/profile-{profile_name}-path`: Specifies URL path exposing pprof profile.
    20      # * `pyroscope.io/profile-{profile_name}-param-{param_key}`: Overrides scrape URL parameters.
    21      #
    22      # Kubernetes labels will be added as Pyroscope labels on metrics via the
    23      # `labelmap` relabeling action.
    24      - job-name: 'kubernetes-pods'
    25        enabled-profiles: [cpu, mem]
    26        kubernetes-sd-configs:
    27          - role: pod
    28        relabel-configs:
    29          - source-labels: [__meta_kubernetes_pod_annotation_pyroscope_io_scrape]
    30            action: keep
    31            regex: true
    32          - source-labels:
    33              [__meta_kubernetes_pod_annotation_pyroscope_io_application_name]
    34            action: replace
    35            target-label: __name__
    36          - source-labels:
    37              [__meta_kubernetes_pod_annotation_pyroscope_io_spy_name]
    38            action: replace
    39            target-label: __spy_name__
    40          - source-labels: [__meta_kubernetes_pod_annotation_pyroscope_io_scheme]
    41            action: replace
    42            regex: (https?)
    43            target-label: __scheme__
    44          - source-labels:
    45              [__address__, __meta_kubernetes_pod_annotation_pyroscope_io_port]
    46            action: replace
    47            regex: ([^:]+)(?::\d+)?;(\d+)
    48            replacement: $1:$2
    49            target-label: __address__
    50          - action: labelmap
    51            regex: __meta_kubernetes_pod_label_(.+)
    52          - source-labels: [__meta_kubernetes_namespace]
    53            action: replace
    54            target-label: kubernetes_namespace
    55          - source-labels: [__meta_kubernetes_pod_name]
    56            action: replace
    57            target-label: kubernetes_pod_name
    58          - source-labels: [__meta_kubernetes_pod_phase]
    59            regex: Pending|Succeeded|Failed|Completed
    60            action: drop
    61          - action: labelmap
    62            regex: __meta_kubernetes_pod_annotation_pyroscope_io_profile_(.+)
    63            replacement: __profile_$1