Comments (6)
I'm not against it, but it's not obvious to me how this would be encoded in Prometheus metrics. If someone has a good suggestion there, I can certainly take a shot at an implementation.
from fastly-exporter.
I guess the "Grafana annotations" part will need some additional jury-rigging ;), for the time being I'm mostly concerned with getting the information out of the API in the first place. Luckily, the version is a plain integer, so what do you think about something like this:
fastly_service_version{service_id="ABCxyz",service_name="www.example.com"} 123.0
fastly_service_version{service_id="DEFtuv",service_name="img.example.com"} 42.0
from fastly-exporter.
Generally it's a mistake to report data like that in the actual value, rather prefer to put everything in labels and allow the value to be constant 1.
from fastly-exporter.
Oh. What are the risks/downsides? I have not been using Prometheus for all that long, so I guess I haven't painted myself into that particular corner yet (since I don't see anything wrong with the approach ;).
But to be honest I'm not very particular about the format -- all I want is to be able to retrieve a set of "sevice x has version y" items, which should be easy either way. (And possibly query "which version does service x have".) Thanks!
from fastly-exporter.
@wosc Are you able to easily build and test the version in the branch associated with #30? If yes, please give it a shot and make sure it meets your requirements. If no, let me know and I'll cut a release for you.
from fastly-exporter.
Thanks to your Dockerfile building was very easy! (I did have to manually clone peterbourgon/usage
to vendor/
first, probably because I know nothing about the golang build toolchain yet ;).
The resulting metrics look fine to me, they give me the currently active version, which is exactly what I wanted. Thank you so much for building it! :)
fastly_rt_service_info{service_id="...",service_name="[PROD] www.zeit.de",service_version="152"} 1
fastly_rt_service_info{service_id="...",service_name="[PROD] img.zeit.de",service_version="65"} 1
from fastly-exporter.
Related Issues (20)
- Cannot pull new Docker image HOT 3
- Support HTTP3 metrics
- Better logging for rt.fastly.com (Client.Timeout exceeded while awaiting headers) HOT 2
- remove tls_version="any" from fastly_rt_tls_total HOT 3
- metric consolidation for http2/http3
- Race condition between processing and scraping
- carnality explosion with fastly_rt_datacenter_info HOT 3
- Consider adding a way to (optionally) track tokens HOT 2
- Reduce output size of metrics endpoint HOT 3
- Expose fastly rt api 'recorded' timestamp in prometheus metrics HOT 3
- Add all those wild new Compute@Edge metrics
- Missing Docker images HOT 9
- RT API meta-metric HOT 3
- Metric Timestamps HOT 15
- Add datcenters API enricment HOT 2
- Add partial docker tags HOT 4
- iterating http_sd support towards generic discovery HOT 21
- Continue starting up if fastly is down HOT 1
- Exporter should set it's own custom user-agent HOT 5
- Pagination is not working properly (not fetching every pages) HOT 5
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 fastly-exporter.