Merge bootstack-ops:chrome0-add-prom into bootstack-ops:master

Proposed by Peter Sabaini
Status: Merged
Approved by: James Hebden
Approved revision: 0a8aeab38ec443261addb4788d3dc179b114f107
Merged at revision: 55955155195113b8cf28d14d45d9a622147165a8
Proposed branch: bootstack-ops:chrome0-add-prom
Merge into: bootstack-ops:master
Diff against target: 84 lines (+47/-0)
5 files modified
.gitignore (+1/-0)
ops-bundle/production/juju_bundle_export.py (+1/-0)
ops-bundle/production/juju_bundle_export.sh (+1/-0)
ops-bundle/production/opsdeploy-prometheus.yaml (+37/-0)
ops-bundle/production/prometheus.codetree (+7/-0)
Reviewer Review Type Date Requested Status
JuanJo Ciarlante (community) Approve
Review via email: mp+320211@code.launchpad.net

Description of the change

Add a minimal production stage for the opsbundle

To post a comment you must log in.
Revision history for this message
JuanJo Ciarlante (jjo) wrote :

LGTM, tnx -- later will see the commonality between devel/ and production/
then move them to parent directory (it's also in mojo search path),
also move common/* scripts.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.gitignore b/.gitignore
2index 7b12c6a..198fe80 100644
3--- a/.gitignore
4+++ b/.gitignore
5@@ -3,6 +3,7 @@ tmp/
6 *.pyc
7 .DS_Store
8 *.swo
9+*~
10
11 # Setuptools distribution folder.
12 /dist/
13diff --git a/ops-bundle/production/juju_bundle_export.py b/ops-bundle/production/juju_bundle_export.py
14new file mode 120000
15index 0000000..4210522
16--- /dev/null
17+++ b/ops-bundle/production/juju_bundle_export.py
18@@ -0,0 +1 @@
19+../common/juju_bundle_export.py
20\ No newline at end of file
21diff --git a/ops-bundle/production/juju_bundle_export.sh b/ops-bundle/production/juju_bundle_export.sh
22new file mode 120000
23index 0000000..627c615
24--- /dev/null
25+++ b/ops-bundle/production/juju_bundle_export.sh
26@@ -0,0 +1 @@
27+../common/juju_bundle_export.sh
28\ No newline at end of file
29diff --git a/ops-bundle/production/opsdeploy-prometheus.yaml b/ops-bundle/production/opsdeploy-prometheus.yaml
30new file mode 100644
31index 0000000..f9fd133
32--- /dev/null
33+++ b/ops-bundle/production/opsdeploy-prometheus.yaml
34@@ -0,0 +1,37 @@
35+#_config: &PROMSTACK_TO 0
36+_config: &PROMSTACK_TO "infra=0"
37+nil:
38+ inherits: bsdeploy
39+ services: {}
40+
41+ops-bundle-prometheus:
42+ inherits: [ secrets, bsdeploy ]
43+ series: xenial
44+ overrides:
45+ snap_proxy: "http://10.76.12.1:8000"
46+ services:
47+ # snap -> needs to be at metal or juju2 lxd
48+ prometheus:
49+ charm: prometheus
50+ to: *PROMSTACK_TO
51+ options:
52+ # non snap -> could be LXC'd
53+ grafana:
54+ charm: grafana
55+ to: *PROMSTACK_TO
56+ options:
57+ install_file: https://grafanarel.s3.amazonaws.com/builds/grafana_4.1.2-1486989747_amd64.deb
58+
59+ # subord -> will land on relation to ppal services (os-hosts or nova-compute, etc)
60+ telegraf:
61+ charm: telegraf
62+ options:
63+ hostname: '{unit}'
64+ prometheus_output_port: default
65+
66+ relations:
67+# Connect the grafana -> prometheus -> telegraf stack
68+ - ["prometheus:grafana-source", "grafana:grafana-source"]
69+ - ["telegraf:prometheus-client", "prometheus:target"]
70+# Deploy telegraf on : os-hosts xor nova-compute, etc
71+ - ["telegraf:juju-info", "os-hosts"]
72diff --git a/ops-bundle/production/prometheus.codetree b/ops-bundle/production/prometheus.codetree
73new file mode 100644
74index 0000000..cd999eb
75--- /dev/null
76+++ b/ops-bundle/production/prometheus.codetree
77@@ -0,0 +1,7 @@
78+# Reporting
79+prometheus git+https://git.launchpad.net/prometheus-charm
80+grafana git+https://git.launchpad.net/grafana-charm
81+#prometheus-alertmanager git+https://git.launchpad.net/prometheus-alertmanager-charm
82+telegraf git+https://git.launchpad.net/telegraf-charm
83+#prometheus-openstack-exporter cs:~jjo/prometheus-openstack-exporter
84+#prometheus-openstack-exporter git+https://git.launchpad.net/~jjo/bootstack-ops/+git/prometheus-openstack-exporter-charm

Subscribers

People subscribed via source and target branches

to all changes: