Datadog syntax: Difference between revisions

From wikinotes
(Created page with " = Entering Queries = <blockquote> There is both a JSON query (all-text), and a UI-aided query. <syntaxhighlight lang="yaml"> Notebooks: - New Notebook: - </> # on the...")
 
Line 13: Line 13:
= Syntax =
= Syntax =
<blockquote>
<blockquote>
 
<syntaxhighlight lang="promql">
sum:my_metric{*}.as_count()  # sum counts per-sample of `my_metric`
</syntaxhighlight>
</blockquote><!-- Syntax -->
</blockquote><!-- Syntax -->

Revision as of 21:31, 5 May 2022

Entering Queries

There is both a JSON query (all-text), and a UI-aided query.

Notebooks:
  - New Notebook:
    - </>  # on the far right of the query, this toggles interactive "json-syntax" queries

Syntax

sum:my_metric{*}.as_count()  # sum counts per-sample of `my_metric`