created docker-prometheus compose file and edited the Prometheus yml file

This commit is contained in:
Brian Christner
2015-08-18 14:36:46 +02:00
parent 4b9b5b70e3
commit bf34f627cf
664 changed files with 150581 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
scrape_timeout: 10s
scrape_configs:
- job_name: 'kubernetes'
kubernetes_sd_configs:
- server: 'https://kubernetes.default.svc'
in_cluster: true
relabel_configs:
- source_labels: [__meta_kubernetes_node, __meta_kubernetes_service_annotation_prometheus_io_scrape]
action: keep
regex: ^(?:.+;|;true)$
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
action: replace
target_label: __scheme__
regex: ^(https?)$
replacement: $1
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: ^(.+)$
replacement: $1
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
action: replace
target_label: __address__
regex: ^(.+)(?::\d+);(\d+)$
replacement: $1:$2

View File

@ -0,0 +1,30 @@
# my global config
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
# scrape_timeout is set to the global default (10s).
# Attach these extra labels to all timeseries collected by this Prometheus instance.
labels:
monitor: 'codelab-monitor'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
# - "first.rules"
# - "second.rules"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_timeout: 10s
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
target_groups:
- targets: ['localhost:9090','prom_exporter:9104','prom_dash:3000']

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1 @@
<mxfile userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.19 Safari/537.36" type="device"><diagram>7VxZb+JOEv80eQQZOzjwmIvZvzQrRYpWu/s0auwG945x8/eRYz79VNtVvtocwW2S2QQesPtyU8evji64cG43L99itg3+KX0eXtiW/3Lh3F3Ytj21LPhQLa9Fy+wKG9ax8IumSdXwKH5xbKRhmfB50hiYShmmYtts9GQUcS9ttK1k2HzElq1p+arh0WOh3vpv4acBbtl2q/Z/cLEO6DETd170JOkrreHzFcvCdJQ3QZ/q3jBaK/9Wzj1QLJYSllFXm5dbHiqqEUGKr77Y0VtuMuYRbmT/BHtazHhiYYabvLDdEObe+OIJLtfqkpqWcbsFVu4Y9zX1a2r/qREABoimEt5ch1MmIg5zWkr1HIiUP26Zp+6fAWlgapBuQribwOVKhOGtDGWcj3YWi4V9ewvtSRrLn7zWc+3OrJsZ9MQyi3yuFETN97L4Kb+x4GYdM1+AatWm3U3vZ3eX6huyJChnSdiPSBWuTRGs6jqJavrE45QjGuZNqKPfuNzwNH6FIdg7IshDpAR4Ke6fKyiaXOKYoAZDtoUoxBAS1+XaFSrABQLDDlS50kCCbbcKbVm85umbWNxDhNqtveSgZFsHS2/m99b1dL8kaOJjWfM5GbR+vHaIucjsyRXSv85selSd2S629eL1TOO1Fyr6QFsoljHD5QxoYAflF4v76XzeoLwi9n7KLxY3U/Ic+lHenjcpb1s65WcdhHdMEF63xF9KNqCSWUjvUsk6EHUwJUOn8XMq2axJedvSKT+UkqHP3eHtMvW0mK/yVvfvTDngQN9UhRLXuQuyWIs0yJZjT27gZhurpwc8S1o3NJdU6KHeRyoGTzuosYPtKOHAaAUHO3dzAASSgG3VJX/Jty6zZd6jxHBQKT2MDyil0BMwXz7nc3qILEkoBlENbKC2uoheoXz1EVFnGBGFODZONyyCMFWxvhQJMi/1NX8sQxb91AWntUaH+JwTs84uDZS3aP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/yxRSc5lJqBmXERw+a+/Oo5pVkBN22UbpWrRMlEfNCrZMjWtEhZKh8HpDB+RbEI6zZqMVRKynS0DfdsGIlrXsmXFkieW/PbdD4vUKXce3799V++cD6hc45a4Hw2D+zIFB2BQ0yjCkf4ZhJE1dpwZImCZczaTUhg5zRCAbo2mFKb7z9rMQGrTI8nx9cNB6mn5S9sirjQKz83wv4W+V8iqAdBXzysp3FVwU4DOk+DP6rdKQNWlZLH//qdOe12pXUcRO10pFMBj4QMZYSIBWQkQBfpmDqzot01mwUJPhJk5scqSYM1S/qxy8W2z1+z8pHV32u8iHCqOOnRyZcTvRoM25MnVnoi2NCZviWhPLAAgEX+bGZi6Fs6rk/6tZ89Hs0P/mUrigaArf1ktJrx3x+cO0EQZMuJzWa6FvKODNTMWl5JGuCql+IyCKB0JHle59u4/WEwCUO96je1XYWwnHtMPO85RGOt2ZbC+CmM/7E/puoRjqMJYd8CArrPKpIzuOgorj6tAOcZUk8ifZKsb+jeQUabC+JpOKs/1I5tkEhUjJtl2KYKmvLARk0zJ+jKuGcIiD18B23RvDXm3Lbk/qey4+t+NPUVac3Q4G3HFUHqkn/h/TOf2aK1pKV0ubPtKkoja5IQa0SNifpmjNJBMhNvqz1qK4dV/3Tj3vwE=</diagram></mxfile>

View File

@ -0,0 +1,7 @@
The architecture image was drawn on https://www.draw.io/. The native draw.io
source file is called `architecture.xml`, while `architecture.svg` is its SVG
export.
To change the architecture diagram, go to https://www.draw.io/ and import the
XML source file. After making changes to the diagram, export the result as SVG.
Update both the source file and the SVG export in this directory.