opensearch-project / performance-analyzer

📈 Get detailed performance metrics from your cluster independently of the Java Virtual Machine (JVM)
https://opensearch.org/docs/latest/monitoring-plugins/pa/index/
Apache License 2.0
36 stars 66 forks source link

[BUG] <h1>404 Not Found</h1>No context found for request #479

Closed marcohald closed 1 year ago

marcohald commented 1 year ago

What is the bug? When calling curl localhost:9600/_plugins/_performanceanalyzer/rca?name=HighHeapUsageClusterRCA the Plugin should return Data

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Install Opensearch v 2.7.0
  2. Enable Plugin as described here https://opensearch.org/docs/latest/monitoring-your-cluster/pa/index/
  3. call curl localhost:9600/_plugins/_performanceanalyzer/rca?name=HighHeapUsageClusterRCA
  4. See error

What is the expected behavior? Data should be returned.

What is your host/environment?

Error:

 {
  "error": "no handler found for uri [/_plugins/_performanceanalyzer/metrics] and method [GET]"
}

Do you have any screenshots? If applicable, add screenshots to help explain your problem.

Do you have any additional context? Data seems to be collected

# ls  /dev/shm/performanceanalyzer/ -lahtr
insgesamt 712K
drwxrwxrwt 3 root       root         60 25. Mai 14:15 ..
-rw-r--r-- 1 opensearch opensearch 290K 27. Mai 00:00 1685138400000.tmp
-rw-r--r-- 1 opensearch opensearch 232K  4. Jun 00:09 1685830185000.tmp
-rw-r--r-- 1 opensearch opensearch 2,9K  6. Jun 13:41 1686051660000
-rw-r--r-- 1 opensearch opensearch 3,6K  6. Jun 13:41 1686051665000
-rw-r--r-- 1 opensearch opensearch 2,9K  6. Jun 13:41 1686051670000
-rw-r--r-- 1 opensearch opensearch 2,5K  6. Jun 13:41 1686051675000
-rw-r--r-- 1 opensearch opensearch 4,1K  6. Jun 13:41 1686051680000
-rw-r--r-- 1 opensearch opensearch 2,9K  6. Jun 13:41 1686051685000
-rw-r--r-- 1 opensearch opensearch 3,6K  6. Jun 13:41 1686051690000
-rw-r--r-- 1 opensearch opensearch 2,1K  6. Jun 13:41 1686051695000
-rw-r--r-- 1 opensearch opensearch  19K  6. Jun 13:41 1686051700000
-rw-r--r-- 1 opensearch opensearch 2,9K  6. Jun 13:41 1686051705000
-rw-r--r-- 1 opensearch opensearch 3,1K  6. Jun 13:41 1686051710000
-rw-r--r-- 1 opensearch opensearch 2,6K  6. Jun 13:41 1686051715000
-rw-r--r-- 1 opensearch opensearch 4,2K  6. Jun 13:42 1686051720000
-rw-r--r-- 1 opensearch opensearch 4,0K  6. Jun 13:42 1686051725000
-rw-r--r-- 1 opensearch opensearch 4,5K  6. Jun 13:42 1686051730000
-rw-r--r-- 1 opensearch opensearch 3,5K  6. Jun 13:42 1686051735000
-rw-r--r-- 1 opensearch opensearch 7,2K  6. Jun 13:42 1686051740000
-rw-r--r-- 1 opensearch opensearch 5,6K  6. Jun 13:42 1686051745000
-rw-r--r-- 1 opensearch opensearch 5,5K  6. Jun 13:42 1686051750000
-rw-r--r-- 1 opensearch opensearch 4,8K  6. Jun 13:42 1686051755000
-rw-r--r-- 1 opensearch opensearch 4,1K  6. Jun 13:42 1686051760000
-rw-r--r-- 1 opensearch opensearch 3,6K  6. Jun 13:42 1686051765000
-rw-r--r-- 1 opensearch opensearch 3,6K  6. Jun 13:42 1686051770000
-rw-r--r-- 1 opensearch opensearch 5,4K  6. Jun 13:42 1686051775000
-rw-r--r-- 1 opensearch opensearch 4,5K  6. Jun 13:43 1686051780000
-rw-r--r-- 1 opensearch opensearch 4,7K  6. Jun 13:43 1686051785000
-rw-r--r-- 1 opensearch opensearch 5,2K  6. Jun 13:43 1686051790000
-rw-r--r-- 1 opensearch opensearch 1,6K  6. Jun 13:43 1686051800000.tmp
-rw-r--r-- 1 opensearch opensearch 8,2K  6. Jun 13:43 1686051795000.tmp
drwxr-xr-x 2 opensearch opensearch  660  6. Jun 13:43 .

Config; GET /_opendistro/_performanceanalyzer/config

{
  "performanceAnalyzerEnabled": true,
  "rcaEnabled": true,
  "loggingEnabled": false,
  "shardsPerCollection": 0,
  "batchMetricsEnabled": false,
  "threadContentionMonitoringEnabled": false,
  "batchMetricsRetentionPeriodMinutes": 7
}
journalctl -u opensearch-performance-analyzer -f
-- Journal begins at Mon 2023-06-05 20:59:55 CEST. --
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@        @@        @@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@    @@  @@  @@@@  @@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@    @@  @@  @@@@  @@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@        @@  @  @  @@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@        @@        @@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  Thank you for using jOOQ 3.10.8
Jun 06 13:51:40 host performance-analyzer-agent-cli[285228]:
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:45 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:45 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: Juni 06, 2023 1:51:50 PM org.jooq.tools.JooqLogger info
Jun 06 13:51:50 host performance-analyzer-agent-cli[285228]: INFORMATION: Single batch             : No bind variables have been provided with a single statement batch execution. This may be due to accidental API misuse
khushbr commented 1 year ago

Hello @marcohald !

Can you clarify which API had issues: Is it /rca or /metrics?

khushbr commented 1 year ago

Closing due to lack of response from the issue author.