Re: Prometheus exporter state

Emanuele Faranda <[email protected]> Fri, 26 Apr 2019 19:31:14 +0200
Newsgroups gmane.linux.ntop.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4167593876622574087==
Content-Type: multipart/alternative;
	boundary="------------1DB1679C49B9BAE9AF26C4F9"
Content-Language: en-US-large

This is a multi-part message in MIME format.
--------------1DB1679C49B9BAE9AF26C4F9
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Yes, the Prometheus support is what you see. Only InfluxDB has become 
part of ntopng as a generic timeseries storage. Please feel free to 
provide pull requests if you improve it.

Regards,

Emanuele

On 4/26/19 4:59 PM, Bogdan Rudas wrote:
> Hi!
>
> What is current state of Prometheus expoter in ntopng ? I read that 
> https://github.com/ntop/ntopng/blob/dev/doc/README.prometheus and see 
> that it is beta. After very quick test I've opened 
> 127.0.0.1:3000/metrics <http://127.0.0.1:3000/metrics> and see only 
> snmp-like counters
>
> ifaces {metric="stats.devices", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 2 1556290600000
> ifaces {metric="stats.bytes", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 159055347712 1556290600000
> ifaces {metric="stats.packets", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 358612992 1556290600000
> ifaces {metric="stats.hosts", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 16 1556290600000
> ifaces {metric="stats.flows", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 9 1556290600000
> ifaces {metric="L7.SSL.bytes.sent", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 2216689664 1556290600000
> ifaces {metric="AS.0.bytes.rcvd", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 22479372288 1556290600000
> ifaces {metric="AS.XXXXX.bytes.sent", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 137203023872 1556290600000
> ifaces {metric="AS.XXXXX.bytes.rcvd", ifname="tcp://127.0.0.1:5556 
> <http://127.0.0.1:5556>"} 81708187648 1556290600000
>
> Is it all what is ready for Prometheus at the moment or we need some 
> extra configuration to see flow data?
> We can see data from nprobe in ntop web ui so this part seems to work.
>
> Thank you.
>
> -- 
> Bogdan Rudas
> Director of IT Europe
> Exadel Inc.
> http://www.exadel.com/
> E-mail: [email protected] <mailto:[email protected]>
> Skype ID: bogdan.rudas
>
> CONFIDENTIALITY NOTICE: This email and files attached to it are 
> confidential. If you are not the intended recipient you are hereby 
> notified that using, copying, distributing or taking any action in 
> reliance on the contents of this information is strictly prohibited. 
> If you have received this email in error please notify the sender and 
> delete this email.
>
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop

--------------1DB1679C49B9BAE9AF26C4F9
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    <p>Yes, the Prometheus support is what you see. Only InfluxDB has
      become part of ntopng as a generic timeseries storage. Please feel
      free to provide pull requests if you improve it.</p>
    <p>Regards,</p>
    <p>Emanuele<br>
    </p>
    <div class="moz-cite-prefix">On 4/26/19 4:59 PM, Bogdan Rudas wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAO+XWgk1LDrdwRegC=BvdoWQLxpL8Vhcc8nMDwWzOdjUjrA00g@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div>Hi!</div>
            <div><br>
            </div>
            <div>What is current state of Prometheus expoter in ntopng ?
              I read that <a
                href="https://github.com/ntop/ntopng/blob/dev/doc/README.prometheus"
                target="_blank" moz-do-not-send="true">https://github.com/ntop/ntopng/blob/dev/doc/README.prometheus</a>
              and see that it is beta. After very quick test I've opened
              <a href="http://127.0.0.1:3000/metrics" target="_blank"
                moz-do-not-send="true">127.0.0.1:3000/metrics</a> and
              see only snmp-like counters <br>
            </div>
            <div><br>
            </div>
            <div>ifaces {metric="stats.devices", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              2 1556290600000<br>
              ifaces {metric="stats.bytes", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              159055347712 1556290600000<br>
              ifaces {metric="stats.packets", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              358612992 1556290600000<br>
              ifaces {metric="stats.hosts", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              16 1556290600000<br>
              ifaces {metric="stats.flows", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              9 1556290600000<br>
              ifaces {metric="L7.SSL.bytes.sent", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              2216689664 1556290600000<br>
              ifaces {metric="AS.0.bytes.rcvd", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              22479372288 1556290600000<br>
              ifaces {metric="AS.XXXXX.bytes.sent", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              137203023872 1556290600000<br>
              ifaces {metric="AS.XXXXX.bytes.rcvd", ifname="tcp://<a
                href="http://127.0.0.1:5556" moz-do-not-send="true">127.0.0.1:5556</a>"}
              81708187648 1556290600000<br>
            </div>
            <div><br>
            </div>
            <div>Is it all what is ready for Prometheus at the moment or
              we need some extra configuration to see flow data?</div>
            <div>We can see data from nprobe in ntop web ui so this part
              seems to work.</div>
            <div><br>
            </div>
            <div>Thank you.<br>
            </div>
            <div><br>
              -- <br>
              <div dir="ltr"
                class="gmail-m_-2341566439033896431gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">Bogdan Rudas<br>
                                  Director of IT <span>Europe</span><br>
                                  Exadel Inc.<br>
                                  <a href="http://www.exadel.com/"
                                    target="_blank"
                                    moz-do-not-send="true">http://www.exadel.com/</a><br>
                                  E-mail: <a
                                    href="mailto:[email protected]"
                                    target="_blank"
                                    moz-do-not-send="true">[email protected]</a><br>
                                  Skype ID: bogdan.rudas</div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div>
        <p><span>CONFIDENTIALITY
            NOTICE: This email and files attached to it are
            confidential. If you
            are not the intended recipient you are hereby notified that
            using,
            copying, distributing or taking any action in reliance on
            the contents of this information is strictly prohibited. If
            you have
            received this email in error please notify the sender and
            delete this
            email.</span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Ntop mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="http://listgateway.unipi.it/mailman/listinfo/ntop">http://listgateway.unipi.it/mailman/listinfo/ntop</a></pre>
    </blockquote>
  </body>
</html>

--------------1DB1679C49B9BAE9AF26C4F9--

--===============4167593876622574087==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop
--===============4167593876622574087==--