Skip to content

Super simple lambda function in python that shows sending custom metrics using signalfx-python library

Notifications You must be signed in to change notification settings

jshawatsplunk/simple-lambda-python

Repository files navigation

simple-lambda-python

Super simple lambda function in python that shows sending custom metrics using signalfx-python library

  1. Create an AWS lambda function for python 3.8 runtime. https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html
  2. Copy the sample code into your lambda_handler (uses the signalfx_lambda module).
  3. Add the signalfx lambda wrapper as a layer by specifying the ARN that can be found here: https://github.com/signalfx/lambda-layer-versions/blob/master/python/PYTHON.md.
  4. Add your environment variable(s) (env.txt) under Configuration. If sending metrics to a collector, just the metrics endpoint is needed. If sending directly to signalfx.com ingest endpoint, then also add your access token.
  5. Create a test event with some basic inputs for your test. (test.json)
  6. Test it.
  7. Search Splunk Observability Cloud for your custom metrics using Metric Finder or creating a chart and browsing for your custom metrics.

Screenshot

About

Super simple lambda function in python that shows sending custom metrics using signalfx-python library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages