Merge "Add remote_write"
This commit is contained in:
commit
f4755dfd02
5 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
applications:
|
applications:
|
||||||
- alertmanager
|
- prometheus
|
||||||
parameters:
|
parameters:
|
||||||
prometheus:
|
prometheus:
|
||||||
alertmanager:
|
alertmanager:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
applications:
|
applications:
|
||||||
- pushgateway
|
- prometheus
|
||||||
parameters:
|
parameters:
|
||||||
prometheus:
|
prometheus:
|
||||||
pushgateway:
|
pushgateway:
|
||||||
|
|
9
metadata/service/remote_storage_adapter/container.yml
Normal file
9
metadata/service/remote_storage_adapter/container.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
applications:
|
||||||
|
- prometheus
|
||||||
|
parameters:
|
||||||
|
prometheus:
|
||||||
|
remote_storage_adapter:
|
||||||
|
enabled: true
|
||||||
|
bind:
|
||||||
|
address: 0.0.0.0
|
||||||
|
port: 9201
|
|
@ -24,6 +24,16 @@ alerting:
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
{%- if server.get('config', {}).get('remote_write') %}
|
||||||
|
remote_write:
|
||||||
|
{%- for name, remote_endpoint in server.config.remote_write.iteritems() %}
|
||||||
|
{%- if remote_endpoint.get('enabled', True) %}
|
||||||
|
# {{ name }}
|
||||||
|
- url: {{ remote_endpoint.url }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
rule_files:
|
rule_files:
|
||||||
- alerts.yml
|
- alerts.yml
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,10 @@ prometheus:
|
||||||
evaluation_interval: "1m"
|
evaluation_interval: "1m"
|
||||||
external_labels:
|
external_labels:
|
||||||
region: 'region1'
|
region: 'region1'
|
||||||
|
remote_write:
|
||||||
|
remote_storage_adapter:
|
||||||
|
enabled: true
|
||||||
|
url: http://127.0.0.1:9201/write
|
||||||
alertmanager:
|
alertmanager:
|
||||||
docker_swarm_alertmanager:
|
docker_swarm_alertmanager:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in a new issue