Comments (4)
Any interest in adding non-blackbox monitoring?
from sysadmin.
@SuperQ yeah in the long term I think we want to have our services speak prometheus and publish more application specific metrics.
For example I have been rewriting the collector component in golang and are using there github.com/zsais/go-gin-prometheus to publish the number of submitted measurements by country and by platform: https://github.com/ooni/collector/blob/mvp-kiss/collector/metrics.go.
The nginx module is a good one and I think we should look into that, but I think the ideal scenario is that the metrics are published using some prometheus library by the application itself. Is this correct?
from sysadmin.
Yes, it's best to have the code itself do the tracking. It's pretty easy to use the official Go and Python libraries.
That's a very strange wrapper, wouldn't it be easier to use the Prometheus client_golang directly?
The nginx module idea helps because it lets you know what's going on inside nginx as well.
from sysadmin.
That's a very strange wrapper, wouldn't it be easier to use the Prometheus client_golang directly?
go-gin-prometheus is basically just exposing client_golang as a gin middleware (which is the routing library we use in OONI golang tooling). The nice thing is that they already figured out how to log the request size, request duration and request count for gin, so we don't have to re-implement this ourselves.
It effectively though is still reliant most on the client_golang to expose the metrics: https://github.com/zsais/go-gin-prometheus/blob/master/middleware.go#L78.
from sysadmin.
Related Issues (20)
- Upgrade TLS used by web-connectivity test-helper HOT 1
- Test master issue
- Child issue
- Bouncer giving out down test-helpers for ~16 hours HOT 5
- Migrate collectors to the oonified host HOT 1
- Make the cans public and move the to the open data account
- Implement a deb based deployment process HOT 2
- Monitoring: fix frequent alerts around .onion services being unreachable
- Prometheus / Grafana: store data for longer times HOT 10
- Incident: very slow rsync between ams-ps1 and datacollector HOT 4
- Incident: blocked pipeline on 2019-12-10 HOT 1
- y3zq5fwelrzkkv3s.onion ams-wcth2 unreachable HOT 2
- Drop brie.darkk.net.ru from monitoring HOT 2
- [FIRING] Lots of `scrape_samples_scraped` lost Now ~ 2.83k, 24h ago ~ 27.96k. HOT 1
- psql: FATAL: database "metadb" does not exist HOT 4
- MetaDB - Time to replication
- Metadb Replica Access - postgres user HOT 1
- no:assignee
- Slack bridge is not transmitting messages to IRC channel HOT 2
- RSS by country feed is not available
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 sysadmin.