Metrics and analytics
Pipelines metrics are split across three different nodes under viewer
> accounts
. Refer to Explore the GraphQL schema to learn how to navigate a GraphQL schema and discover which data are available.
To learn more about the GraphQL Analytics API, refer to GraphQL Analytics API.
You can use the GraphQL API to measure metrics for data ingested, as well as data delivered.
Examples of how to explore your Pipelines metrics.
query PipelineIngestion($accountTag: string!, $pipelineId: string!, $datetimeStart: Time!, $datetimeEnd: Time!) { viewer { accounts(filter: {accountTag: $accountTag}) { pipelinesIngestionAdaptiveGroups( limit: 10000 filter: { pipelineId: $pipelineId datetime_geq: $datetimeStart datetime_leq: $datetimeEnd }
) { sum { ingestedBytes, ingestedRecords, } } } }}
query PipelineDelivery($accountTag: string!, $queueId: string!, $datetimeStart: Time!, $datetimeEnd: Time!) { viewer { accounts(filter: {accountTag: $accountTag}) { pipelinesDeliveryAdaptiveGroups( limit: 10000 filter: { pipelineId: $queueId datetime_geq: $datetimeStart datetime_leq: $datetimeEnd } ) { sum { deliveredBytes, } } } }}