This is an old revision of the document!


scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
    static_configs:
    - targets: ['localhost:9090']

  - job_name: 'somewhere'
    consul_sd_configs:
      - server: 'somewhere:8500'
    relabel_configs:
      - source_labels: [__meta_consul_tags]
        regex: .*,some_label,.*
        action: keep
      - source_labels: [__meta_consul_service]
        target_label: job
{
  "service": {
    "id": "some_id",
    "name": "node_exporter",
    "tags": ["some_label"],
    "address": "172.26.2.112",
    "meta": {
      "infrastructure": "some_infr",
      "site": "Some Site"
    },
     "port": 9100
        }
}

kubectl taint nodes node-001 maintenance-mode=:NoExecute-

   affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: production
              operator: In
              values:
              - "true"
    tolerations:
    - key: "maintanance-node"
      operator: "Exists"
      effect: "NoSchedule"
    - key: "maintanance-node"
      operator: "Exists"
      effect: "NoExecute"
en/jobs/garbage.1578493093.txt.gz · Last modified: 2020/01/08 17:18 by admin
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki