metricsql | Standalone PromQL and MetricsQL parser | Parser library

 by   VictoriaMetrics Go Version: v0.56.1 License: Apache-2.0

kandi X-RAY | metricsql Summary

kandi X-RAY | metricsql Summary

metricsql is a Go library typically used in Utilities, Parser, Prometheus applications. metricsql has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Package metricsql implements MetricsQL and PromQL parser in Go.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              metricsql has a low active ecosystem.
              It has 137 star(s) with 24 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 1 have been closed. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of metricsql is v0.56.1

            kandi-Quality Quality

              metricsql has no bugs reported.

            kandi-Security Security

              metricsql has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              metricsql is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              metricsql releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed metricsql and discovered the below as its top functions. This is intended to give you an instant insight into metricsql implemented functionality, and help decide if they suit your requirements.
            • expandWithExpr expands an expression to a BinaryOpExpr .
            • simplifyConstants recursively simplifies the constant expressions .
            • binaryOpEvalNumber evaluates binary op .
            • scanPositiveNumber returns the value of a numeric number .
            • getMetricExprForOptimization returns the MetricExpr if possible .
            • expandModifierArgs expands args and returns a slice of args .
            • removeParensExpr removes all parens from e .
            • scanSingleDuration returns the number of milliseconds in s .
            • Optimize evaluates an Expr .
            • DurationValue parses s as a duration value .
            Get all kandi verified functions for this library.

            metricsql Key Features

            No Key Features are available at this moment for metricsql.

            metricsql Examples and Code Snippets

            No Code Snippets are available at this moment for metricsql.

            Community Discussions

            Trending Discussions on metricsql

            QUESTION

            Linear interpolation in PromQL or MetricsQL
            Asked 2020-Aug-11 at 16:19

            I am evaluating VictoriaMetrics for an IoT application where we sometimes have gaps in a series due to hardware or communication issues. In some time series reporting situations it is helpful for us to interpolate values for the missing time intervals. I see that MetricsQL (which extends PromQL) has a keep_last_value() function that will fill gaps by holding the last observed value until a new one appears (which will be helpful to us) but in some situations a linear interpolation between the values before and after the gap is a more realistic estimate for the missing portion. Is there a function in PromQL or MetricsQL that will do linear interpolation of missing data in a series, or is it possible to construct a more complex query that will achieve this?

            Clarifying the desired interpolation

            What I would like is a simple interpolation between the points immediately before and after the gap; this is, I believe, what TimescaleDB's interpolate() function does. In other words, if my time series is:

            ...

            ANSWER

            Answered 2020-Jul-08 at 22:21

            Final answer

            Use the interpolate function, now available in VictoriaMetrics starting from v1.38.0.

            Original suggestion

            This does not achieve the exact interpolation requested in the revised question, but may be useful for others with slightly different requirements

            Try combining predict_linear function with default operator from MetricsQL in the following way:

            Source https://stackoverflow.com/questions/62565021

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install metricsql

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/VictoriaMetrics/metricsql.git

          • CLI

            gh repo clone VictoriaMetrics/metricsql

          • sshUrl

            git@github.com:VictoriaMetrics/metricsql.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Parser Libraries

            marked

            by markedjs

            swc

            by swc-project

            es6tutorial

            by ruanyf

            PHP-Parser

            by nikic

            Try Top Libraries by VictoriaMetrics

            VictoriaMetrics

            by VictoriaMetricsGo

            fastcache

            by VictoriaMetricsGo

            metrics

            by VictoriaMetricsGo

            operator

            by VictoriaMetricsGo

            helm-charts

            by VictoriaMetricsPython