Skip to content

Commit

Permalink
Use new connection configuration for metrics
Browse files Browse the repository at this point in the history
AMQP1Connections parameter should be used instead of nonflexible AMQP1Url.

Depends-On: infrawatch/smart-gateway#83
  • Loading branch information
paramite authored and Martin Magr committed Jun 26, 2020
1 parent f657e4e commit d966d01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/smartgateway/templates/metrics-configmap.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -6,7 +7,12 @@ metadata:
data:
"smartgateway_config.json": |
{
"AMQP1MetricURL": "{{ amqp_url | default('messaging-internal-' + meta.name + '.' + meta.namespace + '.svc:5672/collectd/telemetry') }}",
"AMQP1Connections": [
{
"URL": "{{ amqp_url | default('messaging-internal-' + meta.name + '.' + meta.namespace + '.svc:5672/collectd/telemetry') }}",
"DataSource": "{{ amqp_data_source | default('collectd') }}"
}
],
"Exporterhost": "{{ exporter_host | default('0.0.0.0') }}",
"Exporterport": {{ exporter_port | default(8081) }},
"CPUStats": {{ cpu_stats | default('false') | lower }},
Expand Down

0 comments on commit d966d01

Please sign in to comment.