<commit_before>---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: scray-example-monitoring-deployment
  labels:
    app: scray-example-monitoring-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: scray-example-monitoring
  template:
    metadata:
      labels:
        app: scray-example-monitoring
    spec:
      containers:
        - name: prometheus
          image: prom/prometheus
          volumeMounts:
          - name: config
            mountPath: /etc/prometheus/prometheus.yml
            subPath: prometheus.yml
        - name: grafana
          image: grafana/grafana:6.7.3
          volumeMounts:
          - name: config
            mountPath: /etc/grafana/grafana.ini
            subPath: grafana.ini
        - name: grafana-configurator
          image: scrayorg/grafana-configurator
      initContainers:
      - name: configuration-loader
        image: busybox:1.28
        command: ['/bin/sh', '-c']
        args: ['wget https://raw.githubusercontent.com/scray/scray/feature/ingestion-examples/scray-examples/persistent-traffic-data/monitoring/configurations/prometheus/prometheus.yml && mv prometheus.yml /mnt/config/prometheus.yml && wget https://raw.githubusercontent.com/scray/scray/feature/ingestion-examples/scray-examples/persistent-traffic-data/monitoring/grafana-configurator/grafana.ini && mv grafana.ini /mnt/config/grafana.ini']
        volumeMounts:
        - name: config
          mountPath: /mnt/config
      volumes:
      - name: config
        emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
  name: scray-example-monitoring
  labels:
    run: scray-example-monitoring
spec:<commit_msg>Allway pull configurator<commit_after>---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: scray-example-monitoring-deployment
  labels:
    app: scray-example-monitoring-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: scray-example-monitoring
  template:
    metadata:
      labels:
        app: scray-example-monitoring
    spec:
      containers:
        - name: prometheus
          image: prom/prometheus
          volumeMounts:
          - name: config
            mountPath: /etc/prometheus/prometheus.yml
            subPath: prometheus.yml
        - name: grafana
          image: grafana/grafana:6.7.3
          volumeMounts:
          - name: config
            mountPath: /etc/grafana/grafana.ini
            subPath: grafana.ini
        - name: grafana-configurator
          image: scrayorg/grafana-configurator
          imagePullPolicy: Always
      initContainers:
      - name: configuration-loader
        image: busybox:1.28
        command: ['/bin/sh', '-c']
        args: ['wget https://raw.githubusercontent.com/scray/scray/feature/ingestion-examples/scray-examples/persistent-traffic-data/monitoring/configurations/prometheus/prometheus.yml && mv prometheus.yml /mnt/config/prometheus.yml && wget https://raw.githubusercontent.com/scray/scray/feature/ingestion-examples/scray-examples/persistent-traffic-data/monitoring/grafana-configurator/grafana.ini && mv grafana.ini /mnt/config/grafana.ini']
        volumeMounts:
        - name: config
          mountPath: /mnt/config
      volumes:
      - name: config
        emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
  name: scray-example-monitoring
  labels:
    run: scray-example-monitoring
spec:
{'fraction_non_alphanumeric': 0.1045925925925926, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 2.4135490394337715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2144404', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1070, 'n_words': 183}