prometheus: Add scheme to url

pull/157/head
Mike Lang 5 years ago
parent 6e067fab83
commit 3fabb2944f

@ -38,12 +38,13 @@ local services = [
scheme: scheme, scheme: scheme,
static_configs: [ static_configs: [
{ {
local url = hosts[host][0], local target = hosts[host][0],
local role = hosts[host][1], local role = hosts[host][1],
targets: [url], targets: [target],
labels: { labels: {
instance: host, instance: host,
url: url, target: target,
url: "%s://%s" % [scheme, target],
role: role, role: role,
service: service, service: service,
}, },

Loading…
Cancel
Save