Elastic Search
Causely provides native integration with Elastic Search.
Step 1: Create an API Key
Create an API Key for your ElasticSearch cluster.
Step 2: Create a Kubernetes Secret for the API Key
After creating the API Key create a Kubernetes Secret:
kubectl create secret generic --namespace causely elastic-credentials \
--from-literal=api_key="..." \
--from-literal=url='https://....eastus2.azure.elastic-cloud.com'
Step 3: Update Causely Configuration
Once the Secret is created, update the Causely configuration to enable scraping for the new cluster. Below is an example configuration:
scrapers:
elasticsearch:
enabled: true
projects:
- secretName: elastic-credentials
namespace: causely
Alternative: Enable Credentials Autodiscovery
Causely also supports credentials autodiscovery. This feature allows you to add new scraping targets without updating the Causely configuration. Simply label the Kubernetes Secret to enable autodiscovery for the corresponding scraper.
Example: Labeling Secrets for Autodiscovery
kubectl --namespace causely label elastic-credentials "causely.ai/scraper=ElasticSearch"
With these steps, you can seamlessly integrate Causely with Elastic Search and configure it to monitor your desired resources.