diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/ansible/roles/config_files/templates/rdt.conf.j2 | 2 | ||||
-rw-r--r-- | docker/barometer-dma/Dockerfile | 25 | ||||
-rw-r--r-- | docker/barometer-grafana/dashboards/intel_rdt_dashboard.json | 6 |
3 files changed, 31 insertions, 2 deletions
diff --git a/docker/ansible/roles/config_files/templates/rdt.conf.j2 b/docker/ansible/roles/config_files/templates/rdt.conf.j2 index 814c23ca..0e1afcfc 100644 --- a/docker/ansible/roles/config_files/templates/rdt.conf.j2 +++ b/docker/ansible/roles/config_files/templates/rdt.conf.j2 @@ -13,7 +13,7 @@ # limitations under the License. <LoadPlugin intel_rdt> - Interval "{{ rdt_interval }}" + Interval {{ rdt_interval }} </LoadPlugin> <Plugin intel_rdt> diff --git a/docker/barometer-dma/Dockerfile b/docker/barometer-dma/Dockerfile new file mode 100644 index 00000000..afe7c3f3 --- /dev/null +++ b/docker/barometer-dma/Dockerfile @@ -0,0 +1,25 @@ +FROM centos:7 + +# install prerequisites +RUN yum update -y &&\ + yum install -y which sudo git libvirt-devel && \ + rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO && \ + curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee /etc/yum.repos.d/go-repo.repo && \ + yum install -y golang + +# set environment variables +# need to change when we move to barometer +ENV DOCKER y +ENV repos_dir /root/go/src/github.com/distributed-monitoring/agent + +# copy repo code and +# COPY . ${repos_dir} +WORKDIR ${repos_dir} +RUN git clone https://gerrit.opnfv.org/gerrit/barometer && \ + mv barometer/src/dma/* ./ +RUN go build ./cmd/server && \ + go build ./cmd/threshold && \ + go build ./cmd/infofetch + +RUN cp server threshold infofetch / +WORKDIR / diff --git a/docker/barometer-grafana/dashboards/intel_rdt_dashboard.json b/docker/barometer-grafana/dashboards/intel_rdt_dashboard.json index 49efec7a..38baa2f7 100644 --- a/docker/barometer-grafana/dashboards/intel_rdt_dashboard.json +++ b/docker/barometer-grafana/dashboards/intel_rdt_dashboard.json @@ -33,6 +33,7 @@ "datasource": "collectd",
"fill": 1,
"id": 1,
+ "interval": "1s", "legend": {
"alignAsTable": true,
"avg": true,
@@ -171,6 +172,7 @@ "datasource": "collectd",
"fill": 1,
"id": 2,
+ "interval": "1s", "legend": {
"alignAsTable": true,
"avg": true,
@@ -309,6 +311,7 @@ "datasource": "collectd",
"fill": 1,
"id": 3,
+ "interval": "1s", "legend": {
"alignAsTable": true,
"avg": true,
@@ -441,6 +444,7 @@ "datasource": "collectd",
"fill": 1,
"id": 4,
+ "interval": "1s", "legend": {
"alignAsTable": true,
"avg": true,
@@ -484,7 +488,7 @@ },
{
"params": [
- "none"
+ "null" ],
"type": "fill"
}
|