---
title: Charmhub | Deploy Grafana using Charmhub - The Open Operator Collection
description: Deploy the latest version of Grafana on any cloud.
url: https://charmhub.io/grafana/actions
---

# Grafana

[Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")

* [Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")
* [Monitoring](https://charmhub.io/?filter=monitoring)

Platform:

20.04

18.04

16.04

stable 23.10

```
juju deploy grafana
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [change-user-role](https://charmhub.io/grafana/actions#change-user-role)
* [create-api-key](https://charmhub.io/grafana/actions#create-api-key)
* [create-user](https://charmhub.io/grafana/actions#create-user)
* [debug](https://charmhub.io/grafana/actions#debug)
* [delete-user](https://charmhub.io/grafana/actions#delete-user)
* [do-upgrade](https://charmhub.io/grafana/actions#do-upgrade)
* [get-admin-password](https://charmhub.io/grafana/actions#get-admin-password)
* [get-login-info](https://charmhub.io/grafana/actions#get-login-info)
* [import-dashboard](https://charmhub.io/grafana/actions#import-dashboard)
* [set-user-password](https://charmhub.io/grafana/actions#set-user-password)

[Learn about actions >](https://juju.is/docs/juju/action)

* change-user-role

  Set the role of the user

  Params

  + login
    string

    Login of user to change role for
  + new-role
    string

    New role to use, one of Viewer, Editor, Read Only Editor or Admin

  Required

  login,
  new-role
* create-api-key

  Create an api key given a keyname and a keyrole out of Viewer, Editor, Read Only Editor or Admin

  Params

  + keyname
    string

    Name of key to be created
  + keyrole
    string

    Role for key, one of Viewer, Editor, Read Only Editor or Admin

  Required

  keyname,
  keyrole
* create-user

  Create an user

  Params

  + email
    string

    Email of user to be created
  + login
    string

    Login of user to be created
  + name
    string

    Name of user to be created
  + password
    string

    Password of user to be created
  + role
    string

    role of user to be created, one of Viewer, Editor, Read Only Editor or Admin

  Required

  name,
  email,
  login,
  password,
  role
* debug

  Collect debug data
* delete-user

  Delete the user

  Params

  + login
    string

    Login of user to delete

  Required

  login
* do-upgrade

  Perform an upgrade
* get-admin-password

  Retrieves the admin password, either auto generated or set in config
* get-login-info

  Retrieves all of the info needed to log into Grafana.
* import-dashboard

  Imports dashboards to grafana. The dashboard argument contains base64
  encoded json dashboard. The location contains path on disk to
  a directory or file containing dashboards to be imported. This must
  exist on the unit runinng the action

  Params

  + dashboard
    string

    Contains the dashboard to be imported, in base64 encoded json format
  + location
    string

    Path to a file or directory containing dashboards to import.
* set-user-password

  Set the password for a user

  Params

  + login
    string

    Login of user to change password for
  + new-password
    string

    New password to use

  Required

  login,
  new-password
