Dec 14th, 2024: [EN] Top 5 Prompts to Maximize Your Observability AI Assistant Experience

Top 5 Prompts to Maximize Your Observability AI Assistant Experience

Over the past three years as a Customer Engineer, I’ve met hundreds of customers, and one of the most frequently asked questions has been: "I have my data in Elastic; how can I leverage it to gain the most advantage?".

If this applies to you, then this blog and AI Assistant is for you.

Released in version 8.9, the Elastic Observability AI Assistant introduced a range of powerful new features. Today, I’ll share my top 5 favorite prompts to help you make the most of these enhancements.

In this example, I’m using Azure Open AI with GPT-4o model combining an ecommerce dataset with APM metrics to increase the business value.

#5. Are there any errors in APM services, show the source code

Bonus question: How to resolve?
Tip : Connect AI assistant also to your Internal KBs to get more precise results

#4. Create separate alerts for these errors if reoccur

At this time, the AI Assistant cannot create alerts for you… yet

However, it can generate an ES|QL query that you can easily copy and paste into the body of Observability rules while creating alerts.

Now let’s move to our ecommerce data.

#3 Based on my index_ name can you help me create 10 dashboards that can accelerate my business

Tip : Next, you can instruct the AI Assistant to create all of them for you and save them as visualizations within your dashboards.
You can even define the type of visualization and time range if needed.

#2 Create ML job to detect any unexpected behavior in the orders in index_name

Bonus: The AI Assistant can set up ML jobs for you.

You can also define Bucket Span and Prune Window while creating the prompt.

#1. Analyze my active apm-'*' alerts and give me 20 more alerts for better monitoring of my applications

There are countless options to consider, and with direct access to your datasets, an AI assistant can deliver highly accurate results tailored to your specific use case.

I’d also like to share a few tips for using the AI Assistant effectively:

  1. Be Specific : Keep your questions clear and concise; avoid lengthy text.

  2. Know Your Data: Before asking the AI for help, ensure you know your index or .ds-* names and the available fields. To check these, you can open any index in Discover and expand a document to find the field names you need.

  3. Monitor your spends: To avoid unexpected costs, monitor your token usage, as retrieving responses can consume a significant number of tokens.

2 Likes