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
diff --git a/.gitignore b/.gitignore
index 7b12c6a..198fe80 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@ tmp/
3*.pyc3*.pyc
4.DS_Store4.DS_Store
5*.swo5*.swo
6*~
67
7# Setuptools distribution folder.8# Setuptools distribution folder.
8/dist/9/dist/
diff --git a/ops-bundle/production/juju_bundle_export.py b/ops-bundle/production/juju_bundle_export.py
9new file mode 12000010new file mode 120000
index 0000000..4210522
--- /dev/null
+++ b/ops-bundle/production/juju_bundle_export.py
@@ -0,0 +1 @@
1../common/juju_bundle_export.py
0\ No newline at end of file2\ No newline at end of file
diff --git a/ops-bundle/production/juju_bundle_export.sh b/ops-bundle/production/juju_bundle_export.sh
1new file mode 1200003new file mode 120000
index 0000000..627c615
--- /dev/null
+++ b/ops-bundle/production/juju_bundle_export.sh
@@ -0,0 +1 @@
1../common/juju_bundle_export.sh
0\ No newline at end of file2\ No newline at end of file
diff --git a/ops-bundle/production/opsdeploy-prometheus.yaml b/ops-bundle/production/opsdeploy-prometheus.yaml
1new file mode 1006443new file mode 100644
index 0000000..f9fd133
--- /dev/null
+++ b/ops-bundle/production/opsdeploy-prometheus.yaml
@@ -0,0 +1,37 @@
1#_config: &PROMSTACK_TO 0
2_config: &PROMSTACK_TO "infra=0"
3nil:
4 inherits: bsdeploy
5 services: {}
6
7ops-bundle-prometheus:
8 inherits: [ secrets, bsdeploy ]
9 series: xenial
10 overrides:
11 snap_proxy: "http://10.76.12.1:8000"
12 services:
13 # snap -> needs to be at metal or juju2 lxd
14 prometheus:
15 charm: prometheus
16 to: *PROMSTACK_TO
17 options:
18 # non snap -> could be LXC'd
19 grafana:
20 charm: grafana
21 to: *PROMSTACK_TO
22 options:
23 install_file: https://grafanarel.s3.amazonaws.com/builds/grafana_4.1.2-1486989747_amd64.deb
24
25 # subord -> will land on relation to ppal services (os-hosts or nova-compute, etc)
26 telegraf:
27 charm: telegraf
28 options:
29 hostname: '{unit}'
30 prometheus_output_port: default
31
32 relations:
33# Connect the grafana -> prometheus -> telegraf stack
34 - ["prometheus:grafana-source", "grafana:grafana-source"]
35 - ["telegraf:prometheus-client", "prometheus:target"]
36# Deploy telegraf on : os-hosts xor nova-compute, etc
37 - ["telegraf:juju-info", "os-hosts"]
diff --git a/ops-bundle/production/prometheus.codetree b/ops-bundle/production/prometheus.codetree
0new file mode 10064438new file mode 100644
index 0000000..cd999eb
--- /dev/null
+++ b/ops-bundle/production/prometheus.codetree
@@ -0,0 +1,7 @@
1# Reporting
2prometheus git+https://git.launchpad.net/prometheus-charm
3grafana git+https://git.launchpad.net/grafana-charm
4#prometheus-alertmanager git+https://git.launchpad.net/prometheus-alertmanager-charm
5telegraf git+https://git.launchpad.net/telegraf-charm
6#prometheus-openstack-exporter cs:~jjo/prometheus-openstack-exporter
7#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: