Skip to content

Failed to update sidecar configuration with CURL command #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jingyuanli001 opened this issue Sep 29, 2022 · 4 comments
Closed

Failed to update sidecar configuration with CURL command #209

jingyuanli001 opened this issue Sep 29, 2022 · 4 comments

Comments

@jingyuanli001
Copy link

jingyuanli001 commented Sep 29, 2022

Hi, I am trying to setup a sidecar exporter with docker.
The sidecar exporter with initial setting is deployed successfully, and I received message when I visit the page hostname:8086

Current Configuration

hostName: hostname
port: 7001
queries:

I tried to update the configuration with curl command
curl -X PUT -i -u wlsusername:wlspassword -H "content-type: application/yaml" --data-binary "@./wlsexporter_conf.yaml" http://hostname:8086/configuration
and I received

HTTP/1.1 200 OK
Date: Thu, 29 Sep 2022 23:39:32 GMT
connection: keep-alive
content-length: 0

but nothing in the site hostname:port changes, and I am getting the same message as shown in the first code block. So I wonder what could be the reason for this failure. The configuration file that I am trying to upload is

metricsNameSnakeCase: true
queries:
- applicationRuntimes:
    key: name
    keyName: app
    componentRuntimes:
      type: WebAppComponentRuntime
      prefix: webapp_config_
      key: name
      values: [deploymentState, contextRoot, sourceInfo, openSessionsHighCount, openSessionsCurrentCount, sessionsOpenedTotalCount, sessionCookieMaxAgeSecs, sessionInvalidationIntervalSecs, sessionTimeoutSecs, singleThreadedServletPoolSize, sessionIDLength, servletReloadCheckSecs, jSPPageCheckSecs]
      servlets:
        prefix: weblogic_servlet_
        key: servletName
        values: [invocationTotalCount, reloadTotal, executionTimeAverage, poolMaxCapacity, executionTimeTotal, reloadTotalCount, executionTimeHigh, executionTimeLow]
- JVMRuntime:
    key: name
    values: [heapFreeCurrent, heapFreePercent, heapSizeCurrent, heapSizeMax, uptime, processCpuLoad]
@tbarnes-us
Copy link

Hi @jingyuanli001 , sorry for the late response. Is this still an issue?

@russgold ^^^

@jingyuanli001
Copy link
Author

jingyuanli001 commented Oct 11, 2022

Hi, I have been able to setup the exporter successfully. While I am not sure why the above issue happened, I did succeeded in uploading the configuration and working with the exporter.

@jingyuanli001
Copy link
Author

Hi, I think I found the cause of the issue. So my site is running in http mode but I create the container with -DWLS_SECURE=true. In this case when I try to upload the configuration file, it fails but still gives 200 response. Is there a way to make the exporter support the connection type check?

@tbarnes-us
Copy link

tbarnes-us commented Oct 21, 2022

Because this issue is closed, I recommend filing a new issue and tagging @russgold into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants