Giter VIP home page Giter VIP logo

agent-bond's People

Contributors

astefanutti avatar chirino avatar davsclaus avatar fusesource-ci avatar jheusser avatar jimmidyson avatar rhuss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agent-bond's Issues

Tomcat and Wildfly Links

Hi Roland,
the links above are broken. Are the samples still available somewhere?
Cheer Christian

Jolokia always accessed via TLS on OpenShift 3.4

We are using OpenShift 3.4, operated by AppAgile/Deutsche Telekom for a customer.

Our application is a Spring Boot application which already contains Jolokia. The base image is

        from:
          kind: ImageStreamTag
          namespace: 'openshift'
          name: 'fis-java-openshift:1.0-15'

Jolokia is bound to a management port 8442 w/ plain http and happily responds to a local request (via Terminal session to the POD/container) using curl localhost:8442/jolokia:

{"request":{"type":"version"},"value":{"agent":"1.3.6","protocol":"7.2","config":{"agentId":"10.1.11.233-1-20b54cfe-servlet","agentType":"servlet"},"info":{}},"timestamp":1502286997,"status":200}

However when we try to connect via Java Console from the Web UI we get an error message:

Error: 'tls: oversized record received with length 20527'
Trying to reach: 'https://10.1.11.233:8442/jolokia/?maxDepth=7&maxCollectionSize=500&ignoreErrors=true&canonicalNaming=false'

I have already tried several combinations of AB_JOLOKIA_... environment variables in the deployment configuration (cf. https://access.redhat.com/documentation/en-us/red_hat_jboss_middleware_for_openshift/3/html-single/red_hat_java_s2i_for_openshift/). None of them made a difference, TLS seems to be always used for access.

Regs
Gerd

Change delimiter {{ .. }} to sth more shell save

The reason is that jolokia{{a,b,c}} gets shell-evaled to jolokia{a} jolokia{b} jolokia{c}. So when building up JAVA_OPTS for some startup scripts where at the end JAVA_OPTS gets evalved (like for tomcat startup scripts), this will bork everything.

Any idea for a good delimiter pair ? Should be shell safe, prefereable two different chars so its easier to parse and seldom used to avoid to implement escaping).

Include readiness + liveness check agent

A simple agent which opens a port and answer requests for readiness with an "OK" or "NOK" on a plain http requests. How this check can be performed internally and how it can be configured is still open. It could be based on

  • the existance of an MBean
  • the outcome of an MBean
  • calling an internal, static method
  • ....

Same for the liveness.

This should be configurable from the outside (the same way the other agents can be configured). The functionality should be very limited (i.e. not sth replacing Jolokia) so that it can be used by everyone without authentication.

Allow Jolokia Port as env varaiable

Allow Jolokia port to be specified as env variable like -javaagent:./agent-bond-agent.jar=jolokia{{port=${env:MY_JOLOKIA_PORT}}. currently specifying this way throws NumberFormatException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.