This guide will walk you through how to share your exporter metrics with Azure using the Geneva Agent. Note: Currently this feature is private preview and is turned off by default. As of now only internal Microsoft Azure subscriptions are whitelisted, and we recommend you use azure monitor instead, Detailed please refer to this doc: Azure Monitor Agent
-
Prepare Authentication for geneva agent:
a. User Managed Identity (umi)
- Create a umi on azure portal, register umi object id on geneva portal with a metricsPublisher role, and add the Moneo service princple to the VM/VMSS
- Navigate to your VM/VMSS resource on the portal.
- From the left menu select "identity"
- From the top tabs select "User assigned"
- Then click on "Add" this will open a blade to search for the managed identities.
- search and select "moneo-umi".
- Click add at the bottom of the open blade.
b. Certificate (cert)
-
Create Private key pem and public key pem files by:
openssl genrsa 2048 > mdm-key.pem openssl req -x509 -new -key gcskey.pem -out mdm-cert.pem
-
Print out and get the certicate thumbprint:
openssl x509 -in mdm-cert.pem -noout -sha1 -fingerprint
-
Replace above key-cert pairs with
src/worker/publisher/config/mdm-key.pem
andsrc/worker/publisher/config/mdm-cert.pem
-
Register the thumbprint on geneva portal with a metricsPublisher role.
-
Currently the only supported OS's are Ubuntu 20.04+ and Mariner.
-
python3-dev installed on all nodes.
-
PSSH installed on manager nodes.
-
Ensure passwordless ssh is installed in you environment.
-
Ensure that all prequisites are met.
-
deploy Moneo
- Full deployment with umi auth:
python3 moneo.py -d full -g geneva -a umi -c ~/hostfile --manager_host localhost
- Worker deployment with cert auth:
python3 moneo.py -d workers -g geneva -a cert -c ~/hostfile
Note: if install step has already been performed you can use the
-w
flag to skip it. - Full deployment with umi auth:
-
Verify that the exporters and publisher are running with
ps -eaf | grep python3
-
At this point the exporters and publisher shoud be working.
-
Check with Geneva dashboards to verify that the metrics are being ingested.