Skip to content

Instantly share code, notes, and snippets.

- name: alert.rules
rules:
- alert: HAproxyMysqlClusterHTTPResponse5xx
expr: >-
rate(haproxy_http_response_5xx{sv="FRONTEND",proxy="mysql_cluster"}[1m]) > 1
for: 2m
labels:
route: "email,salesforce"
severity: "warning"
service: "haproxy/{{ $labels.proxy }}"
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | Traceback (most recent call last):
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | File "/app/pushkin-extensions/pushkin_extensions/sender.py", line 138, in _send_notification
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | response = notif.send() or {}
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | File "/app/pushkin-extensions/pushkin_extensions/handlers/smtp.py", line 59, in send
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | from_address = self.options["smtp_from"]
pushkin_pushkin-api.1.fqw0obkxdtee@dvtcosmon01 | KeyError: 'smtp_from'
Traceback (most recent call last):
File "/usr/local/bin/pushkin", line 11, in <module>
load_entry_point('pushkin==0.1.6.1', 'console_scripts', 'pushkin')()
File "/app/pushkin/pushkin/pushkin_cli.py", line 131, in main
run()
File "/app/pushkin/pushkin/pushkin_cli.py", line 111, in run
init()
File "/app/pushkin/pushkin/pushkin_cli.py", line 41, in init
context.request_processor = RequestProcessor()
File "/app/pushkin/pushkin/request/request_processor.py", line 27, in __init__
Rendering SLS 'base:salt.minion.grains' failed: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'docker'
/var/cache/salt/minion/files/base/opencontrail/map.jinja(327):
---
[...]
['contrail-webui', 'contrail-webui-middleware']
{%- endif %}
database:
engine: cassandra
port: 9160
{%- if pillar.docker.client.compose.opencontrail_api.service.controller.name is defined %} <======================
openstack_api_check_status{service="keystone-public-api"} 1
openstack_api_check_status{region="RegionOne",service="aodh"} 1
openstack_api_check_status{region="RegionOne",service="ceilometer"} 1
openstack_api_check_status{region="RegionOne",service="cinder"} 1
openstack_api_check_status{region="RegionOne",service="cinderv2"} 1
openstack_api_check_status{region="RegionOne",service="cinderv3"} 1
openstack_api_check_status{region="RegionOne",service="glance"} 1
openstack_api_check_status{region="RegionOne",service="glare"} 0
openstack_api_check_status{region="RegionOne",service="heat"} 1
openstack_api_check_status{region="RegionOne",service="heat-cfn"} 1
root@81efe4759361:/# ruby /opt/keystonebkp
/var/lib/gems/2.1.0/gems/excon-0.58.0/lib/excon/middlewares/expects.rb:7:in `response_call': Expected([200]) <=> Actual(404 Not Found) (Fog::Identity::OpenStack::NotFound)
excon.error.response
:body => "{\"error\": {\"message\": \"The resource could not be found.\", \"code\": 404, \"title\": \"Not Found\"}}"
:cookies => [
]
:headers => {
"Connection" => "close"
"Content-Length" => "93"
"Content-Type" => "application/json"
service:
----------
cleanup-service-api:
----------
deploy:
----------
replicas:
1
restart_policy:
----------
0xd2f142936Cf147CB76AB7Ce47Ee27956158B61f0
modules:
http_200:
prober: http
timeout: 5s
http:
valid_status_codes: [200]
preferred_ip_protocol: ip4
ssh:
prober: tcp
timeout: 5s
root@aio1-prometheus-container-1ce4332a:~# /usr/bin/prometheus -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/var/lib/prometheus/data -alertmanager.url http://aio1_alertmanager_container-63376c45:9093,http://aio1_alertmanager_container-639c8482:9093,http://aio1_alertmanager_container-10c18cc4:9093 -web.console.templates=/etc/prometheus/consoles -web.console.libraries=/etc/prometheus/console_libraries
ERRO[0000] invalid Alertmanager URL: http://aio1_alertmanager_container-63376c45:9093 source=main.go:75
After changing '_' in alertmanager.url to '-'
root@aio1-prometheus-container-1ce4332a:~# /usr/bin/prometheus -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/var/lib/prometheus/data -alertmanager.url http://aio1-alertmanager-container-63376c45:9093,http://aio1-alertmanager-container-639c8482:9093,http://aio1-alertmanager-container-10c18cc4:9093 -web.console.templates=/etc/prometheus/consoles -web.console.libraries=/etc/prometheus/console_libraries
INFO[0000] Starting promet