Add remote_write
Minor fix for application naming Change-Id: Ie725b43a5aa9967c31ef482429176bccc21d9f02
This commit is contained in:
parent
9eca63980e
commit
13f39f2ac1
5 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
applications:
|
||||
- alertmanager
|
||||
- prometheus
|
||||
parameters:
|
||||
prometheus:
|
||||
alertmanager:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
applications:
|
||||
- pushgateway
|
||||
- prometheus
|
||||
parameters:
|
||||
prometheus:
|
||||
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 %}
|
||||
{%- 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:
|
||||
- alerts.yml
|
||||
|
||||
|
|
|
@ -67,6 +67,10 @@ prometheus:
|
|||
evaluation_interval: "1m"
|
||||
external_labels:
|
||||
region: 'region1'
|
||||
remote_write:
|
||||
remote_storage_adapter:
|
||||
enabled: true
|
||||
url: http://127.0.0.1:9201/write
|
||||
alertmanager:
|
||||
docker_swarm_alertmanager:
|
||||
enabled: true
|
||||
|
|
Loading…
Reference in a new issue