Skip to content

Service Retention Period gRPC API

Adjust your service retention period with the Service Retention Period gRPC API.

Overview

This documentation details the Service Retention Period gRPC API, empowering you to modify the default 30-day period for removing services from your Service Catalog or databases from your Database Catalog in the absence of traffic.

Permissions

To utilize the API, you must have the service-catalog:Update permission. This permission is automatically granted to the following roles: Data Admin, Platform Admin, Observability Lead, and Legacy Admin. Find out more here.

Prerequisites

  • Alerts, Rules & Tags API key to successfully authenticate
  • Choose the api.:443 endpoint that corresponds to your Coralogix domain using the domain selector at the top of the page.

API endpoints

This reference document lists example requests and responses using gRPCurl. The following calls accept arguments as JSON in the request body and return results as JSON in the response body.

Authentication

Coralogix API uses API keys to authenticate requests. You can view and manage your API keys from the Data Flow tab in Coralogix. You need to use this API key in the Authorization request header to connect successfully.

Request

Below is the complete request header for the Service Catalog and Database Catalog. For both, input the api.:443 endpoint that corresponds to your Coralogix domain using the domain selector at the top of the page. The request payload should include the following structure:

Service Catalog:

grpcurl -H "Authorization: Bearer <PERSONAL_API_KEY>" -d @ api.[[DOMAIN_VALUE]]:443 com.coralogixapis.service_catalog.v1.ApmSettingsService/ReplaceRetentionPeriod <<EOF
{
    "retention_period_in_days": <value>,
    "catalog": "SERVICE_CATALOG"
}
EOF

Database Catalog:

grpcurl -H "Authorization: Bearer <PERSONAL_API_KEY>" -d @ api.[[DOMAIN_VALUE]]:443 com.coralogixapis.service_catalog.v1.ApmSettingsService/ReplaceRetentionPeriod <<EOF
{
    "retention_period_in_days": <value>,
    "catalog": "DATABASE_CATALOG"
}
EOF

Additional resources

DocumentationService Catalog
Database Monitoring
APM Onboarding Tutorial
Coralogix EndpointsCoralogix Endpoints

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at support@coralogix.com.

Was this helpful?