~sudeephb/charm-grafana:22.10

Last commit made on 2022-09-22
Get this branch:
git clone -b 22.10 https://git.launchpad.net/~sudeephb/charm-grafana
Only Sudeep Bhandari can upload to this branch. If you are Sudeep Bhandari please log in for upload directions.

Branch merges

Branch information

Name:
22.10
Repository:
lp:~sudeephb/charm-grafana

Recent commits

c855750... by Sudeep Bhandari

Applied suggestions

20b5a45... by Sudeep Bhandari

Added retries in some functional tests

9d6352f... by Sudeep Bhandari

Minor fixes in Readme and metadata.yaml

22ccaf7... by Mustafa Kemal Gilor

dashboards_backup script compatibility update for Grafana version >=8:

The dashboards_backup script was using Slug API for retrieving the
dashboards, which is deprecated in Grafana version '5.4.0' in favor
of UID API, and removed in version '8.0.0'. Due to that, the backup
script was failing to generate backups in version 8.0.0 and above.

This fix introduces an API switch mechanism between Slug API and
UID API, which allows the script to behave as before for Grafana
(< 8.0.0) and use UID API for Grafana version (>= 8.0.0).

Fixes LP issue #1983814

Reviewed-on: https://code.launchpad.net/~mustafakemalgilor/charm-grafana/+git/charm-grafana/+merge/428028
Reviewed-by: Giuseppe Petralia <email address hidden>
Reviewed-by: Robert Gildein <email address hidden>

705dbcf... by Mustafa Kemal Gilor

dashboard_backup compat update (2):

Added unit tests for dashboards_backup script, made linter & formatter happy

d27d80c... by Mustafa Kemal Gilor

dashboards_backup script compatibility update for grafana version >=8:

The dashboards_backup script was using Slug API for retrieving the
dashboards, which is deprecated in Grafana version '5.4.0' in favor
of UID API, and removed in version '8.0.0'. Due to that, the backup
script was failing to generate backups in version 8.0.0 and above.

This fix introduces an API switch mechanism between Slug API and
UID API, which allows script to behave as before for Grafana
(< 8.0.0) and use UID API for Grafana version (>= 8.0.0).

Fixes LP issue #1983814

29f5405... by Alvaro Uria

LP#1975622 LDAP config rendered non-string values with quotes

Reviewed-on: https://code.launchpad.net/~aluria/charm-grafana/+git/grafana-charm-1/+merge/423367
Reviewed-by: Peter Sabaini <email address hidden>

1c4d877... by Alvaro Uria

FIX: More than one FunctionalTestMarker dashboard

In order to test that upgraded telegraf charms propagate changes in the
dashboard templates to Grafana, the functional tests verify that a
single dashboard exists with the keyword "FunctionalTestMarker".
However, in recent changes, the template is now rendered twice (metrics
by application and metrics by host).

The assert on test_11_dashboard_upgrade now reflects "one or more"
instead of "one".

63062e9... by Alvaro Uria

LP#1975622 LDAP config rendered non-string values with quotes

692d0fc... by Xav Paice

Render ldap config owned by daemon user

    When installed as a snap, the LDAP config needs to be owned by root as
    the grafana user does not exist.

    Fixes-bug: LP: #1964725

Reviewed-on: https://code.launchpad.net/~xavpaice/charm-grafana/+git/grafana-charm/+merge/416778
Reviewed-by: James Troup <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>