Comments (7)
Wondering if there is any traction on this, we tried to implement a Prometheus exporter check and ran into this same issue, had to farm off the exporter to check to an unrelated stand alone server.
from signalfx-agent.
@daviddyball I actually implemented this feature last year in a hackathon we had and we have gotten several requests similar to yours in the last few months. Unfortunately my implementation is sitting in a feature branch (https://github.com/signalfx/signalfx-agent/tree/clustering) and needs a bit of fixing up and testing/debugging to make production-ready. It is basically just an extension and abstraction of what the kubernetes-cluster
monitor does to ensure that it runs on a single agent instance within a K8s cluster.
The way it is implemented (in the branch) is that the agent depends on some external service to do the election process. In K8s, it uses the K8s API server and ConfigMaps to obtain "leases". I made a simple Memcached implementation in my branch. Would you be able to make use of one of those two implementations or would some other service be more convenient for you? It is pretty simple to extend it to use anything that supports basic atomic operations and can be accessed over the network by the agent.
We are looking into "productionalizing" this soon and will post any updates here.
from signalfx-agent.
@keitwb Cool to see it's been thought of already. Most of our services that require leadership election just use K8s ConfigMaps
for doing that, so I can't see why it wouldn't work here also. Glad it's on the radar... having 500 connections to our RDS instance just for monitoring wasn't feasible 😂
from signalfx-agent.
@mcmiv413 unfortunately not -- it was deprioritized given how complex it is to make work (there are a lot of edge cases to work out). I had something working but it was nasty and I wasn't very confident putting it out. I now believe that this problem is really better solved at a level above the agent, as that allows the agent to remain relatively simple.
from signalfx-agent.
@keitwb Do you have a recommendation for how it should be done?
from signalfx-agent.
@daviddyball By running a separate standalone agent instance with the appropriate hardcoded config. If you are in K8s you can use a Deployment with size of 1 with its own ConfigMap. It's a bit more overhead to setup but once you get it running it should be simple to maintain.
from signalfx-agent.
I'd argue that doing what is suggested is a poor game plan, any time where you rely on something to only be ever running as a single instance even in kubernetes is just bad practice in my opinion. I do hope that this gets revisited and implemented in an appropriate manner.
from signalfx-agent.
Related Issues (20)
- how to get the sfx metric details and its complete description. HOT 3
- SignalFx agent installation on proxy based server HOT 3
- package doesn't include libnss_resolve HOT 2
- From where we can download the signalfx agent latest rpm file to install.
- Signalfx agent is unable to pick the proxy configurations
- how to run a powershell script from exec plugin HOT 2
- Deprecation notice doesn't make sense to me HOT 2
- Issue regarding metric sf.org.num.mutingactive HOT 1
- Error: " Unable to collect username for process " from SignalFx agent HOT 1
- Signalfx agent making IMDSv1 request HOT 1
- StatsD parser doesn't handle tag values that contain colons
- API to get the list of CI reporting to console from any cloud native like EC2 instances HOT 1
- logLevel is not working in signalfx helm chart HOT 1
- Agent Occasionally Drops HTTP POST Connections HOT 1
- Helm chart version 1.9.4 does not work with App version 5.21.0 (error retrieving resource lock during leaderelection) HOT 2
- What is the upcoming release schedule? HOT 2
- Monitor never create with discoveryRule HOT 2
- metrics monitor `container_cpu_utilization` is seconds not percentages HOT 2
- Bump issue in k8s deployment files HOT 1
- check_links action should ignore SQL link HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalfx-agent.