Skip to content

Default environment variables for datadog API? #255

@red8888

Description

@red8888

This is how I plugin datadog creds now:

from datadog import initialize, api

options = {'api_key': '9775a026f1ca7d1c6c5af9d94d9595a4',
           'app_key': '87ce4a24b5553d2e482ea8a8500e71b8ad4554ff'}

initialize(**options)

But are there default environment variables for this? For example there would be environment variables I set like DD_APP_KEY and DD_API_KEY and the datadog api just looks for these default environment variables and uses them for me?

Many APIs support this kind of scheme does datadog? For example gcp apis support a GOOGLE_APPLICATION_CREDENTIALS environment variable. Couldn't find anything in the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions