Merge ~npochet/charm-grafana:fix-1827257 into ~prometheus-charmers/charm-grafana:master

Proposed by Nicolas Pochet
Status: Merged
Approved by: Peter Sabaini
Approved revision: cdf7cd5d299d664d801ce7d3524d1b477f6948dd
Merged at revision: 88eb87ae0916a7f421c631ef63ab4b208fb7ff24
Proposed branch: ~npochet/charm-grafana:fix-1827257
Merge into: ~prometheus-charmers/charm-grafana:master
Diff against target: 15 lines (+2/-2)
1 file modified
reactive/grafana.py (+2/-2)
Reviewer Review Type Date Requested Status
Peter Sabaini (community) Approve
Review via email: mp+366977@code.launchpad.net

Commit message

Make the `neutron_public_ip_usage` metric optional

Fixes LP:1827257

Description of the change

Make the `neutron_public_ip_usage` metric optional

Fixes LP:1827257

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Peter Sabaini (peter-sabaini) wrote :

Hey Nicolas,

thanks for the bug+patch. A style nit-- as in IS we have max-column limit of 120 chars by policy the additional wrapping is seems superfluous. Mind to update the patch for this?

review: Needs Fixing
Revision history for this message
Nicolas Pochet (npochet) wrote :

Hey Peter,

Sorry, autopep8 was enabled. I just reverted the change.
Thanks for the review!

Revision history for this message
Peter Sabaini (peter-sabaini) wrote :

LGTM, thanks

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 88eb87ae0916a7f421c631ef63ab4b208fb7ff24

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/reactive/grafana.py b/reactive/grafana.py
2index f98e11c..7d1c422 100644
3--- a/reactive/grafana.py
4+++ b/reactive/grafana.py
5@@ -522,8 +522,8 @@ def generate_prometheus_dashboards(gf_adminpasswd, ds):
6 ignore_metrics = ['by_cloud_status', 'group_left', 'count_values',
7 'nova_service_status', 'hypervisor_hostname', 'external_network',
8 'ip_type', 'instance_state', 'network_name', 'subnet_name',
9- 'ip_status', 'neutron_net', config['external_network']
10- ]
11+ 'ip_status', 'neutron_net', config['external_network'],
12+ 'neutron_public_ip_usage']
13 prom_metrics.extend(ignore_metrics)
14 for filename in os.listdir(templates_dir):
15 dashboard_str = render(source=filename,

Subscribers

People subscribed via source and target branches