├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── aws_embedded_metrics ├── __init__.py ├── config │ ├── __init__.py │ ├── configuration.py │ └── environment_configuration_provider.py ├── constants.py ├── environment │ ├── __init__.py │ ├── default_environment.py │ ├── ec2_environment.py │ ├── environment_detector.py │ ├── lambda_environment.py │ └── local_environment.py ├── exceptions.py ├── logger │ ├── __init__.py │ ├── metric.py │ ├── metrics_context.py │ ├── metrics_logger.py │ └── metrics_logger_factory.py ├── metric_scope │ └── __init__.py ├── py.typed ├── serializers │ ├── __init__.py │ └── log_serializer.py ├── sinks │ ├── __init__.py │ ├── agent_sink.py │ ├── stdout_sink.py │ ├── tcp_client.py │ └── udp_client.py ├── storage_resolution.py ├── unit.py ├── utils.py └── validator.py ├── bin ├── deploy-canary.sh ├── publish-pypi.sh ├── run-integ-tests.sh ├── start-agent.sh └── utils.sh ├── examples ├── README.md ├── ec2 │ ├── README.md │ ├── app.py │ ├── metadata-endpoint │ │ ├── Dockerfile │ │ ├── ec2-metadata.json │ │ └── start-endpoint.sh │ └── run-example.sh └── lambda │ ├── README.md │ ├── deploy.sh │ └── function.py ├── mypy.ini ├── setup.cfg ├── setup.py ├── tests ├── canary │ └── agent │ │ ├── Dockerfile │ │ ├── canary.py │ │ ├── container-definitions.json │ │ └── start.sh ├── config │ └── test_config.py ├── environment │ ├── test_default_environment.py │ ├── test_ec2_environment.py │ ├── test_environment_detector.py │ ├── test_lambda_environment.py │ └── test_local_environment.py ├── integ │ └── agent │ │ ├── .aws │ │ ├── .gitignore │ │ └── amazon-cloudwatch-agent.json │ │ ├── Dockerfile │ │ └── test_end_to_end.py ├── logger │ ├── test_metrics_context.py │ └── test_metrics_logger.py ├── metric_scope │ └── test_metric_scope.py ├── serializer │ └── test_log_serializer.py └── sinks │ ├── test_agent_sink.py │ ├── test_stdout_sink.py │ └── test_tcp_client.py └── tox.ini /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/README.md -------------------------------------------------------------------------------- /aws_embedded_metrics/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/config/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/config/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/config/configuration.py -------------------------------------------------------------------------------- /aws_embedded_metrics/config/environment_configuration_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/config/environment_configuration_provider.py -------------------------------------------------------------------------------- /aws_embedded_metrics/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/constants.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/default_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/default_environment.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/ec2_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/ec2_environment.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/environment_detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/environment_detector.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/lambda_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/lambda_environment.py -------------------------------------------------------------------------------- /aws_embedded_metrics/environment/local_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/environment/local_environment.py -------------------------------------------------------------------------------- /aws_embedded_metrics/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/exceptions.py -------------------------------------------------------------------------------- /aws_embedded_metrics/logger/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /aws_embedded_metrics/logger/metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/logger/metric.py -------------------------------------------------------------------------------- /aws_embedded_metrics/logger/metrics_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/logger/metrics_context.py -------------------------------------------------------------------------------- /aws_embedded_metrics/logger/metrics_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/logger/metrics_logger.py -------------------------------------------------------------------------------- /aws_embedded_metrics/logger/metrics_logger_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/logger/metrics_logger_factory.py -------------------------------------------------------------------------------- /aws_embedded_metrics/metric_scope/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/metric_scope/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /aws_embedded_metrics/serializers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/serializers/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/serializers/log_serializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/serializers/log_serializer.py -------------------------------------------------------------------------------- /aws_embedded_metrics/sinks/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/sinks/__init__.py -------------------------------------------------------------------------------- /aws_embedded_metrics/sinks/agent_sink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/sinks/agent_sink.py -------------------------------------------------------------------------------- /aws_embedded_metrics/sinks/stdout_sink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/sinks/stdout_sink.py -------------------------------------------------------------------------------- /aws_embedded_metrics/sinks/tcp_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/sinks/tcp_client.py -------------------------------------------------------------------------------- /aws_embedded_metrics/sinks/udp_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/sinks/udp_client.py -------------------------------------------------------------------------------- /aws_embedded_metrics/storage_resolution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/storage_resolution.py -------------------------------------------------------------------------------- /aws_embedded_metrics/unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/unit.py -------------------------------------------------------------------------------- /aws_embedded_metrics/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/utils.py -------------------------------------------------------------------------------- /aws_embedded_metrics/validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/aws_embedded_metrics/validator.py -------------------------------------------------------------------------------- /bin/deploy-canary.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/bin/deploy-canary.sh -------------------------------------------------------------------------------- /bin/publish-pypi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/bin/publish-pypi.sh -------------------------------------------------------------------------------- /bin/run-integ-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/bin/run-integ-tests.sh -------------------------------------------------------------------------------- /bin/start-agent.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/bin/start-agent.sh -------------------------------------------------------------------------------- /bin/utils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/bin/utils.sh -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/ec2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/README.md -------------------------------------------------------------------------------- /examples/ec2/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/app.py -------------------------------------------------------------------------------- /examples/ec2/metadata-endpoint/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/metadata-endpoint/Dockerfile -------------------------------------------------------------------------------- /examples/ec2/metadata-endpoint/ec2-metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/metadata-endpoint/ec2-metadata.json -------------------------------------------------------------------------------- /examples/ec2/metadata-endpoint/start-endpoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/metadata-endpoint/start-endpoint.sh -------------------------------------------------------------------------------- /examples/ec2/run-example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/ec2/run-example.sh -------------------------------------------------------------------------------- /examples/lambda/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/lambda/README.md -------------------------------------------------------------------------------- /examples/lambda/deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/lambda/deploy.sh -------------------------------------------------------------------------------- /examples/lambda/function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/examples/lambda/function.py -------------------------------------------------------------------------------- /mypy.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/mypy.ini -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description-file = README.md 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/setup.py -------------------------------------------------------------------------------- /tests/canary/agent/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/canary/agent/Dockerfile -------------------------------------------------------------------------------- /tests/canary/agent/canary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/canary/agent/canary.py -------------------------------------------------------------------------------- /tests/canary/agent/container-definitions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/canary/agent/container-definitions.json -------------------------------------------------------------------------------- /tests/canary/agent/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/canary/agent/start.sh -------------------------------------------------------------------------------- /tests/config/test_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/config/test_config.py -------------------------------------------------------------------------------- /tests/environment/test_default_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/environment/test_default_environment.py -------------------------------------------------------------------------------- /tests/environment/test_ec2_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/environment/test_ec2_environment.py -------------------------------------------------------------------------------- /tests/environment/test_environment_detector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/environment/test_environment_detector.py -------------------------------------------------------------------------------- /tests/environment/test_lambda_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/environment/test_lambda_environment.py -------------------------------------------------------------------------------- /tests/environment/test_local_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/environment/test_local_environment.py -------------------------------------------------------------------------------- /tests/integ/agent/.aws/.gitignore: -------------------------------------------------------------------------------- 1 | credentials 2 | config -------------------------------------------------------------------------------- /tests/integ/agent/.aws/amazon-cloudwatch-agent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/integ/agent/.aws/amazon-cloudwatch-agent.json -------------------------------------------------------------------------------- /tests/integ/agent/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/integ/agent/Dockerfile -------------------------------------------------------------------------------- /tests/integ/agent/test_end_to_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/integ/agent/test_end_to_end.py -------------------------------------------------------------------------------- /tests/logger/test_metrics_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/logger/test_metrics_context.py -------------------------------------------------------------------------------- /tests/logger/test_metrics_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/logger/test_metrics_logger.py -------------------------------------------------------------------------------- /tests/metric_scope/test_metric_scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/metric_scope/test_metric_scope.py -------------------------------------------------------------------------------- /tests/serializer/test_log_serializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/serializer/test_log_serializer.py -------------------------------------------------------------------------------- /tests/sinks/test_agent_sink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/sinks/test_agent_sink.py -------------------------------------------------------------------------------- /tests/sinks/test_stdout_sink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/sinks/test_stdout_sink.py -------------------------------------------------------------------------------- /tests/sinks/test_tcp_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tests/sinks/test_tcp_client.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/aws-embedded-metrics-python/HEAD/tox.ini --------------------------------------------------------------------------------