Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 9696cd7

Browse files
Merge pull request #1512 from splunk/repo-sync
Pulling refs/heads/main into main
2 parents 18013e4 + cf70257 commit 9696cd7

File tree

12 files changed

+107
-15
lines changed

12 files changed

+107
-15
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* ``collection_interval``. ``10s`` by default. Sets the interval this receiver collects metrics on.
2+
3+
* This value must be a string readable by Golang's ``time.ParseDuration``. Learn more at Go's official documentation :new-page:`ParseDuration function <https://pkg.go.dev/time#ParseDuration>`.
4+
5+
* Valid time units are ``ns``, ``us`` (or ``µs``), ``ms``, ``s``, ``m``, ``h``.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* ``initial_delay``. ``1s`` by default. Determines how long this receiver waits before collecting metrics for the first time.

_includes/gdi/otel-receivers-table.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* :ref:`mongodb-atlas-receiver`
2424
* :ref:`mssql-server-receiver`
2525
* :ref:`mysql-receiver`
26+
* :ref:`nginx-receiver`
2627
* :ref:`oracledb-receiver`
2728
* :ref:`otlp-receiver`
2829
* :ref:`postgresql-receiver`

alerts-detectors-notifications/create-detectors-for-alerts.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,12 @@ After you have created an alert message, continue to the next tab to specify whe
214214
Display custom properties
215215
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
216216

217-
If you are creating a detector using the Splunk Observability Cloud API, you can convert custom properties of the detector to dimensions using the ``promote()`` method.
217+
If you are creating a detector using the Splunk Observability Cloud API, you can convert custom properties to dimensions using the ``promote()`` method.
218218

219219
By converting a custom property to a dimension, you can display it in an alert message. To learn more, see the :new-page:`Developer documentation for the promote method <https://dev.splunk.com/observability/docs/signalflow/methods/promote_stream_method/>`.
220220

221+
For more information about the detector API endpoints, see :new-page:`Detectors <https://dev.splunk.com/observability/reference/api/detectors/latest>` Splunk Observability Cloud API reference.
222+
221223
.. _alert-recipients:
222224

223225

gdi/monitors-hosts/nginx.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The Splunk Distribution of the OpenTelemetry Collector uses the Smart Agent rece
1111

1212
This integration is available on Linux and Windows.
1313

14+
.. note:: To monitor NGINX instances with the OpenTelemetry Collector using native OpenTelemetry components refer to the :ref:`nginx-receiver`.
15+
1416
Benefits
1517
--------
1618

gdi/opentelemetry/components.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ The Splunk Distribution of the OpenTelemetry Collector includes and supports the
124124
* - :ref:`mysql-receiver` (``mysql``)
125125
- Queries and retrieves metrics about MySQL's global status and InnoDB tables.
126126
- Metrics
127+
* - :ref:`nginx-receiver` (``nginx``)
128+
- Fetches stats from a NGINX instance using the ``ngx_http_stub_status_module`` module's status endpoint.
129+
- Metrics
127130
* - :ref:`oracledb` (``oracledb``) |br|
128131
- Connects to an Oracle Database instance and obtains metrics such as physical reads, CPU, time, and others.
129132
- Metrics

gdi/opentelemetry/components/a-components-receivers.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Collector components: Receivers
3737
mongodb-atlas-receiver
3838
mssql-server-receiver
3939
mysql-receiver
40+
nginx-receiver
4041
oracledb-receiver
4142
otlp-receiver
4243
postgresql-receiver

gdi/opentelemetry/components/apache-receiver.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,9 @@ The following settings are required:
6262

6363
The following settings are optional:
6464

65-
* ``collection_interval``. ``10s`` by default. Sets the interval this receiver collects metrics on.
66-
67-
* This value must be a string readable by Golang's ``time.ParseDuration``. Learn more at Go's official documentation :new-page:`ParseDuration function <https://pkg.go.dev/time#ParseDuration>`.
68-
69-
* Valid time units are ``ns``, ``us`` (or ``µs``), ``ms``, ``s``, ``m``, ``h``.
65+
.. include:: /_includes/gdi/collector-settings-collectioninterval.rst
7066

71-
* ``initial_delay``. ``1s`` by default. Determines how long this receiver waits before collecting metrics for the first time.
67+
.. include:: /_includes/gdi/collector-settings-initialdelay.rst
7268

7369
Settings
7470
======================

gdi/opentelemetry/components/mysql-receiver.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ The following settings are optional:
9191

9292
* ``database``. The database name. If unspecified, metrics are collected for all databases.
9393

94-
* ``collection_interval``. ``10s`` by default. This receiver collects metrics on this interval.
94+
.. include:: /_includes/gdi/collector-settings-collectioninterval.rst
9595

96-
* This value must be a string readable by Golang's ParseDuration function. Learn more at Golang's official documentation at :new-page:`ParseDuration <https://pkg.go.dev/time#ParseDuration>`.
97-
98-
* Valid time units are ``ns``, ``us`` (or ``µs``), ``ms``, ``s``, ``m``, or ``h``.
99-
100-
* ``initial_delay``. ``1s`` by default. Defines how long this receiver waits before starting.
96+
.. include:: /_includes/gdi/collector-settings-initialdelay.rst
10197

10298
* ``transport``. ``tcp`` by default. Defines the network to use to connect to the server.
10399

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
.. _nginx-receiver:
2+
3+
***********************
4+
NGINX receiver
5+
***********************
6+
7+
.. meta::
8+
:description: The NGINX receiver fetches stats from a NGINX instance using the ``ngx_http_stub_status_module`` module's status endpoint.
9+
10+
The NGINX receiver fetches stats from a NGINX instance using the ``ngx_http_stub_status_module`` module's ``status`` endpoint. The supported pipeline type is ``metrics``. See :ref:`otel-data-processing` for more information.
11+
12+
You need to configure NGINX to expose status information. To learn how, see the :new-page:`HTTP status module config guide <https://nginx.org/en/docs/http/ngx_http_stub_status_module.html>` in the NGINX documentation.
13+
14+
.. note:: Out-of-the-box dashboards and navigators aren't supported for the NGINX Server receiver yet, but are planned for a future release.
15+
16+
Get started
17+
======================
18+
19+
Follow these steps to configure and activate the component:
20+
21+
1. Deploy the Splunk Distribution of the OpenTelemetry Collector to your host or container platform:
22+
23+
- :ref:`otel-install-linux`
24+
- :ref:`otel-install-windows`
25+
- :ref:`otel-install-k8s`
26+
27+
2. Configure the receiver as described in the next section.
28+
3. Restart the Collector.
29+
30+
Sample configuration
31+
---------------------------
32+
33+
To activate the NGINX receiver, add ``nginx`` to the ``receivers`` section of your configuration file, as shown in the following example:
34+
35+
.. code:: yaml
36+
37+
receivers:
38+
nginx:
39+
endpoint: "http://localhost:80/status"
40+
collection_interval: 10s
41+
42+
To complete the configuration, include the receiver in the ``metrics`` pipeline of the ``service`` section of your configuration file. For example:
43+
44+
.. code:: yaml
45+
46+
service:
47+
pipelines:
48+
metrics:
49+
receivers: [nginx]
50+
51+
Configuration options
52+
-------------------------------------------------
53+
54+
The following settings are available:
55+
56+
* ``endpoint``. :strong:`Required`. ``http://localhost:80/status`` by default. The URL of the NGINX status endpoint.
57+
58+
.. include:: /_includes/gdi/collector-settings-collectioninterval.rst
59+
60+
.. include:: /_includes/gdi/collector-settings-initialdelay.rst
61+
62+
Settings
63+
======================
64+
65+
The following table shows the configuration options for the NGINX receiver:
66+
67+
.. raw:: html
68+
69+
<div class="metrics-standard" category="included" url="https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/nginx.yaml"></div>
70+
71+
Metrics
72+
=====================
73+
74+
The following metrics, resource attributes, and attributes are available.
75+
76+
.. raw:: html
77+
78+
<div class="metrics-component" category="included" url="https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/nginxreceiver.yaml"></div>
79+
80+
.. include:: /_includes/activate-deactivate-native-metrics.rst
81+
82+
Troubleshooting
83+
======================
84+
85+
.. include:: /_includes/troubleshooting-components.rst

0 commit comments

Comments
 (0)