Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@
"developer-guide/platform/docs-contributions.html": "/master/docs-contributions.html#improving-these-docs",
"developer-guide/platform/sinks-guide.html": "/master/configuration/sinks/sinks-development.html",
"user-guide/robusta-cli.html": "/master/setup-robusta/installation/index.html",
"advanced/index.html": "/master/setup-robusta/installation/index.html"
"advanced/index.html": "/master/setup-robusta/installation/index.html",
"configuration/exporting/exporting-data.html": "/master/configuration/exporting/send-alerts-api.html",
"configuration/alertmanager-integration/troubleshooting-alertmanager.html": "/master/configuration/exporting/send-alerts-api.html"
}


Expand Down

This file was deleted.

31 changes: 0 additions & 31 deletions docs/configuration/exporting/exporting-data.rst

This file was deleted.

8 changes: 4 additions & 4 deletions docs/configuration/exporting/robusta-pro-features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ Data Export and Reporting APIs

Export alert history and generate reports using Robusta's REST APIs.

:doc:`Alert History Import and Export API <exporting-data>`
Comprehensive API for exporting alert history, generating reports, and sending custom alerts programmatically.
**Robusta API Reference**
Comprehensive APIs for exporting alert history, generating reports, and sending custom alerts programmatically.

Features include:

* :doc:`Alert Export API <alert-export-api>`: Export historical alert data with filtering by time range, alert name, and account
* :doc:`Alert Reporting API <alert-statistics-api>`: Get aggregated statistics and counts for different alert types
* :doc:`Custom Alert API <send-alerts-api>`: Send alerts programmatically from external systems
* :doc:`Send Alerts API <send-alerts-api>`: Send alerts programmatically from external systems or via integrations
* :doc:`Configuration Changes API <configuration-changes-api>`: Track configuration changes in your environment

Additional Pro Features
Expand All @@ -64,4 +64,4 @@ To access these features:
2. **Self-hosted Commercial**: Contact support@robusta.dev for enterprise plans with self-hosted UI
3. **API Access**: Generate API keys in the Robusta platform under **Settings** → **API Keys**

For detailed API documentation and examples, see :doc:`Alert History Import and Export API <exporting-data>`.
For detailed API documentation and examples, see the individual API references listed above.
103 changes: 92 additions & 11 deletions docs/configuration/exporting/send-alerts-api.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
Send Alerts API
==============================================
===============

Why Send Your Alerts to Robusta?
---------------------------------

Benefits include:

* Persistent alert history on a filterable timeline
* Centralized view of alerts from all your monitoring systems (multiple Prometheus instances, cloud services, custom tools)
* AI investigation of alerts
* Correlations between alerts and Kubernetes deploys
* and more!

.. image:: /images/robusta-ui-timeline.png
:alt: Prometheus Alert History

Integration Methods
-------------------

There are two main ways to send alerts to Robusta:

1. **Pre-built Integrations**: Use our existing integrations for AlertManager, Nagios, SolarWinds, and other monitoring systems. See :doc:`Alert Sources <../index>`.

2. **Programmatic API**: Send alerts directly using our REST API (detailed below).

Send Alerts API
---------------

.. note::
This feature is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version.
This API is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version.
Comment thread
pavangudiwada marked this conversation as resolved.

Use this endpoint to send alert data to Robusta. You can send up to 1000 alerts in a single request.

.. _send-alerts-api:

POST https://api.robusta.dev/api/alerts
----------------------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Request Body Schema
^^^^^^^^^^^^^^^^^^^^^^^^
""""""""""""""""""""

The request body must include the following fields:

Expand All @@ -34,7 +60,7 @@ The request body must include the following fields:
- Yes

Alert Schema
^^^^^^^^^^^^
""""""""""""

Each alert in the ``alerts`` list must follow the specific schema, which includes the following fields:

Expand Down Expand Up @@ -116,7 +142,7 @@ Each alert in the ``alerts`` list must follow the specific schema, which include
- No

Example Request
^^^^^^^^^^^^^^^
"""""""""""""""

Here is an example of a ``POST`` request to send a list of alerts:

Expand Down Expand Up @@ -155,7 +181,7 @@ In this request, replace the following placeholders:
- ``API-KEY``: Your API Key for authentication. You can generate this token by navigating to **Settings** -> **API Keys** -> **New API Key**.

Request Headers
^^^^^^^^^^^^^^^^^^^^
"""""""""""""""

.. list-table::
:widths: 30 70
Expand All @@ -169,10 +195,10 @@ Request Headers
- Must be set to ``application/json``.

Response Format
^^^^^^^^^^^^^^^^^^^^
"""""""""""""""

Success Response
""""""""""""""""
~~~~~~~~~~~~~~~~

If the request is successful, the API will return the following response:

Expand All @@ -185,7 +211,7 @@ If the request is successful, the API will return the following response:
- **Status Code**: `200 OK`

Error Response
""""""""""""""
~~~~~~~~~~~~~~

If there is an error in processing the request, the API will return the following format:

Expand All @@ -196,4 +222,59 @@ If there is an error in processing the request, the API will return the followin
"error_code": 123
}

- **Status Code**: Varies based on the error (e.g., `400 Bad Request`, `500 Internal Server Error`).
- **Status Code**: Varies based on the error (e.g., `400 Bad Request`, `500 Internal Server Error`).

Troubleshooting
---------------

.. tab-set::

.. tab-item:: General Issues

**Not receiving alerts in Robusta UI?**

1. **Just installed?** Wait 10 minutes after installation for all components to initialize
2. **Check your specific integration:** Each alert source has its own troubleshooting guide on its documentation page
3. **Verify authentication:** Ensure API keys and webhook URLs are correctly configured

.. tab-item:: AlertManager

**Not receiving alerts?**

1. **Verify routing configuration:**

- Ensure Robusta is the first receiver in your AlertManager configuration, or
- All previous receivers have ``continue: true`` set
- See configuration examples in your specific alert source documentation

2. **Check logs for errors:**

- Review AlertManager logs for webhook errors
- Check Prometheus Operator logs (if using kube-prometheus-stack)
- Look for errors in Robusta runner logs

3. **Check pod health (embedded Prometheus stack):**

- Verify all Prometheus and AlertManager pods are running
- Look for OOMKills and increase memory limits if needed
- See :doc:`Embedded Prometheus troubleshooting <../alertmanager-integration/embedded-prometheus>`

**Alerts arriving but missing Kubernetes context?**

Check :doc:`Alert Label Mapping </setup-robusta/additional-settings>` to customize how Prometheus labels map to Kubernetes resources.

Testing Your Integration
------------------------

Each alert source has specific testing methods:

* **Standard AlertManager**: Use ``robusta demo-alert`` command
* **Cloud Services**: Check the specific service's documentation for test procedures
* **Custom API**: Use the curl example above with test data

Refer to your specific integration documentation for detailed testing steps.

Need More Help?
---------------

* Join our `Slack community <https://bit.ly/robusta-slack>`_ for direct support
7 changes: 5 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@

configuration/exporting/robusta-pro-features
setup-robusta/alertsui
configuration/exporting/exporting-data
configuration/alertmanager-integration/troubleshooting-alertmanager
configuration/exporting/send-alerts-api
configuration/exporting/configuration-changes-api
configuration/exporting/alert-export-api
configuration/exporting/alert-statistics-api
configuration/exporting/namespace-resources-api

.. toctree::
:maxdepth: 4
Expand Down
Loading