Merge ~mthaddon/charm-k8s-unifi-poller/+git/charm-k8s-unifi-poller:usage-readme into charm-k8s-unifi-poller:master

Proposed by Tom Haddon
Status: Merged
Approved by: Tom Haddon
Approved revision: ef37142662713647d469bde986abfc7dbae3661f
Merged at revision: f9ba43511ba563c4652b1ad89989c92663415a75
Proposed branch: ~mthaddon/charm-k8s-unifi-poller/+git/charm-k8s-unifi-poller:usage-readme
Merge into: charm-k8s-unifi-poller:master
Diff against target: 76 lines (+31/-27)
1 file modified
README.md (+31/-27)
Reviewer Review Type Date Requested Status
Gareth Woolridge Approve
Canonical IS Reviewers Pending
Review via email: mp+395077@code.launchpad.net

Commit message

Update README to favour deployment from the charmstore with default image

Description of the change

Update README to favour deployment from the charmstore with default image

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Gareth Woolridge (moon127) wrote :

LGTM

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision f9ba43511ba563c4652b1ad89989c92663415a75

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/README.md b/README.md
index e42a63b..15fc889 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,37 @@ See [Unifi Poller github page](https://github.com/unifi-poller/unifi-poller) and
1010
11## Usage11## Usage
1212
13For config options see descriptions in config.yaml.13To deploy into a k8s model:
14
15 juju deploy cs:~unifi-poller-charmers/unifi-poller
16
17The charm will not function without connection details for a Unifi Network Controller. You will need to create a read-only admin user on the controller with access to all sites by following [prerequisite steps from the wiki](https://github.com/unifi-poller/unifi-poller/wiki/Installation#prerequisites), then:
18
19 juju config unifi_poller controller_url="https://<ip_address>:8443"
20 juju config unifi_poller controller_username=unifipoller
21 juju config unifi_poller controller_password=unifipoller
22
23Optionally we can also enable DPI (Deep Packet Inspection) data collection from the Controller. To utilise this there must be at least one site using a Unifi Security Gateway product such as the USG or UDM devices or their Pro variants, and such a site must also have DPI enabled in site configuration, then:
24
25 juju config unifi_poller controller_dpi=true
26
27Configuring the controller URL, and credentials is sufficient config to configure polling and to enable the prometheus endpoint on http://<pod/cluster_IP>:9130/metrics
28
29To expose that endpoint outside the k8s cluster via the ingress e.g.:
30
31 juju config unifi-poller juju-external-hostname="unifi-poller.example.domain"
32 juju expose unifi-poller
33
34This will expose the service via the kubernetes nginx ingress via a virtual host, e.g. http://unifi-poller.example.com/metrics
35
36The charm optionally supports an externally deployed InfluxDB instance which may be preferred for longer term data storage. This could be deployed outside the cluster in a suitable juju model using juju deploy cs:influxdb. The Unifi Poller charm supports authentication to the InfluxDB instance, if required:
37
38 juju config unifi-poller influxdb_url="https://<ip_address>:8086"
39 juju config unifi-poller influxdb_dbname=unifi
40 juju config unifi-poller influxdb_username=unifipoller
41 juju config unifi=poller influxdb_password=unifipoller
42
43## Local Development
1444
15Notes for deploying a test setup locally using microk8s:45Notes for deploying a test setup locally using microk8s:
1646
@@ -39,32 +69,6 @@ Notes for deploying a test setup locally using microk8s:
39 juju wait69 juju wait
40 juju status70 juju status
4171
42The charm will not function without connection details for a Unifi Network Controller. You will need to create a read-only admin user on the controller with access to all sites by following [prerequisite steps from the wiki](https://github.com/unifi-poller/unifi-poller/wiki/Installation#prerequisites), then:
43
44 juju config unifi_poller controller_url="https://<ip_address>:8443"
45 juju config unifi_poller controller_username=unifipoller
46 juju config unifi_poller controller_password=unifipoller
47
48Optionally we can also enable DPI (Deep Packet Inspection) data collection from the Controller. To utilise this there must be at least one site using a Unifi Security Gateway product such as the USG or UDM devices or their Pro variants, and such a site must also have DPI enabled in site configuration, then:
49
50 juju config unifi_poller controller_dpi=true
51
52Configuring the controller URL, and credentials is sufficient config to configure polling and to enable the prometheus endpoint on http://<pod/cluster_IP>:9130/metrics
53
54To expose that endpoint outside the k8s cluster via the ingress eg:
55
56 juju config unifi-poller juju-external-hostname="unifi-poller.example.domain"
57 juju expose unifi-poller
58
59This will expose the service via the kubernetes nginx ingress via a virtual host, eg http://unifi-poller.example.com/metrics
60
61The charm optionally supports an externally deployed InfluxDB instance which may be preferred for longer term data storage. This could be deployed outside the cluster in a suitable juju model using juju deploy cs:influxdb. The Unifi Poller charm supports authentication to the InfluxDB instance, if required:
62
63 juju config unifi-poller influxdb_url="https://<ip_address>:8086"
64 juju config unifi-poller influxdb_dbname=unifi
65 juju config unifi-poller influxdb_username=unifipoller
66 juju config unifi=poller influxdb_password=unifipoller
67
68### Additional Controllers / Config Options72### Additional Controllers / Config Options
6973
70The Unifi Poller charm supports configuring additional controllers and additional options, which can be added via the extra_configs charm option.74The Unifi Poller charm supports configuring additional controllers and additional options, which can be added via the extra_configs charm option.

Subscribers

People subscribed via source and target branches