Git Product home page Git Product logo

Comments (8)

elasticmachine avatar elasticmachine commented on July 22, 2024

Pinging @elastic/ingest-management (Team:Ingest Management)

from elastic-agent.

blakerouse avatar blakerouse commented on July 22, 2024

I think with the new Fleet Server architecture we should have the Elastic Agent send the status information directly to Fleet Server and from their Fleet Server should append the status information to an index. This removes the need to Elastic Agent to have to write directly to elasticsearch, and it ensures that the Fleet Server has the updated information to perform required adjustments based on the coordinator work that the Fleet Server will need to perform in the future.

from elastic-agent.

nchaulet avatar nchaulet commented on July 22, 2024

I think with the new Fleet Server architecture we should have the Elastic Agent send the status information directly to Fleet Server and from their Fleet Server should append the status information to an index

I agree that we should send the data to Fleet server, so the coordinator can take advantage of that, I am just wondering if the agent should also persist is status (maybe in the logs) for agent observability purpose it will allow to have agent status for standalone agents too.

If we go to the direction where Fleet Server write the agent status, we should probably implement the same in Kibana, I think we can have an index similar to uptime synthetics-agent-status-default, (this could be defined in an elastic agent package ?) Right now is kind of tricky to write from the Kibana checkin route because we do not have the permission to write to ES unless we use the fleet_enroll admin user.

from elastic-agent.

ruflin avatar ruflin commented on July 22, 2024

The status should be reported the Fleet Server, but I still think Elastic Agent should persist it to ES directly as log or similar. This means, status reporting also works in standalone case for example.

from elastic-agent.

michalpristas avatar michalpristas commented on July 22, 2024

Agent can fail/be degraded in these cases (* meaning overall agent failure not component related):

* - metadata loading	 				failed to load metadata	

* - recover previous state 				could not recover state, error %+v, skipping... 

* - prepare FS 						filesystem error from os 

gateway - dispatch failed				failed to dispatch actions, error: %s", err

gateway - encode request				fail to encode the checkin request

gateway - decode response				fail to decode checkin response

gateway - request failed(auth,network)			fail to checkin to fleet (more detail in a message)


process - download - req fail				fetching package failed

process - download - !200 respose 			call to '%s' returned unsuccessful status code: %d

process - download - FS error				{details from os}

process - verify - hash not found			hash for '%s' not found

process - verify - hash mismatch			hash does not match

process - verify - asc fetch req fail 			fetching asc file from %s {details}
	
process - verify - asc armored key fail 		read armored key ring

process - verify - asc signature check 			check detached signature


process - install - os error				e.g "TarInstaller: error writing to %s: %v" or "tar contained invalid filename: %q"


process - start						failed to start '{details from go runtime}'

process - config					e.g application stopping

agent server 						e.g "failed to marshal connection information", "failed to write connection information"

upgrade - non upgradeable agent				cannot be upgraded; must be installed with install sub-command and running under control of the systems supervisor

upgrade - copy actions store 				failed to copy action store

upgrade - fs errors					error details from FS

from elastic-agent.

elasticmachine avatar elasticmachine commented on July 22, 2024

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

from elastic-agent.

jlind23 avatar jlind23 commented on July 22, 2024

@michalpristas do you think that it's still relevant?

from elastic-agent.

jlind23 avatar jlind23 commented on July 22, 2024

Closing this as done, we implement a more detailed status reporting already.
cc @ycombinator

from elastic-agent.

Related Issues (20)

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.