SignalFx-Python Manual instrumentation - Send your metrics to SignalFx using Python
I wrote this python instrumentation based on the documentation provided here https://github.com/signalfx/signalfx-python
Installation
Install python3
$ sudo apt install python3 python-pip
To install with pip:
$ pip install signalfx
To install from source:
$ git clone https://github.com/signalfx/signalfx-python.git $ cd signalfx-python/ $ pip install -e .
$ git clone https://github.com/rydersean/SignalFx-Python-Instrumentation.git
- Add your org token to the setup.sh file
- Uncomment ingest environment variable based on if you want to send to OTEL Collector, SignalFx SmartAgent or SignalFx Ingest directly
- $ source setup.sh
- $ python SignalFx-Python-Metrics.py
- Watch your terminal for debug info