Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Add 'query' metricset for prometheus module #15177

Closed
wants to merge 4 commits into from
Closed

[Metricbeat] Add 'query' metricset for prometheus module #15177

wants to merge 4 commits into from

Commits on Mar 18, 2020

  1. [Metricbeat] Add 'query' metricset for prometheus module

    estherk0 authored and Esther Kim committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    69b12d4 View commit details
    Browse the repository at this point in the history
  2. refactor the output structure for Prometheus query API

    * Remove array from response body.  Original response body has an array (Vector type). It makes difficult
    to query with Elasticsearch QL.
    New data schema:
      "prometheus": {
        "query": {
          "mem_usage": {
            "status": "success",
            "data": {
              "resultType": "vector",
              "result": [
                {
                  "metric": {},
                  "reconciledValue": {
                    "unixtimestamp": 1.576751116531e+09,
                    "value": "2947656593408"
                  }
                }
              ]
            }
          }
        }
      }
    estherk0 authored and Esther Kim committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    8ac6f6c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66284f9 View commit details
    Browse the repository at this point in the history
  4. [Metricbeat] convert numeric string to integer/float type

    * Prometheus API returns "string" type for query result. But actual
    result type is a number.
    * Make it easy to use ES SQL
    estherk0 authored and Esther Kim committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    b939211 View commit details
    Browse the repository at this point in the history