<commit_before>---
sources:
    - name: meter_source
      interval: 600
      meters:
          - "!*"
      sinks:
          - meter_sink
    - name: cpu_bill_source
      interval: 60
      meters:
          - "cpu"
      sinks:
          - cpu_bill_sink
    - name: memory_bill_source
      interval: 60
      meters:
          - "memory.usage"
      sinks:
          - meter_sink
    - name: disk_bill_source
      interval: 60
      meters:
          - "disk.read.bytes"
          - "disk.write.bytes"
      sinks:
          - disk_bill_sink
    - name: bandwidth_bill_source
      interval: 60
      meters:
          - "bandwidth"
      sinks:
          - meter_sink
    - name: es_network_source
      interval: 60
      meters:
           - "network.es.port.incoming.internal.bytes"
           - "network.es.port.incoming.external.bytes"
           - "network.es.port.outgoing.internal.bytes"
           - "network.es.port.outgoing.external.bytes"
           - "network.services.es.lb.incoming.bytes"
           - "network.services.es.lb.outgoing.bytes"
           - "network.services.es.lb.total.connections"
           - "network.services.es.lb.http.*"
      sinks:
          - meter_sink
sinks:
    - name: meter_sink
      transformers:
      publishers:
          - notifier://
    - name: cpu_bill_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                target:
                    name: "cpu_util"
                    unit: "%"
                    type: "gauge"
                    scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
      publishers:
          - notifier://
    - name: disk_bill_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                    map_from:
                        name: "disk\\.(read|write)\\.bytes"
                        unit: "(B|request)"
                target:
                    map_to:
                        name: "disk.\\1.bytes.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://<commit_msg>puppet: Ceilometer add disk device meter<commit_after>---
sources:
    - name: meter_source
      interval: 600
      meters:
          - "!*"
      sinks:
          - meter_sink
    - name: cpu_bill_source
      interval: 60
      meters:
          - "cpu"
      sinks:
          - cpu_bill_sink
    - name: memory_bill_source
      interval: 60
      meters:
          - "memory.usage"
      sinks:
          - meter_sink
    - name: disk_bill_source
      interval: 60
      meters:
          - "disk.read.bytes"
          - "disk.write.bytes"
          - "disk.device.read.bytes"
          - "disk.device.write.bytes"
      sinks:
          - disk_bill_sink
    - name: bandwidth_bill_source
      interval: 60
      meters:
          - "bandwidth"
      sinks:
          - meter_sink
    - name: es_network_source
      interval: 60
      meters:
           - "network.es.port.incoming.internal.bytes"
           - "network.es.port.incoming.external.bytes"
           - "network.es.port.outgoing.internal.bytes"
           - "network.es.port.outgoing.external.bytes"
           - "network.services.es.lb.incoming.bytes"
           - "network.services.es.lb.outgoing.bytes"
           - "network.services.es.lb.total.connections"
           - "network.services.es.lb.http.*"
      sinks:
          - meter_sink
sinks:
    - name: meter_sink
      transformers:
      publishers:
          - notifier://
    - name: cpu_bill_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                target:
                    name: "cpu_util"
                    unit: "%"
                    type: "gauge"
                    scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
      publishers:
          - notifier://
    - name: disk_bill_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                    map_from:
                        name: "(disk\\.device|disk)\\.(read|write)\\.bytes"
                        unit: "(B|request)"
                target:
                    map_to:
                        name: "\\1.\\2.bytes.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://
{'fraction_non_alphanumeric': 0.10979768129120254, 'fraction_numerical': 0.010684246419640827, 'mean_word_length': 1.1685559388861508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5316289', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1293, 'n_words': 216}