id: hawkular-openshift-agent kind: ConfigMap apiVersion: v1 name: Hawkular OpenShift Agent Configuration metadata: name: hawkular-openshift-agent-configuration labels: metrics-infra: agent data: config.yaml: | kubernetes: tenant: ${POD:namespace_name} collector: minimum_collection_interval: 10s default_collection_interval: 30s metric_id_prefix: pod/${POD:uid}/custom/ tags: metric_name: ${METRIC:name} description: ${METRIC:description} units: ${METRIC:units} namespace_id: ${POD:namespace_uid} namespace_name: ${POD:namespace_name} node_name: ${POD:node_name} pod_id: ${POD:uid} pod_ip: ${POD:ip} pod_name: ${POD:name} pod_namespace: ${POD:namespace_name} hostname: ${POD:hostname} host_ip: ${POD:host_ip} labels: ${POD:labels} type: pod collector: hawkular_openshift_agent custom_metric: true hawkular-openshift-agent: | endpoints: - type: prometheus protocol: "http" port: 8080 path: /metrics collection_interval: 30s metrics: - name: hawkular_openshift_agent_metric_data_points_collected_total - name: process_cpu_seconds_total - name: go_goroutines - name: go_memstats_alloc_bytes - name: go_memstats_gc_sys_bytes - name: go_memstats_heap_alloc_bytes - name: go_memstats_heap_idle_bytes - name: go_memstats_heap_inuse_bytes - name: go_memstats_heap_objects - name: go_memstats_heap_released_bytes - name: go_memstats_heap_sys_bytes - name: go_memstats_last_gc_time_seconds - name: go_memstats_next_gc_bytes - name: go_memstats_other_sys_bytes - name: go_memstats_stack_inuse_bytes - name: go_memstats_stack_sys_bytes - name: go_memstats_sys_bytes - name: process_max_fds - name: process_open_fds - name: process_resident_memory_bytes - name: process_start_time_seconds - name: process_virtual_memory_bytes