Skip to content

Commit

Permalink
chore: update charm libraries (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <[email protected]>
  • Loading branch information
observability-noctua-bot and Github Actions authored Feb 1, 2023
1 parent afb95bc commit 4c8a3be
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/charms/grafana_k8s/v0/grafana_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __init__(self, *args):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 23
LIBPATCH = 24

logger = logging.getLogger(__name__)

Expand All @@ -235,9 +235,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": "Juju model",
"multi": False,
"multi": True,
"name": "juju_model",
"query": {
"query": "label_values(up,juju_model)",
Expand All @@ -260,9 +260,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": "Juju model uuid",
"multi": False,
"multi": True,
"name": "juju_model_uuid",
"query": {
"query": 'label_values(up{juju_model="$juju_model"},juju_model_uuid)',
Expand All @@ -285,9 +285,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": "Juju application",
"multi": False,
"multi": True,
"name": "juju_application",
"query": {
"query": 'label_values(up{juju_model="$juju_model",juju_model_uuid="$juju_model_uuid"},juju_application)',
Expand All @@ -310,9 +310,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": "Juju unit",
"multi": False,
"multi": True,
"name": "juju_unit",
"query": {
"query": 'label_values(up{juju_model="$juju_model",juju_model_uuid="$juju_model_uuid",juju_application="$juju_application"},juju_unit)',
Expand All @@ -335,9 +335,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": None,
"multi": False,
"multi": True,
"name": "prometheusds",
"options": [],
"query": "prometheus",
Expand All @@ -350,9 +350,9 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": None,
"multi": False,
"multi": True,
"name": "lokids",
"options": [],
"query": "loki",
Expand All @@ -370,7 +370,7 @@ def __init__(self, *args):
"description": None,
"error": None,
"hide": 0,
"includeAll": False,
"includeAll": True,
"label": "hosts",
"multi": True,
"name": "host",
Expand Down Expand Up @@ -622,7 +622,6 @@ def _replace_template_fields( # noqa: C901
# Find panels nested under rows
rows = dict_content.get("rows", {})
if rows:

for row_idx, row in enumerate(rows):
if "panels" in row.keys():
rows[row_idx]["panels"] = _template_panels(
Expand Down Expand Up @@ -1786,6 +1785,7 @@ def _handle_reactive_dashboards(self, event: RelationEvent) -> Optional[Dict]:
builtins = self._maybe_get_builtin_dashboards(event)

if not templates and not builtins:
logger.warning("NOTHING!")
return {}

dashboards = {}
Expand Down

0 comments on commit 4c8a3be

Please sign in to comment.