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 D884D200D12 for ; Fri, 1 Sep 2017 19:14:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D539316D635; Fri, 1 Sep 2017 17:14:08 +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 24E6F16D636 for ; Fri, 1 Sep 2017 19:14:07 +0200 (CEST) Received: (qmail 33615 invoked by uid 500); 1 Sep 2017 17:14:07 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 33488 invoked by uid 99); 1 Sep 2017 17:14:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2017 17:14:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A9422C395B for ; Fri, 1 Sep 2017 17:14:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zFjqV1xbIOfi for ; Fri, 1 Sep 2017 17:14:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 54FFB60E11 for ; Fri, 1 Sep 2017 17:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9B7B4E02D6 for ; Fri, 1 Sep 2017 17:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 51F8D2414B for ; Fri, 1 Sep 2017 17:14:00 +0000 (UTC) Date: Fri, 1 Sep 2017 17:14:00 +0000 (UTC) From: "Yan Xu (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-6918) Prometheus exporter endpoints for metrics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Sep 2017 17:14:09 -0000 [ https://issues.apache.org/jira/browse/MESOS-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150848#comment-16150848 ] Yan Xu commented on MESOS-6918: ------------------------------- I think [~bmahler]'s questions (and mine below) suggest we need a (mini) design doc about the overarching methodology here. The summary of each review and the existing comments in this JIRA are not providing enough of a high level design so the justification for each patch is not clear enough. A few more questions: - I understand that complex Prometheus metric types such as {{summary}} require some more data than what is currently provided so we need to add them somewhere. But they should be added to Mesos' existing "core" metrics classes only if they are generic (backwards compatible) improvements that make sense regardless of the Prometheus support. I believe this is indeed your goal but we need to articulate how current timer/statistics modeling is lacking/wrong. -- There are some patches that remove history from simple metrics because it doesn't make sense. Should the history then be put in another base type that {{Counter}} and {{Gauge}} don't derive from? - After the above is done, is Prometheus merely a specific format? If that's the case, can we encapsulate the formatting logic into a formatter class/method instead of the main metric endpoint actor? > Prometheus exporter endpoints for metrics > ----------------------------------------- > > Key: MESOS-6918 > URL: https://issues.apache.org/jira/browse/MESOS-6918 > Project: Mesos > Issue Type: Bug > Components: statistics > Reporter: James Peach > Assignee: James Peach > > There are a couple of [Prometheus|https://prometheus.io] metrics exporters for Mesos, of varying quality. Since the Mesos stats system actually knows about statistics data types and semantics, and Mesos has reasonable HTTP support we could add Prometheus metrics endpoints to directly expose statistics in [Prometheus wire format|https://prometheus.io/docs/instrumenting/exposition_formats/], removing the need for operators to run separate exporter processes. -- This message was sent by Atlassian JIRA (v6.4.14#64029)