Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7126B200B81 for ; Tue, 30 Aug 2016 07:05:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6F874160AB8; Tue, 30 Aug 2016 05:05:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 68D85160AC8 for ; Tue, 30 Aug 2016 07:05:03 +0200 (CEST) Received: (qmail 84367 invoked by uid 500); 30 Aug 2016 05:05:02 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 84327 invoked by uid 99); 30 Aug 2016 05:05:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 05:05:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E7C4E1A028C for ; Tue, 30 Aug 2016 05:05:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BFiXEKJcOq-G for ; Tue, 30 Aug 2016 05:04:58 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2A5765F2F2 for ; Tue, 30 Aug 2016 05:04:57 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id c15so11689281oig.0 for ; Mon, 29 Aug 2016 22:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ChZnUqgv7x6Wg59fjZPpyFPqirH4jT+4NekrIPIPkBs=; b=Yc5BRuZc+Omkllwqs8VdeMJ3yigE9Lfxo25F6Uvlbtt3X2qk3PAAvdkJtJ6Wyai9GR KsCEtSydjzcTdRC/MjXL8U+LGuoN/TI4tyqk+/I+Fhi88IXput6LTxc4SuLhsed1Fsht Fu5fnkMXptdYPWb90gkgDRI9z8efkJEtgOQytSD6/CPEr1CrBeWKmOvtCQvJALG9GFZ7 2AHgs4NRBML/m3vOPF9E/jzu/CbYf9/N5Ou7pkLcHkQ5FWenhzgT/WQAZ5bke4Fy7Lro B972dt5fwAO+cnDm+pmKjVx/8Yu72ctCiv7Cl/zI5fNWMOhBuo7zeQDwYfOKrLAyemm9 DGYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ChZnUqgv7x6Wg59fjZPpyFPqirH4jT+4NekrIPIPkBs=; b=lqiKvQAe517L6wKo/ZRrJ0sgELROUtZqfpcFcH+guNNnOqx6h4CnBVX/uI+O3nvNR1 3wXni95FQZKoNLIe9pit+joSQn/W9IjlBXFwzLmt5jG6pRJhsdRZiF8hYTwGFsISa7/P +R8pbGqCJlCzFBBMLzOd/VmWH3MYCX327CeAsthTGa2TpNqbEKWBydEf4zr6LeTAva9n TkwBfbIIbaqCpXWQzqosBWF/84p4VGmPK9HwCvNA/CWbMTMb+6ffTwXKAi+y81f9GrPe FePkKK6c6kgpvVWb5Hyz1zvry5bXsxn0JmcKJyTWe4XM5t32d+uix5bgwJlV23UstuEA eiAA== X-Gm-Message-State: AE9vXwOQI0po/e0dhfujufzg900dhli2bg9lIvNRVNOedH2LiHeN2RaASQf5hywEou3lv+UDWnh5h6mImCcowg== X-Received: by 10.202.175.87 with SMTP id y84mr1769933oie.170.1472533495787; Mon, 29 Aug 2016 22:04:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.7.39 with HTTP; Mon, 29 Aug 2016 22:04:55 -0700 (PDT) In-Reply-To: <9D4A2EB4-7169-4F91-92BF-97F1226757DB@hortonworks.com> References: <9D4A2EB4-7169-4F91-92BF-97F1226757DB@hortonworks.com> From: Gunnar Tapper Date: Mon, 29 Aug 2016 23:04:55 -0600 Message-ID: Subject: Re: Grafana using Ambari as Data Source To: user@ambari.apache.org Content-Type: multipart/alternative; boundary=001a113ce638efb5ee053b42ebd2 archived-at: Tue, 30 Aug 2016 05:05:04 -0000 --001a113ce638efb5ee053b42ebd2 Content-Type: text/plain; charset=UTF-8 Hi Aravindan, I cannot find ambari-metrics/ambari-metrics-grafana/ambari-metrics on the host where the Ambari server is residing: sudo find . | grep ambari-metrics-grafana | grep -v sessions | grep -v public | grep -v yum ./usr/sbin/ambari-metrics-grafana ./usr/lib/ambari-metrics-grafana ./usr/lib/ambari-metrics-grafana/conf ./usr/lib/ambari-metrics-grafana/conf/defaults.ini ./usr/lib/ambari-metrics-grafana/conf/sample.ini ./usr/lib/ambari-metrics-grafana/bin ./usr/lib/ambari-metrics-grafana/bin/grafana-server.md5 ./usr/lib/ambari-metrics-grafana/bin/grafana-server ./usr/lib/ambari-metrics-grafana/NOTICE.md ./usr/lib/ambari-metrics-grafana/LICENSE.md ./usr/lib/ambari-metrics-grafana/vendor ./usr/lib/ambari-metrics-grafana/vendor/phantomjs ./usr/lib/ambari-metrics-grafana/vendor/phantomjs/phantomjs ./usr/lib/ambari-metrics-grafana/vendor/phantomjs/render.js ./usr/lib/ambari-metrics-grafana/README.md ./var/run/ambari-metrics-grafana ./var/run/ambari-metrics-grafana/grafana-server.pid ./var/log/ambari-metrics-grafana ./var/log/ambari-metrics-grafana/grafana.log ./var/log/ambari-metrics-grafana/grafana.log.2016-08-28.001 ./var/log/ambari-metrics-grafana/grafana.out ./var/log/ambari-metrics-grafana/grafana.log.2016-08-25.001 ./var/log/ambari-metrics-grafana/grafana.log.2016-08-29.001 ./var/log/ambari-metrics-grafana/grafana.log.2016-08-26.001 ./var/log/ambari-metrics-grafana/xorm.log ./var/log/ambari-metrics-grafana/grafana.log.2016-08-27.001 ./var/lib/ambari-metrics-grafana ./var/lib/ambari-metrics-grafana/grafana.db ./etc/ambari-metrics-grafana ./etc/ambari-metrics-grafana/conf ./etc/ambari-metrics-grafana/conf/ams-grafana-env.sh ./etc/ambari-metrics-grafana/conf/ams-grafana.ini Gunnar On Fri, Aug 26, 2016 at 3:54 PM, Aravindan Vijayan wrote: > Hi Gunnar, > > As of now, the grafana plugin that ships with Ambari is configured to talk > to *Ambari Metrics Service (AMS)* only. It is the AMS REST server > (METRICS COLLECTOR) that runs on port 6188. You can add AMS to Ambari if > you do not have it already. > > You can execute the following from the top level "ambari" directory in > ambari git repository. > > *cp -R ambari-metrics/ambari-metrics-grafana/ambari-metrics > /usr/share/grafana/public/app/plugins/datasource * > > Once the above copying is done, on restart of Grafana, it will have the > plugin to talk to an AMS end point. The AMS end point for configuring the > new datasource will be the :6188 , and datasource > type will be AmbariMetrics. > > -- > Thanks and Regards, > Aravindan Vijayan > > From: Gunnar Tapper > Reply-To: "user@ambari.apache.org" > Date: Friday, August 26, 2016 at 10:50 AM > To: "user@ambari.apache.org" > Subject: Grafana using Ambari as Data Source > > Hi, > > I'm trying to build an application dashboard in Grafana. Some of the data > I need is available in Ambari so I'd like to use Ambari as a data source > based on the information in: https://github.com/apache/ > ambari/tree/trunk/ambari-metrics/ambari-metrics-grafana > > > Unfortunately, the information does not seem quite correct. For example, > this command doesn't show the correct root directory and I cannot find > ambari-metrics-grafana/ambari-metrics. > > cp -R ambari/ambari-metrics/ambari-metrics-grafana/ambari-metrics /usr/share/grafana/public/app/plugins/datasource > > I'm running Ambari Version 2.2.2.0. > > I can see the Ambari metrics in Main.org but fail to create a new Ambari > data source using port 6188 against the same URL that the Ambari UI is > using even though AmbariMetrics is a viable data source. Error: "Internal > Server Error." > > What am I missing? > > -- > Thanks, > > Gunnar > *If you think you can you can, if you think you can't you're right.* > -- Thanks, Gunnar *If you think you can you can, if you think you can't you're right.* --001a113ce638efb5ee053b42ebd2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Aravindan,

