Comments (2)
a couple of quick comments:
- Prometheus doesn't stoped measurements in types other than float. This usually means that you have to use a strings processor first to convert your DOWN string to 0 or 1. See an example
- As you noted, Prometheus also doesn't quite designed to work with infrequently changed data. The effects of it is that Prometheus reports metrics to go "stale" when no data is presented to be scraped in a given (configurable) interval. This makes it challenging to use Prometheus with ON_CHANGE subscriptions for data that changes rarely.
- There is a trick for (2) - I think it is done by setting the expiration to -1 and enabling the cache (https://gnmic.openconfig.net/user_guide/outputs/prometheus_output/#expiration) but Karim might know better
from gnmic.
Hey,
Cheers for the quick reply! For the time being I've swapped over to InfluxDB so to avoid the first issue/comment. The other ones were indeed fixed by setting the cache expiration to -1 (I believe -1s didn't work, but -1 does) and setting a cache flush timer.
I think that the final issue we're now having should be fixable if we choose to overwrite the timestamps: we'd want to get the timestamp of when the information is last read, not when it was last changed.
I'll attempt to overwrite the functionality of the timestamps.
Thank you for the quick suggestions, they've been most helpful with obtaining the data I'm looking for.
from gnmic.
Related Issues (20)
- The sarama kafka library has changed ownership and is no longer receiving updates HOT 3
- Broken links in gNMIC cluster documentation pages
- Race condition to use tg.SubscribePoll HOT 3
- Access to Deletes Field in Event Processors HOT 4
- gnmic 0.35.1 - failed to create a gRPC client for target XXX: context deadline exceeded HOT 10
- Query about gnmi proto version HOT 4
- JQ filtering inconsistency? HOT 1
- Getting response for single subscription when multiple subscriptions are requested through config file with ONCE mode HOT 6
- Session reestablishment issues HOT 5
- Request for Example Configuration for PaloAlto & PAN-OS Environments
- Latest version fails to connect to local Unix socket HOT 1
- K8s Clustering Leader Receives Context Deadline Error on Target HOT 5
- gRPC working fine even if we pass server certificate instead of root CA in --tls-ca parameter. HOT 6
- My Prometheus is unable to scrape any telemetry data from gNMIc although gNMIc is collecting data from the target and exposing it on port 9273. HOT 4
- debug mode outputs password HOT 1
- My Prometheus is unable to scrape any telemetry data from gnmic for BGP operational state although gnmic is collecting data from the target and exposing it on port 9273. HOT 2
- gNMIc generate unknown path item HOT 3
- Event Processor Not Applying Transformation as Expected HOT 6
- Question about deleted paths HOT 4
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.