Comments (5)
This works perfectly. Thanks for the quick turnaround @karimra
from gnmic.
The Prometheus output uses the address part of the listen
field to register as a service address in Consul.
If that field is empty, Consul defaults to its own address as a service address.
If you want to register 10.249.1.215
as a service address for the prometheus output you should set listen to listen: 10.249.1.215:9804
.
The caveat here is that your prometheus output listens only to that address, not to any address in the system.
from gnmic.
The Prometheus output uses the address part of the
listen
field to register as a service address in Consul. If that field is empty, Consul defaults to its own address as a service address.If you want to register
10.249.1.215
as a service address for the prometheus output you should set listen tolisten: 10.249.1.215:9804
. The caveat here is that your prometheus output listens only to that address, not to any address in the system.
The issue is have is that i'm running gnmic in a docker container via docker-compose with the prometheus endpoint port exposed, so it can't bind to 10.249.1.215:9804
I believe another possible solution to this would be to support the service-address
configuration option in the service-registration section of the output in the same fashion that it can be configured in the clustering configuration.
from gnmic.
I see, let me look into it
from gnmic.
@jasonyates-thg can you give v0.30.0 a try?
You can set a service address as below:
outputs:
prometheus:
type: prometheus
listen: :9804
path: /metrics
event-processors:
- interface-descriptions
service-registration:
address: 10.249.0.250:8500
service-address: 10.249.1.215
It will register Address=10.249.1.215
and Port=9804
.
You can also set a port with the address service-address: 10.249.1.215:9999
if the external port is different from the internal one.
from gnmic.
Related Issues (20)
- split-events: false not suppressing empty messages HOT 3
- stringArray in the main branch is not working as expected HOT 4
- Poll updates are not written to output provided in the config HOT 4
- Kafka input TLS authentication support HOT 3
- Installation script fails with ubuntu 24.04 HOT 1
- Prometheus metrics issue for string values HOT 14
- gnmic 0.38.2 regression test failure HOT 3
- Starlark LLDP script breaks prometheus output HOT 8
- Performance optimisation for prometheus output HOT 11
- Log Fail Attempt to Influxdb HOT 1
- [Question] Deploying behind NGINX ingress controller HOT 1
- gnmi-server not sending sync_response correctly in Subscribe mode = once HOT 2
- Support for the gNMI extension field HOT 3
- gNMIc targets redistribution doesn`t work after pod fails HOT 2
- can get response when using a disabled cipher HOT 1
- Question about setting stream window size HOT 5
- Feature request: Improve observability in api-server metrics implementation
- Question: What format to be used for targets added in consul HOT 1
- gnmic retries stream subscriptions after INVALID_ARGUMENT error HOT 1
- How to parse an SNE router ID to the gnmi request when the router ID is not exposed to outside network 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 gnmic.