Menu
Grafana Cloud RSS

Note

Fleet Management is currently in public preview. Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.

Fleet Management APIs

This section includes reference documentation for the following APIs:

  • The Collector API
    Reference documentation for Grafana Fleet Management's Collector API
  • The Pipeline API
    Reference documentation for Grafana Fleet Management's Pipeline API

API Reference

NOTE THAT THERE IS NO CONTENT AVAILABLE FOR ANY OF THE RESPONSES. ALSO I DON’T KNOW WHICH OF THESE ENTIRES SHOULD BE H2

collector.proto

Attributes

FieldTypeLabelDescription
valuesValuerepeated

BulkUpdateCollectorsRequest

FieldTypeLabelDescription
idsstringrepeated
opsOperationrepeated

BulkUpdateCollectorsResponse

Collector

FieldTypeLabelDescription
idstring
attribute_overridesCollector.AttributeOverridesEntryrepeated
created_atgoogle.protobuf.Timestampoptional
updated_atgoogle.protobuf.Timestampoptional
namestring
attributesCollector.AttributesEntryrepeated
enabledbooloptional

Collector.AttributeOverridesEntry

FieldTypeLabelDescription
keystring
valuestring

Collector.AttributesEntry

FieldTypeLabelDescription
keystring
valuestring

Collectors

FieldTypeLabelDescription
collectorsCollectorrepeated

CreateCollectorRequest

FieldTypeLabelDescription
collectorCollector

DeleteCollectorRequest

FieldTypeLabelDescription
idstring

DeleteCollectorResponse

GetCollectorRequest

FieldTypeLabelDescription
idstring

GetConfigRequest

GetConfigRequest is the request message to get a collector’s configuration. The collector’s ID and any supplied attributes are used to determine which pipelines to include in the configuration.

FieldTypeLabelDescription
idstring
metadataGetConfigRequest.MetadataEntryrepeated
attributesGetConfigRequest.AttributesEntryrepeated

GetConfigRequest.AttributesEntry

FieldTypeLabelDescription
keystring
valuestring

GetConfigRequest.MetadataEntry

FieldTypeLabelDescription
keystring
valuestring

GetConfigResponse

FieldTypeLabelDescription
contentstring

ListCollectorAttributesRequest

ListCollectorAttributesResponse

FieldTypeLabelDescription
attributesListCollectorAttributesResponse.AttributesEntryrepeated

ListCollectorAttributesResponse.AttributesEntry

FieldTypeLabelDescription
keystring
valueAttributes

ListCollectorsRequest

FieldTypeLabelDescription
matchersstringrepeated

Operation

FieldTypeLabelDescription
opOperation.OpTypeOperation to perform
pathstringPath for the operation, this is a JSON path
fromstringoptionalSource path for move or copy operations
valuestringoptionalValue for add and replace operations, as well as selective remove
oldValuestringoptionalOld value for selective replace

RegisterCollectorRequest

FieldTypeLabelDescription
idstring
attributesRegisterCollectorRequest.AttributesEntryrepeated
namestring

RegisterCollectorRequest.AttributesEntry

FieldTypeLabelDescription
keystring
valuestring

RegisterCollectorResponse

UnregisterCollectorRequest

FieldTypeLabelDescription
idstring

UnregisterCollectorResponse

UpdateCollectorRequest

FieldTypeLabelDescription
collectorCollector

Value

FieldTypeLabelDescription
valuestring

Operation.OpType

NameNumberDescription
UNKNOWN0
ADD1
REMOVE2
REPLACE3
MOVE4
COPY5

CollectorService

CollectorService is the service that provides remote configuration for the collector. It is used to register and update the collector’s attribute overrides, and to fetch the collector’s configuration.

Method NameRequest TypeResponse TypeDescription
GetConfigGetConfigRequestGetConfigResponseGetConfig returns the collector’s configuration.
RegisterCollectorRegisterCollectorRequestRegisterCollectorResponseRegisterCollector registers the collector with the given ID and attributes. It will update the collector’s attributes if the collector is already registered and the attributes are different.
UnregisterCollectorUnregisterCollectorRequestUnregisterCollectorResponseUnregisterCollector unregisters the collector with the given ID.
GetCollectorGetCollectorRequestCollectorGetCollector returns information about the collector.
ListCollectorsListCollectorsRequestCollectorsListCollectors returns information about all collectors.
CreateCollectorCreateCollectorRequestCollectorCreateCollector registers a new collector.
UpdateCollectorUpdateCollectorRequestCollectorUpdateCollector updates an existing collector.
BulkUpdateCollectorsBulkUpdateCollectorsRequestBulkUpdateCollectorsResponseBulkUpdateCollectors updates multiple collectors.
DeleteCollectorDeleteCollectorRequestDeleteCollectorResponseDeleteCollector deletes an existing collector.
ListCollectorAttributesListCollectorAttributesRequestListCollectorAttributesResponseListCollectorAttributes returns all attributes that are used for all collectors.

pipeline.proto

CreatePipelineRequest

FieldTypeLabelDescription
pipelinePipeline
validate_onlyboolIf set, validate the request and preview the response, but don’t create the actual resource.

DeletePipelineRequest

FieldTypeLabelDescription
idstring

DeletePipelineResponse

GetPipelineRequest

FieldTypeLabelDescription
idstring

ListPipelinesRequest

Pipeline

A Pipeline is a self-contained snippet of configuration that can be assigned to collectors based on matchers.

FieldTypeLabelDescription
namestringThe name of the pipeline. This is the unique identifier for the pipeline.
contentsstringThe configuration contents of the pipeline to be used by collectors.
matchersstringrepeatedMatchers are used to match against collectors and assign pipelines to them. They follow the syntax of the Prometheus Alertmanager matchers
created_atgoogle.protobuf.Timestampoptional
updated_atgoogle.protobuf.Timestampoptional
enabledbooloptionalWhether the pipeline is enabled for collectors.
idstringoptional

Pipelines

FieldTypeLabelDescription
pipelinesPipelinerepeated

UpdatePipelineRequest

FieldTypeLabelDescription
pipelinePipeline
validate_onlyboolIf set, validate the request and preview the response, but don’t update the actual resource.

UpsertPipelineRequest

FieldTypeLabelDescription
pipelinePipeline

PipelineService

The PipelineService defines the RPCs for managing pipelines.

Method NameRequest TypeResponse TypeDescription
GetPipelineGetPipelineRequestPipelineGetPipeline returns a pipeline by name.
ListPipelinesListPipelinesRequestPipelinesListPipelines returns all pipelines.
CreatePipelineCreatePipelineRequestPipelineCreatePipeline creates a new pipeline and returns it.
UpdatePipelineUpdatePipelineRequestPipelineUpdatePipeline updates an existing pipeline and returns it.
UpsertPipelineUpsertPipelineRequestPipelineUpsertPipeline creates a new pipeline or updates an existing one and returns it.
DeletePipelineDeletePipelineRequestDeletePipelineResponseDeletePipeline deletes a pipeline by name.