Browse Source

Cleaner json and less verbose logging

pull/7/head
Egon Rijpkema 5 years ago
parent
commit
603e0fd72c
  1. 15
      promtools/addport.py
  2. 2
      roles/prom_proxy/templates/promproxy.service

15
promtools/addport.py

@ -23,11 +23,12 @@ for node in data: @@ -23,11 +23,12 @@ for node in data:
targets.append(target)
with open(outfile, 'w') as handle:
handle.write(
json.dumps([{
"targets": targets,
"labels": {
"env": "peregrine",
"job": "node"
handle.write(json.dumps(
[{
"targets" : targets,
"labels": {
"env": "peregrine",
"job": "node"
}
}]))
}]
,indent=4 ))

2
roles/prom_proxy/templates/promproxy.service

@ -5,7 +5,7 @@ Description=prometheus PushProx @@ -5,7 +5,7 @@ Description=prometheus PushProx
TimeoutStartSec=0
Restart=always
ExecStart=/usr/local/prometheus/proxy \
--web.listen-address=0.0.0.0:6060
--web.listen-address=0.0.0.0:6060 --log.level=error
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save