Name: tendrl-monitoring-integration Version: 1.5.5 Release: 9920180216T113602.4a08664.pr342 BuildArch: noarch Summary: Module for Tendrl Monitoring Integration Source0: %{name}-%{version}.tar.gz Source1: vonage-status-panel.zip License: LGPLv2+ URL: https://github.com/Tendrl/monitoring-integration Requires: tendrl-commons Requires: grafana Requires: graphite-web Requires: python-carbon Requires: python-whisper Requires: python-requests Requires: python-setuptools Requires: python-urllib3 Requires: tendrl-grafana-plugins Requires: python-werkzeug BuildRequires: python-setuptools BuildRequires: systemd %description Python module for Tendrl to create a new dashboard in Grafana %package -n tendrl-grafana-plugins Summary: Vonage plugin for tendrl-graphana Requires: grafana License: ASL 2.0 %description -n tendrl-grafana-plugins The vonage status panel for grafana web server. %prep %setup unzip %SOURCE1 mv -f Vonage* Vonage-Grafana_Status_panel # Remove bundled egg-info rm -rf %{name}.egg-info %build %{__python} setup.py build # Support light mode better sed -i -e 's/green/rgb(1,167,1)/g' Vonage-Grafana_Status_panel/dist/css/status_panel.css # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %{__python} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES install -m 0755 --directory $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration install -m 0755 --directory $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/grafana install -m 0755 --directory $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/grafana/dashboards install -d %{buildroot}%{_localstatedir}/lib/grafana/plugins/ install -Dm 0644 firewalld/tendrl-monitoring-integration.xml $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/tendrl-monitoring-integration.xml install -Dm 0640 etc/tendrl/monitoring-integration/monitoring-integration.conf.yaml.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/monitoring-integration.conf.yaml install -Dm 0640 etc/grafana/grafana.ini $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/grafana/grafana.ini install -Dm 0644 tendrl-monitoring-integration.service $RPM_BUILD_ROOT%{_unitdir}/tendrl-monitoring-integration.service install -Dm 0644 etc/tendrl/monitoring-integration/graphite/graphite-web.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/graphite-web.conf install -Dm 0644 etc/tendrl/monitoring-integration/graphite/carbon.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/carbon.conf install -Dm 0644 etc/tendrl/monitoring-integration/graphite/storage-schemas.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/storage-schemas.conf cp -a etc/tendrl/monitoring-integration/grafana/dashboards/*.json $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/monitoring-integration/grafana/dashboards/ cp -r Vonage-Grafana_Status_panel %{buildroot}%{_localstatedir}/lib/grafana/plugins/ %post if [ $1 -eq 1 ] ; then mv /etc/carbon/carbon.conf /etc/carbon/carbon.conf.%{name} mv /etc/httpd/conf.d/graphite-web.conf /etc/httpd/conf.d/graphite-web.conf.%{name} mv /etc/carbon/storage-schemas.conf /etc/carbon/storage-schemas.conf.%{name} ln -s /etc/tendrl/monitoring-integration/carbon.conf /etc/carbon/carbon.conf ln -s /etc/tendrl/monitoring-integration/storage-schemas.conf /etc/carbon/storage-schemas.conf ln -s /etc/tendrl/monitoring-integration/graphite-web.conf /etc/httpd/conf.d/graphite-web.conf chgrp grafana /etc/tendrl/monitoring-integration/grafana/grafana.ini fi systemctl enable tendrl-monitoring-integration >/dev/null 2>&1 || : %systemd_post tendrl-monitoring-integration.service firewall-cmd --reload >/dev/null 2>&1 || : %preun if [ "$1" = 0 ] ; then rm -fr etc/carbon/carbon.conf /etc/httpd/conf.d/graphite-web.conf /etc/carbon/storage-schemas.conf > /dev/null 2>&1 mv /etc/carbon/carbon.conf.%{name} /etc/carbon/carbon.conf mv /etc/httpd/conf.d/graphite-web.conf.%{name} /etc/httpd/conf.d/graphite-web.conf mv /etc/carbon/storage-schemas.conf.%{name} /etc/carbon/storage-schemas.conf fi %systemd_preun tendrl-monitoring-integration.service %postun firewall-cmd --reload >/dev/null 2>&1 || : %check py.test -v tendrl/monitoring_integration/tests || : %files -n tendrl-grafana-plugins %{_localstatedir}/lib/grafana/plugins/Vonage-Grafana_Status_panel %files -f INSTALLED_FILES %dir %{_sysconfdir}/tendrl/monitoring-integration %doc README.rst %license LICENSE %config(noreplace) %{_prefix}/lib/firewalld/services/tendrl-monitoring-integration.xml %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/grafana/dashboards/* %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/monitoring-integration.conf.yaml %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/graphite-web.conf %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/carbon.conf %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/storage-schemas.conf %config(noreplace) %{_sysconfdir}/tendrl/monitoring-integration/grafana/grafana.ini %attr(-, root, grafana) %{_sysconfdir}/tendrl/monitoring-integration/grafana/grafana.ini %{_unitdir}/tendrl-monitoring-integration.service %changelog * Fri Feb 02 2018 Rohan Kanade - 1.5.5-1 - Fix conflicting gluster "cliutils" python module * Sat Dec 09 2017 Rohan Kanade - 1.5.4-11 - Bugfixes * Thu Dec 07 2017 Rohan Kanade - 1.5.4-10 - Bugfixes * Tue Dec 05 2017 Rohan Kanade - 1.5.4-9 - Bugfixes * Thu Nov 30 2017 Rohan Kanade - 1.5.4-8 - Bugfixes * Mon Nov 27 2017 Rohan Kanade - 1.5.4-7 - Bugfixes * Fri Nov 24 2017 Rohan Kanade - 1.5.4-6 - Fix for etcd raft errors * Fri Nov 24 2017 Rohan Kanade - 1.5.4-5 - Bugfixes * Tue Nov 21 2017 Rohan Kanade - 1.5.4-4 - Bugfixes-3 tendrl-monitoring-integration 1.5.4 * Sat Nov 18 2017 Rohan Kanade - 1.5.4-3 - Bugfixes-2 tendrl-monitoring-integration 1.5.4 * Fri Nov 10 2017 Rohan Kanade - 1.5.4-2 - Bugfixes tendrl-monitoring-integration 1.5.4 * Thu Nov 02 2017 Rohan Kanade - 1.5.4-1 - Release tendrl-monitoring-integration 1.5.4 * Fri Oct 13 2017 Rohan Kanade - 1.5.3-2 - BugFixes for tendrl-monitoring-integration 1.5.3 * Thu Oct 12 2017 Rohan Kanade - 1.5.3-1 - Release tendrl-monitoring-integration 1.5.3 * Fri Sep 15 2017 Rohan Kanade - 1.5.2-1 - Release tendrl-monitoring-integration 1.5.2 * Fri Aug 25 2017 Timothy Asir Jeyasingh - 1.5.1-1 - Release tendrl-monitoring-integration 1.5.1 * Wed Aug 02 2017 Timothy Asir Jeyasingh - 0.0.1-1 - Initial build.