• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense KeysVerifying Downloads
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
Layers
OverviewTroubleshooting
Managed InstancesWeb Apps (Lambda Web Functions)Sandboxes (Lambda MicroVMs)MCP ServersAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStateAgent SkillsPython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsSubstitutionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewagent docsagent inspectagent setupagent skills installagent skills list / readdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionusage
OverviewConcepts
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. Usage
  2. Observability
  3. Overview

Observability providers

The observability setting under stages in serverless.yml connects a service's Lambda functions to an observability provider for one stage: the Serverless Framework Dashboard or Axiom. The Framework instruments the functions when you deploy that stage, so you can turn monitoring on in prod and leave it off in development stages.

To send the logs of every function in the prod stage to Axiom, set observability: axiom for that stage:

# serverless.yml
service: my-service

provider:
  name: aws
  runtime: nodejs24.x

stages:
  prod:
    observability: axiom

functions:
  hello:
    handler: handler.hello

Then deploy with the Axiom API token in AXIOM_TOKEN:

serverless deploy --stage prod

Each provider has its own requirements: Axiom reads an API token from AXIOM_TOKEN, and the Dashboard needs org and app in serverless.yml.

Providers

  • Axiom: adds the Axiom Lambda extension to each function and forwards other CloudWatch log groups of the service to an Axiom dataset.
  • Serverless Framework Dashboard: instruments each function for metrics, traces and logs in the Dashboard.

The stages.<stage>.observability setting

stages.<stage>.observability selects the provider for one stage. It applies to every function of the service; there is no per-function setting. With Axiom, a function with disableLogs: true doesn't get the Axiom extension and sends no logs to Axiom (Axiom). stages.<stage>.observability accepts these values:

ValueEffect
axiomAxiom, with the generated dataset name.
dashboardServerless Framework Dashboard. Without app in serverless.yml, the deploy doesn't instrument anything.
trueServerless Framework Dashboard. Requires app.
falseRemoves Dashboard instrumentation from the service's functions on serverless deploy. Requires app.
provider: axiom and datasetAxiom, sending data to the dataset named in dataset.
provider: dashboardServerless Framework Dashboard, the same as dashboard.
Not set for the stage or under defaultNo provider. The deploy leaves Dashboard instrumentation as it is and doesn't add the Axiom extension.

With any value other than Axiom, or with no value, serverless deploy still runs the Axiom unsubscribe step while AXIOM_TOKEN is set and the service defines log groups other than function log groups; see Turn off Axiom for a stage.

The object form accepts only provider (required) and dataset, and dataset applies only to Axiom:

# serverless.yml
stages:
  prod:
    observability:
      provider: axiom
      dataset: my-service-prod

The Framework also reads disabled, as a string or as provider: disabled. It has the effect of false, and without app it changes nothing instead of stopping the command. The configuration schema doesn't list disabled, so the Framework prints an Invalid configuration encountered warning for it, or stops with configValidationMode: error. Write provider names in lowercase: the Framework matches them in any case, but the schema accepts only lowercase.

Stage precedence for observability

The Framework looks up observability under the name of the stage being deployed first. When that stage has no observability value, or the value is null, the value under stages.default applies. To turn on Axiom for prod and turn off Dashboard instrumentation in every other stage:

# serverless.yml
org: myorg
app: my-app
service: my-service

stages:
  prod:
    observability: axiom
  default:
    observability: false

Commands that apply the observability setting

The Framework evaluates stages.<stage>.observability for every command that loads the service, so an invalid value stops any command, including serverless print. The providers then act on these commands:

  • Dashboard: serverless deploy only.
  • Axiom: serverless package and serverless deploy add the extension to the functions, serverless deploy creates the dataset and the log forwarding stacks, and serverless deploy function adds the extension to the deployed function.

Errors for the observability setting

true or false without app in serverless.yml stops the command with:

To instrument your service, you must set the "app" property in your config file.

A provider name other than axiom, dashboard or disabled stops the command with:

Unknown observability provider: <name>

A value that isn't a boolean, a string or an object with a provider string stops the command with:

Invalid observability configuration. Expected a boolean, string or an object with a "provider" property. Received: <value>

Related pages

  • Axiom
  • Serverless Framework Dashboard observability
  • Dashboard monitoring and observability
  • Services and stages
Edit this page
Prev Extending and overriding configurationNextDashboard

Contents

  • Observability providers
  • Providers
  • The stages.<stage>.observability setting
  • Stage precedence for observability
  • Commands that apply the observability setting
  • Errors for the observability setting
  • Related pages

Related

GuidesPluginsExamplesSlack CommunitySupport