oracle / oracle/oci-cli

Monitoring metric list fails in US Gov (FedRAMP) regions

Open
#904 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Monitoring
Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

Below fails for all Tenancies in regions us-langley-1, us-luke-1. The same does not fail for commercial US regions.

oci monitoring metric list --compartment-id $COMP_ID                 
ServiceError:
{
    "client_version": "Oracle-PythonSDK/2.143.0, Oracle-PythonCLI/3.51.4",
    "code": "InvalidParameter",
    "logging_tips": "Please run the OCI CLI command using --debug flag to find more debug information.",
    "message": "Expensive list request. Please narrow down your search parameters.",
    "opc-request-id": "40659EA82289405BB0C52FEDE4FCA3E6/4D1FCD64245706817E1E86D4CD32E5BC/446C33257CFC9926A132826589C89095",
    "operation_name": "list_metrics",
    "request_endpoint": "POST https://telemetry.us-luke-1.oraclegovcloud.com/20180401/metrics/actions/listMetrics",
    "status": 400,
    "target_service": "monitoring",
    "timestamp": "2025-02-05T20:43:07.526103+00:00",
    "troubleshooting_tips": "See [https://docs.oracle.com/iaas/Content/API/References/apierrors.htm] for more information about resolving this error. If you are unable to resolve this issue, run this CLI command with --debug option and contact Oracle support and provide them the full error message."
}

If I run with this it does not fail

oci monitoring metric list --compartment-id #COMP_ID --group-by '["namespace"]'
{
  "data": [
    {
      "compartment-id": "*",
      "dimensions": {},
      "name": "*",
      "namespace": "oci_lbaas",
      "resource-group": "*"
    }
  ]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the OCI CLI monitoring metric list command shown in the report and reproduce it in us-langley-1 or us-luke-1, first without filters and then with --group-by '["namespace"]'. Use --debug as suggested by the error and compare the requests and responses with a commercial US region. Done means explaining or correcting the region-specific failure while preserving the working filtered behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.