Prometheus Charmers Prometheus2

juju deploy prometheus-charmers-prometheus2
Show information
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Channel Version Revision Published Runs on
latest/stable 16 16 19 Mar 2021
Ubuntu 20.04 Ubuntu 18.04 Ubuntu 16.04
latest/candidate 14 14 19 Mar 2021
Ubuntu 18.04 Ubuntu 16.04
latest/beta 14 14 19 Mar 2021
Ubuntu 18.04 Ubuntu 16.04
latest/edge 14 14 19 Mar 2021
Ubuntu 18.04 Ubuntu 16.04


16.04 18.04 20.04


Monitoring system and timeseries database. v2.0 and later only Read more

Relevant links

Discuss this charm

Share your thoughts on this charm with the community on discourse.

Join the discussion


The prometheus2 charm will no longer be maintained by prometheus-charmers. If you have this charm installed without a publisher (i.e. "cs:prometheus2") you do not need to do anything. The charm will automatically update to the new maintainer. If you are referencing "~prometheus-charmers/prometheus2" you will need to update to the new maintainer: "~llama-charmers/prometheus2" (

Juju prometheus2 charm

This charm provides the Prometheus monitoring system from

It supports version 2.0 and later. If you want to deploy prometheus 1.x please use cs:prometheus charm.

Optionally the charm will install the Prometheus Registration daemon alongside Prometheus to aid in the registration of targets.

The charm can be related to the following charms to extend functionality:

  • grafana
  • prometheus-alertmanager
  • prometheus-pushgateway
  • prometheus-snmp-exporter
  • prometheus-blackbox-exporter
  • telegraf
  • mtail


The charm is designed to work out of the box without need to set any configuration options. Please refer to config.yaml for detailed help on support settings. Below is a list of the most common options:

  • daemon-args - add extra CLI arguments, for example --storage.tsdb.retention=21d
  • scrape-jobs - allows for custom scrape jobs to be configured
  • snap_proxy - web proxy address to use when accessing the snap store
  • external_url
  • scrape-interval
  • evaluation-interval
  • remote-read/remote-write - configure read/write to remote datastore endpoints

Juju storage support

The charm supports juju storage (requires juju 1.25 or later). For example to deploy with local filesystem run:

juju deploy local:trusty/prometheus2 --storage metrics-filesystem=rootfs prometheus2

Juju resources support

The charm support juju resources, which is handy in offline deployments. Prefetch the snaps:

snap download --channel=stable core
snap download --channel=2/stable prometheus

Provide downloaded snaps as resources to the application:

juju deploy cs:prometheus2 --resource core=core_6818.snap --resource prometheus=prometheus_20.snap