Created
September 6, 2017 00:23
-
-
Save Smithx10/ab1a56712b7dca71ab5b6e98b0a5766e to your computer and use it in GitHub Desktop.
prom-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
evaluation_interval: 15s | |
external_labels: | |
monitor: prometheus-monitor | |
scrape_configs: | |
- job_name: marathon | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
metrics_path: /metrics | |
scheme: http | |
marathon_sd_configs: | |
- servers: | |
- http://dcos-master-001.inst.smith.tritonhost.com:8080 | |
timeout: 30s | |
refresh_interval: 30s | |
relabel_configs: | |
- source_labels: [__meta_marathon_app] | |
separator: ; | |
regex: (.*) | |
target_label: marathon_app | |
replacement: $1 | |
action: replace | |
- source_labels: [__meta_marathon_task] | |
separator: ; | |
regex: ([^.]+?)[.].* | |
target_label: app_name | |
replacement: ${1} | |
action: replace | |
- source_labels: [__meta_marathon_app_label_PROMETHEUS] | |
separator: ; | |
regex: "1" | |
replacement: $1 | |
action: keep | |
- source_labels: [__meta_marathon_port_definition_label_PROMETHEUS_SKIP] | |
separator: ; | |
regex: "1" | |
replacement: $1 | |
action: drop | |
- source_labels: [__meta_marathon_port_mapping_label_PROMETHEUS_SKIP] | |
separator: ; | |
regex: "1" | |
replacement: $1 | |
action: drop | |
- source_labels: [__meta_marathon_port_definition_label_METRICS_PATH, __meta_marathon_port_mapping_label_METRICS_PATH] | |
separator: ; | |
regex: (.*) | |
target_label: __metrics_path__ | |
replacement: ${1} | |
action: replace | |
- job_name: tachyon-nsqd | |
scrape_interval: 5s | |
scrape_timeout: 5s | |
metrics_path: /metrics | |
scheme: http | |
static_configs: | |
- targets: | |
- tachyon-nsqd0.inst.smith.tritonhost.com:9117 | |
- job_name: mesos | |
scrape_interval: 5s | |
scrape_timeout: 5s | |
metrics_path: /metrics | |
scheme: http | |
static_configs: | |
- targets: | |
- dcos-master-001.inst.smith.tritonhost.com:9105 | |
- dcos-agent-priv-001.inst.smith.tritonhost.com:9105 | |
- dcos-agent-priv-002.inst.smith.tritonhost.com:9105 | |
- dcos-agent-pub-001.inst.smith.tritonhost.com:9105 | |
- job_name: elasticsearch | |
scrape_interval: 5s | |
scrape_timeout: 5s | |
metrics_path: /_prometheus/metrics | |
scheme: http | |
consul_sd_configs: | |
- server: elk-consul.svc.smith.tritonhost.com:8500 | |
tag_separator: ',' | |
scheme: http | |
services: | |
- metrics | |
basic_auth: | |
username: elastic | |
password: <secret> | |
- job_name: containerpilot | |
scrape_interval: 5s | |
scrape_timeout: 5s | |
metrics_path: /metrics | |
scheme: http | |
consul_sd_configs: | |
- server: localhost:8500 | |
tag_separator: ',' | |
scheme: http | |
services: | |
- containerpilot | |
- job_name: prometheus | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
metrics_path: /metrics | |
scheme: http | |
static_configs: | |
- targets: | |
- localhost:9090 | |
- job_name: triton | |
scrape_interval: 15s | |
scrape_timeout: 10s | |
metrics_path: /metrics | |
scheme: https | |
triton_sd_configs: | |
- account: 6d222c74-1663-4219-db05-a48a98d3e56d | |
dns_suffix: cmon.external.tritonhost.com | |
endpoint: cmon.external.tritonhost.com | |
port: 9163 | |
refresh_interval: 1m | |
tls_config: | |
ca_file: /root/.triton/ca.pem | |
cert_file: /root/.triton/cert.pem | |
key_file: /root/.triton/key.pem | |
insecure_skip_verify: true | |
version: 1 | |
tls_config: | |
ca_file: /root/.triton/ca.pem | |
cert_file: /root/.triton/cert.pem | |
key_file: /root/.triton/key.pem | |
insecure_skip_verify: true | |
relabel_configs: | |
- source_labels: [__meta_triton_machine_alias] | |
separator: ; | |
regex: (.*) | |
target_label: instance | |
replacement: $1 | |
action: replace | |
remote_write: | |
- url: http://tachyon-dalmadb0.inst.smith.tritonhost.com:9001/receive | |
remote_timeout: 30s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment