Configure the Prometheus receiver to collect Pinecone metrics

Collect Pinecone metrics with the Splunk Distribution of the OpenTelemetry Collector.

You can monitor the performance of your Pinecone vector database by configuring the Splunk Distribution of the OpenTelemetry Collector to send Pinecone metrics to Splunk Observability Cloud.

This solution uses the Prometheus receiver to collect metrics from Pinecone, which exposes the API endpoint https://api.pinecone.io/prometheus/projects/PROJECT_ID/metrics/discovery to publish Prometheus-compatible metrics.

To configure the Prometheus receiver to collect Pinecone metrics, you must meet the following requirements.

  1. Deploy the Splunk Distribution of the OpenTelemetry Collector to your host or container platform:
  2. To activate the Prometheus receiver for Pinecone manually in the Collector configuration, make the following changes to your values.yaml configuration file.
    1. Add prometheus/pinecone to the receivers section. For example:
      prometheus/pinecone: 
        config: 
          global: 
            scrape_interval: 10s 
          scrape_configs: 
            - job_name: 'pinecone-serverless-metrics' 
              http_sd_configs: 
                - url: https://api.pinecone.io/prometheus/projects/PINECONE_PROJECT_ID/metrics/discovery 
                  refresh_interval: 1m 
                  authorization: 
                    type: Bearer 
                    credentials: PINECONE_PROJECT_API_KEY 
              authorization: 
                type: Bearer 
                credentials: PINECONE_PROJECT_API_KEY 
    2. Add prometheus/pinecone to the metrics pipeline of the service section. For example:
      service:  
        pipelines:  
          metrics:  
            receivers: [prometheus/pinecone] 
  3. Restart the Splunk Distribution of the OpenTelemetry Collector.

Configuration settings

Learn about the configuration settings for the Prometheus receiver.

To view the configuration options for the Prometheus receiver, see Settings.

Metrics

The following metrics are available for Pinecone. These metrics fall under the default metric category. For more information on these metrics, see Available metrics in the Pinecone documentation.

Metric nameTypeDescription
pinecone_db_record_totalgaugeThe total number of records in the index.
pinecone_db_op_upsert_totalcounterThe number of upsert requests made to an index.
pinecone_db_op_upsert_duration_totalcounter The total time taken processing upsert requests for an index in milliseconds.
pinecone_db_op_query_totalcounter The number of query requests made to an index.
pinecone_db_op_query_duration_totalcounter The total time taken processing query requests for an index in milliseconds.
pinecone_db_op_fetch_totalcounter The number of fetch requests made to an index.
pinecone_db_op_fetch_duration_totalcounter The total time taken processing fetch requests for an index in milliseconds.
pinecone_db_op_update_totalcounter The number of update requests made to an index.
pinecone_db_op_update_duration_totalcounter The total time taken processing update requests for an index in milliseconds.
pinecone_db_op_delete_totalcounterThe number of delete requests made to an index.
pinecone_db_op_delete_duration_totalcounterThe total time taken processing delete requests for an index in milliseconds.
pinecone_db_write_unit_totalcounterThe total number of write units consumed by an index.
pinecone_db_read_unit_totalcounterThe total number of read units consumed by an index.
pinecone_db_storage_size_bytesgaugeThe total size of the index in bytes.

Attributes

The following resource attributes are available for Pinecone.

Attribute nameDescription
index_nameName of the index to which the metric applies.
cloudCloud where the index is deployed: aws, gcp, or azure.
regionRegion where the index is deployed.
capacity_modeType of index: serverless or byoc.

Next steps

After you set up data collection from Pinecone, the data populates built-in dashboards that you can use to monitor and troubleshoot Pinecone vector databases.

For more information on using built-in dashboards in Splunk Observability Cloud, see: