prometheus2
#8

Description

Prometheus is a systems and service monitoring system. It collects
metrics from configured targets at given intervals, evaluates rule
expressions, displays the results, and can trigger alerts if some
condition is observed to be true.
Due to signifidant database changes in version 2.0 this charm
supports prometheus 2.0 and later only

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

Configuration

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:

(boolean)
If set to true, a "juju_unit" label is added to metrics with the name of
the related juju unit. If the related unit is a subordinate, it should
set the "principal-unit" key on the relation, with the name of the unit
it's related to.

(string)
How often snapd handles updates for installed snaps. The default (an empty string) is 4x per day. Set to "max" to check once per month based on the charm deployment date. You may also set a custom string as described in the 'refresh.timer' section here:
https://forum.snapcraft.io/t/system-options/87

(string)
A string that will be prepended to instance name to set the host name
in nagios. So for instance the hostname would be something like:
juju-myservice-0
If you're running multiple environments with the same services in them
this allows you to differentiate between them.

(string)
The URL under which Prometheus is externally reachable (for example,
if Prometheus is served via a reverse proxy). Used for generating
relative and absolute links back to Prometheus itself. If the URL
has a path portion, it will be used to prefix all HTTP endpoints
served by Prometheus. If omitted, relevant URL components will be
derived automatically.
It's templatized to accept the following vars: {private_address},
{public_address}, {port}, thus you can use e.g.:
juju set prometheus external_url="http://{private_address}:{port}/"