Skip to content

Commit

Permalink
Collect WARN and INFO message counts too
Browse files Browse the repository at this point in the history
Improved tail/log capture of message counts. Collects on INFO/WARNING
messages in each service's log file(s) now. Dashboards account for all
three types of messages that are counted and use ConsolidateBy function
to prevent downsampling/lose of metrics over larger timespans.  Scale
is also used to scale the unit to "message count per 10s interval".

Change-Id: Ic75a2bcbadf138b146765e6e1a842e02c9859b40
  • Loading branch information
akrzos committed Jan 16, 2017
1 parent df01648 commit 29ba5fb
Show file tree
Hide file tree
Showing 7 changed files with 1,513 additions and 95 deletions.
7 changes: 7 additions & 0 deletions ansible/install/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ collectd_compute: false
gnocchi_status_python_plugin: false
gnocchi_status_interval: 30

########################
# tail plugin
########################
# Determines if WARN/INFO messages are also counted
regex_warn: false
regex_info: false

########################################
# Docker related
# (use these if deploying graphite/carbon/grafana as containers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,24 @@ PreCacheChain "PreCache"
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
Instance "error"
</Match>
{%if regex_warn %}
<Match>
Regex " WARNING "
DSType "CounterInc"
Type "counter"
Instance "warn"
</Match>
{% endif %}
{%if regex_info %}
<Match>
Regex " INFO "
DSType "CounterInc"
Type "counter"
Instance "info"
</Match>
{% endif %}
</File>

<File "/var/log/neutron/openvswitch-agent.log">
Expand All @@ -138,35 +154,100 @@ PreCacheChain "PreCache"
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
Instance "error"
</Match>
{%if regex_warn %}
<Match>
Regex " WARNING "
DSType "CounterInc"
Type "counter"
Instance "warn"
</Match>
{% endif %}
{%if regex_info %}
<Match>
Regex " INFO "
DSType "CounterInc"
Type "counter"
Instance "info"
</Match>
{% endif %}
</File>
<File "/var/log/neutron/l3-agent.log">
Instance "neutron-l3-agent"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
Instance "error"
</Match>
{%if regex_warn %}
<Match>
Regex " WARNING "
DSType "CounterInc"
Type "counter"
Instance "warn"
</Match>
{% endif %}
{%if regex_info %}
<Match>
Regex " INFO "
DSType "CounterInc"
Type "counter"
Instance "info"
</Match>
{% endif %}
</File>
<File "/var/log/neutron/metadata-agent.log">
Instance "neutron-metadata-agent"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
Instance "error"
</Match>
{%if regex_warn %}
<Match>
Regex " WARNING "
DSType "CounterInc"
Type "counter"
Instance "warn"
</Match>
{% endif %}
{%if regex_info %}
<Match>
Regex " INFO "
DSType "CounterInc"
Type "counter"
Instance "info"
</Match>
{% endif %}
</File>

<File "/var/log/ceilometer/compute.log">
Instance "ceilometer-compute"
<Match>
Regex " ERROR "
DSType "CounterInc"
Type "counter"
Instance "total"
Instance "error"
</Match>
{%if regex_warn %}
<Match>
Regex " WARNING "
DSType "CounterInc"
Type "counter"
Instance "warn"
</Match>
{% endif %}
{%if regex_info %}
<Match>
Regex " INFO "
DSType "CounterInc"
Type "counter"
Instance "info"
</Match>
{% endif %}
</File>
</Plugin>

Expand Down

0 comments on commit 29ba5fb

Please sign in to comment.