Introduction
Apache Druid is a real-time analytics database that’s used to analyze large amounts of data quickly. It’s designed for use cases that require high uptime, fast query performance, and real-time ingestion.
Kubernetes 2.0 ConfigMap
Users should update or append the existing ConfigMap named opsramp-workload-metric-user-config by adding application-specific fields. These fields may include authentication credentials, collection frequency, and other relevant configurations.
apiVersion: v1
kind: ConfigMap
metadata:
  name: opsramp-workload-metric-user-config
  namespace: opsramp-agent
data:
  workloads: |
    druid/prometheus:
    - name: druid-none
      collectionFrequency: 59s
      port: 19091
      auth: none
      metrics_path: "/metrics"
      scheme: "http"
      filters:
        - regex: 'druid_jvm_pool_committed'
          action: exclude
      targetPodSelector:
        matchLabels:
          - key: app.kubernetes.io/name
            operator: ==
            value:
              - druid
    - name: druid-basic
      collectionFrequency: 59s
      port: 19091
      metrics_path: "/metrics"
      scheme: "https"
      auth: basic
      userName:
        source: value
        value: user1
      password:
        source: configmap
        value: default/druid-basic/DRUID_PASSWORD
      filters:
        - regex: 'druid_jvm_pool_committed'
          action: exclude
      targetPodSelector:
        matchLabels:
          - key: app.kubernetes.io/name
            operator: ==
            value:
              - druid
    - name: druid-tls
      collectionFrequency: 59s
      port: 19091
      metrics_path: "/metrics"
      scheme: "https"
      auth: tls
      tlsCA:
        source: secret
        value: default/druid-tls/ca.crt
      tlsCert:
        source: secret
        value: default/druid-tls/tls.crt
      tlsKey:
        source: secret
        value: default/druid-tls/tls.key
      filters:
        - regex: 'druid_jvm_pool_committed'
          action: exclude
      targetPodSelector:
        matchLabels:
          - key: app.kubernetes.io/name
            operator: ==
            value:
              - druid Supported Metrics
Supported metrics for this workload as provided by the Kubernetes 2.0 Agent.
| Metric | Description | 
|---|---|
| druid_jvm_pool_committed | Total amount of memory committed for JVM memory pools in Druid. | 
| druid_query_cache_delta_misses | Number of misses in the query cache delta in Druid. | 
| druid_query_cache_total_evictions | Total number of evictions from the query cache in Druid. | 
| druid_jvm_pool_used | Amount of memory used in JVM memory pools in Druid. | 
| druid_jvm_pool_max | Maximum amount of memory allowed for JVM memory pools in Druid. | 
| druid_query_cache_delta_hits | Number of hits in the query cache delta in Druid. | 
| druid_query_cache_total_sizebytes | Total size of the query cache in Druid in bytes. | 
| druid_sys_net_write_size_total | Total number of bytes written over the network by Druid. | 
| druid_query_cache_total_hits | Total number of hits in the query cache in Druid. | 
| druid_query_cache_delta_numentries | Number of entries in the query cache delta in Druid. | 
| druid_sys_swap_max | Maximum swap usage in the system for Druid. | 
| druid_query_cache_total_timeouts | Total number of timeouts in the query cache in Druid. | 
| druid_sys_net_read_size_total | Total number of bytes read from the network by Druid. | 
| druid_jvm_mem_committed | Total memory committed for JVM memory in Druid. | 
| druid_sys_mem_used | Total system memory used by Druid. | 
| druid_query_cache_delta_sizebytes | Size of the query cache delta in bytes in Druid. | 
| druid_jvm_pool_init | Initial size of JVM memory pools in Druid. | 
| druid_query_failed_count_total | Total number of failed queries in Druid. | 
| druid_query_segmentandcache_time_bucket | Histogram bucket for the time spent processing queries and caching in Druid. | 
| druid_query_segmentandcache_time_count | Total count of queries processed and cached in Druid. | 
| druid_query_segmentandcache_time_sum | Total sum of times spent on queries and caching in Druid. | 
| druid_query_cache_delta_averagebytes | Average size of entries in the query cache delta in Druid, in bytes. | 
| druid_query_cache_delta_timeouts | Total number of timeouts in the query cache delta in Druid. | 
| druid_query_cache_total_numentries | Total number of entries in the query cache in Druid. | 
| druid_query_segment_time_bucket | Histogram bucket for the time spent processing query segments in Druid. | 
| druid_query_segment_time_count | Total count of query segments processed in Druid. | 
| druid_query_segment_time_sum | Total sum of times spent processing query segments in Druid. | 
| druid_query_intervalchunk_time_bucket | Histogram bucket for the time spent processing interval chunks in Druid. | 
| druid_query_intervalchunk_time_count | Total count of interval chunks processed in Druid. | 
| druid_query_intervalchunk_time_sum | Total sum of times spent processing interval chunks in Druid. | 
| druid_jvm_bufferpool_capacity | Total capacity of the JVM buffer pool in Druid. |