I cannot find ambari-metr= ics/ambari-metrics-grafana/ambari-metrics on the host where the Ambari serv= er is residing:

sudo find . | grep ambari-metrics-grafana | gre= p -v sessions | grep -v public | grep -v yum
./usr/sbin/ambari-me= trics-grafana
./usr/lib/ambari-metrics-grafana
./usr/li= b/ambari-metrics-grafana/conf
./usr/lib/ambari-metrics-grafana/co= nf/defaults.ini
./usr/lib/ambari-metrics-grafana/conf/sample.ini<= /div>
./usr/lib/ambari-metrics-grafana/bin
./usr/lib/ambari-m= etrics-grafana/bin/grafana-server.md5
./usr/lib/ambari-metrics-gr= afana/bin/grafana-server
./usr/lib/ambari-metrics-grafana/NOTICE.= md
./usr/lib/ambari-metrics-grafana/LICENSE.md
./usr/li= b/ambari-metrics-grafana/vendor
./usr/lib/ambari-metrics-grafana/= vendor/phantomjs
./usr/lib/ambari-metrics-grafana/vendor/phantomj= s/phantomjs
./usr/lib/ambari-metrics-grafana/vendor/phantomjs/ren= der.js
./usr/lib/ambari-metrics-grafana/README.md
./var= /run/ambari-metrics-grafana
./var/run/ambari-metrics-grafana/graf= ana-server.pid
./var/log/ambari-metrics-grafana
./var/l= og/ambari-metrics-grafana/grafana.log
./var/log/ambari-metrics-gr= afana/grafana.log.2016-08-28.001
./var/log/ambari-metrics-grafana= /grafana.out
./var/log/ambari-metrics-grafana/grafana.log.2016-08= -25.001
./var/log/ambari-metrics-grafana/grafana.log.2016-08-29.0= 01
./var/log/ambari-metrics-grafana/grafana.log.2016-08-26.001
./var/log/ambari-metrics-grafana/xorm.log
./var/log/ambar= i-metrics-grafana/grafana.log.2016-08-27.001
./var/lib/ambari-met= rics-grafana
./var/lib/ambari-metrics-grafana/grafana.db
./etc/ambari-metrics-grafana
./etc/ambari-metrics-grafana/conf<= /div>
./etc/ambari-metrics-grafana/conf/ams-grafana-env.sh
./= etc/ambari-metrics-grafana/conf/ams-grafana.ini

