Le widget Distribution affiche des données agrégées en fonction d’un ou de plusieurs tags, tels que des hosts. Contrairement à la carte thermique, l’axe des abscisses d’un graphique de distribution représente une quantité plutôt qu’une durée.
Cette visualisation affiche une seule requête. Les requêtes supplémentaires sont ignorées.
Remarque : la détection des singularités n’est pas possible avec cette visualisation.
Choisissez les données à représenter. La visualisation Distribution prend en charge les métriques, les live processes, la latence des requêtes de lʼAPM, les événements de log et les événements du RUM.
Remarque : ce type de visualisation est uniquement utile lorsque les données sont agrégées en fonction de clés de tag, par exemple pour chaque host.
Utilisez les réglages « avg/max/min/sum by/ » pour visualiser vos données en fonction des tags associés.
Personnalisez votre graphique avec les options disponibles.
Les commandes des axes sont disponibles dans l’interface ainsi que dans l’éditeur JSON.
Elles vous permettent d’accomplir les actions suivantes :
Définir l’axe des abscisses et l’axe des ordonnées sur des intervalles spécifiques
Modifier automatiquement les limites de l’axe des abscisses en fonction d’un seuil basé sur un pourcentage ou sur une valeur absolue ; pour supprimer les singularités, ce seuil peut être appliqué aux deux extrémités du graphique (limite inférieure et limite supérieure), ou à une seule d’entre elles
Passer d’une échelle linéaire à une échelle logarithmique pour l’axe des ordonnées, et inversement
A coma separated-list of index names. Use "*" query all indexes at once. Multiple Indexes
multi_compute
[object]
This field is mutually exclusive with compute.
aggregation [required]
string
The aggregation method.
facet
string
Facet name.
interval
int64
Define a time interval in seconds.
search
object
The query being made on the logs.
query [required]
string
Search value to apply.
q
string
Widget query.
query
<oneOf>
Query definition for Distribution Widget Histogram Request
Option 1
object
A formula and functions metrics query.
aggregator
enum
The aggregation methods available for metrics queries.
Allowed enum values: avg,min,max,sum,last,area,l2norm,percentile
cross_org_uuids
[string]
The source organization UUID for cross organization queries. Feature in Private Beta.
data_source [required]
enum
Data source for metrics queries.
Allowed enum values: metrics
name [required]
string
Name of the query for use in formulas.
query [required]
string
Metrics query definition.
Option 2
object
A formula and functions events query.
compute [required]
object
Compute options.
aggregation [required]
enum
Aggregation methods for event platform queries.
Allowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg
interval
int64
A time interval in milliseconds.
metric
string
Measurable attribute to compute.
cross_org_uuids
[string]
The source organization UUID for cross organization queries. Feature in Private Beta.
data_source [required]
enum
Data source for event platform-based queries.
Allowed enum values: logs,spans,network,rum,security_signals,profiles,audit,events,ci_tests,ci_pipelines,incident_analytics
group_by
[object]
Group by options.
facet [required]
string
Event facet.
limit
int64
Number of groups to return.
sort
object
Options for sorting group by results.
aggregation [required]
enum
Aggregation methods for event platform queries.
Allowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg
metric
string
Metric used for sorting group by results.
order
enum
Direction of sort.
Allowed enum values: asc,desc
default: desc
indexes
[string]
An array of index names to query in the stream. Omit or use [] to query all indexes at once.
name [required]
string
Name of the query for use in formulas.
search
object
Search options.
query [required]
string
Events search string.
storage
string
Option for storage location. Feature in Private Beta.
Option 3
object
APM resource stats query using formulas and functions.
cross_org_uuids
[string]
The source organization UUID for cross organization queries. Feature in Private Beta.
data_source [required]
enum
Data source for APM resource stats queries.
Allowed enum values: apm_resource_stats
A coma separated-list of index names. Use "*" query all indexes at once. Multiple Indexes
multi_compute
[object]
This field is mutually exclusive with compute.
aggregation [required]
string
The aggregation method.
facet
string
Facet name.
interval
int64
Define a time interval in seconds.
search
object
The query being made on the logs.
query [required]
string
Search value to apply.
style
object
Widget style definition.
palette
string
Color palette to apply to the widget.
show_legend
boolean
DEPRECATED: (Deprecated) The widget legend was replaced by a tooltip and sidebar.
time
<oneOf>
Time setting for the widget.
Option 1
object
Wrapper for live span
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,week_to_date,month_to_date,1y,alert
Option 2
object
Used for arbitrary live span times, such as 17 minutes or 6 hours.
type [required]
enum
Type "live" denotes a live span in the new format.
Allowed enum values: live
unit [required]
enum
Unit of the time span.
Allowed enum values: minute,hour,day,week,month,year
value [required]
int64
Value of the time span.
Option 3
object
Used for fixed span times, such as 'March 1 to March 7'.
from [required]
int64
Start time in seconds since epoch.
to [required]
int64
End time in seconds since epoch.
type [required]
enum
Type "fixed" denotes a fixed span.
Allowed enum values: fixed
title
string
Title of the widget.
title_align
enum
How to align the text on the widget.
Allowed enum values: center,left,right
title_size
string
Size of the title.
type [required]
enum
Type of the distribution widget.
Allowed enum values: distribution
default: distribution
xaxis
object
X Axis controls for the distribution widget.
include_zero
boolean
True includes zero.
max
string
Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior.
default: auto
min
string
Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior.
default: auto
scale
string
Specifies the scale type. Possible values are linear.
default: linear
yaxis
object
Y Axis controls for the distribution widget.
include_zero
boolean
True includes zero.
label
string
The label of the axis to display on the graph.
max
string
Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior.
default: auto
min
string
Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior.
default: auto
scale
string
Specifies the scale type. Possible values are linear or log.
default: linear
{"custom_links":[{"is_hidden":false,"label":"Search logs for {{host}}","link":"https://app.datadoghq.com/logs?query={{host}}","override_label":"logs"}],"legend_size":"string","markers":[{"display_type":"error dashed","label":"Error threshold","time":"string","value":"y = 15"}],"requests":[{"apm_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"apm_stats_query":{"columns":[{"alias":"Requests","cell_display_mode":"number","name":"Reqs","order":"desc"}],"env":"prod","name":"rack.request","primary_tag":"datacenter:*","resource":"CartsController","row_type":"service","service":"web-store"},"event_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"log_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"network_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"process_query":{"filter_by":[],"limit":"integer","metric":"system.load.1","search_by":"string"},"profile_metrics_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"q":"host:X tags:Y","query":{"data_source":"metrics","name":"query1","query":"histogram:trace.Load{*}"},"request_type":"histogram","rum_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"security_query":{"compute":{"aggregation":"avg","facet":"@duration","interval":5000},"group_by":[{"facet":"resource_name","limit":50,"sort":{"aggregation":"avg","facet":"@string_query.interval","order":"desc"}}],"index":"days-3,days-7","multi_compute":[{"aggregation":"avg","facet":"@duration","interval":5000}],"search":{"query":""}},"style":{"palette":"string"}}],"show_legend":false,"time":{"live_span":"5m"},"title":"string","title_align":"string","title_size":"string","type":"distribution","xaxis":{"include_zero":false,"max":"string","min":"string","scale":"string"},"yaxis":{"include_zero":false,"label":"string","max":"string","min":"string","scale":"string"}}