feat: enable plugins for grafana
All checks were successful
Build / precommit (pull_request) Successful in 4m58s
All checks were successful
Build / precommit (pull_request) Successful in 4m58s
- add method to install plugins for grafana - ensure victoriametrics-logs-datasource is installed
This commit is contained in:
parent
ac36d9627b
commit
75629aeb5b
@ -11,6 +11,9 @@ profiles::metrics::grafana::db_name: "%{hiera('profiles::sql::postgresdb::dbname
|
|||||||
profiles::metrics::grafana::db_user: "%{hiera('profiles::sql::postgresdb::dbuser')}"
|
profiles::metrics::grafana::db_user: "%{hiera('profiles::sql::postgresdb::dbuser')}"
|
||||||
profiles::metrics::grafana::db_pass: "%{hiera('profiles::sql::postgresdb::dbpass')}"
|
profiles::metrics::grafana::db_pass: "%{hiera('profiles::sql::postgresdb::dbpass')}"
|
||||||
profiles::metrics::grafana::pgsql_backend: true
|
profiles::metrics::grafana::pgsql_backend: true
|
||||||
|
profiles::metrics::grafana::plugins:
|
||||||
|
victoriametrics-logs-datasource:
|
||||||
|
ensure: present
|
||||||
|
|
||||||
# additional altnames
|
# additional altnames
|
||||||
profiles::pki::vault::alt_names:
|
profiles::pki::vault::alt_names:
|
||||||
|
|||||||
@ -11,6 +11,7 @@ class profiles::metrics::grafana (
|
|||||||
String $db_pass = fqdn_rand_string(16),
|
String $db_pass = fqdn_rand_string(16),
|
||||||
Stdlib::Host $db_host = '127.0.0.1',
|
Stdlib::Host $db_host = '127.0.0.1',
|
||||||
Stdlib::Port $db_port = 5432,
|
Stdlib::Port $db_port = 5432,
|
||||||
|
Hash $plugins = {}
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# set the fqdn
|
# set the fqdn
|
||||||
@ -108,6 +109,7 @@ class profiles::metrics::grafana (
|
|||||||
class { 'grafana':
|
class { 'grafana':
|
||||||
cfg => $cfg,
|
cfg => $cfg,
|
||||||
ldap_cfg => $ldap_cfg,
|
ldap_cfg => $ldap_cfg,
|
||||||
|
plugins => $plugins,
|
||||||
}
|
}
|
||||||
|
|
||||||
# fix the package provided systemd service
|
# fix the package provided systemd service
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user