<= div>Gunnar

On Fri, Aug 26, 2016 at 3:54 PM, Aravindan Vijayan &= lt;avijayan@h= ortonworks.com> wrote:
Hi Gunnar,

As of now, the grafana plugin that ships with Ambari is configured to = talk to Ambari Metrics Service (AMS) only. It is the AMS REST server (METRIC= S COLLECTOR) that runs on port 6188. You can add AMS to Ambari if you do no= t have it already.=C2=A0

You can execute the following from the top level "ambari" di= rectory in ambari git repo= sitory.=C2=A0

cp -R ambari-metrics/ambari-me= trics-grafana/ambari-metrics /usr/share/grafana/public/app/plugins/datasourc= e

Once the above copying is done, on restart of Grafana, it will have th= e plugin to talk to an AMS end point. The AMS end point for configuring the= new datasource will be the <METRICS_COLLECTOR_HOST>:6188 , and datas= ource type will be AmbariMetrics.=C2=A0

--=C2=A0
Thanks and Regards,
Aravindan Vijayan

From: Gunnar Tapper
Reply-To: "user@ambari.apache.org" Date: Friday, August 26, 2016 at 10= :50 AM
To: "user@ambari.apache.org"
Subject: Grafana using Ambari as Da= ta Source

Hi,

I'm trying to build an application dash= board in Grafana. Some of the data I need is available in Ambari so I'd= like to use Ambari as a data source based on the information in:=C2=A0https://github.com/apache/ambari/tree= /trunk/ambari-metrics/ambari-metrics-grafana


Unfortunately, the information does not see= m quite correct. For example, this command doesn't show the correct roo= t directory and I cannot find ambari-metrics-grafana/ambari-metrics.
cp -R ambari/ambari-metrics/ambari-m<=
wbr>etrics-grafana/ambari-metrics /usr/share/grafana/public/app/plugin=
s/datasource
I'm running Ambari=C2=A0Version=C2=A02.2.2.0.

I can see the Ambari metrics in Main.org but fail to create a new Amba= ri data source using port 6188 against the same URL that the Ambari UI is u= sing even though AmbariMetrics is a viable data source. Error: "Intern= al Server Error."

What am I missing?

--
Thanks,

Gunnar
If you think you can you can, if you think you can't you're= right.



--
Thanks,

Gunnar
If you think you can you can, if you think you = can't you're right.
--001a113ce638efb5ee053b42ebd2--