monitoring

.Net SQL Server Database Monitoring - Insert, Update, Delete

情到浓时终转凉″ 提交于 2020-01-29 02:29:07
问题 Does anyone know of a way to monitor table record changes in a SQL Server (2005 or 2008) database from a .Net application? It needs to be able to support multiple clients at a time. Each client will "subscribe" when it starts, and "unsubscribe" when it exits. Multiple users could be accessing the system at once and I want to reflect their changes on the other users client. Then when the client handles the change event, it could update it's local object representing that record. Kind of

Hpa not fetching existing custom metric?

给你一囗甜甜゛ 提交于 2020-01-24 22:13:34
问题 I'm using mongodb-exporter for store/query the metrics via prometheus . I have set up a custom metric server and storing values for that . That is the evidence of prometheus-exporter and custom-metric-server works compatible . Query: kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/monitoring/pods/*/mongodb_mongod_wiredtiger_cache_bytes" Result: {"kind":"MetricValueList","apiVersion":"custom.metrics.k8s.io/v1beta1","metadata":{"selfLink":"/apis/custom.metrics.k8s.io/v1beta1

Hpa not fetching existing custom metric?

末鹿安然 提交于 2020-01-24 22:12:06
问题 I'm using mongodb-exporter for store/query the metrics via prometheus . I have set up a custom metric server and storing values for that . That is the evidence of prometheus-exporter and custom-metric-server works compatible . Query: kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/monitoring/pods/*/mongodb_mongod_wiredtiger_cache_bytes" Result: {"kind":"MetricValueList","apiVersion":"custom.metrics.k8s.io/v1beta1","metadata":{"selfLink":"/apis/custom.metrics.k8s.io/v1beta1

Why there are both counters and gauges in Prometheus if gauges can act as counters?

北城余情 提交于 2020-01-24 22:09:04
问题 When deciding between Counter and Gauge , Prometheus documentation states that To pick between counter and gauge, there is a simple rule of thumb: if the value can go down, it is a gauge. Counters can only go up (and reset, such as when a process restarts). They seem to cover overlapping use cases: you could use a Gauge that only ever increases. So why even create the Counter metric type in the first place? Why don't you simply use Gauges for both? 回答1: From a conceptual point of view, gauge

How to Monitor Genuine Page Hits

本秂侑毒 提交于 2020-01-23 12:47:56
问题 I am trying to monitor genuine page hits. Here is what my site does. I have an article directory where people can post articles. When their article is posted they are paid depending on the amount of unique users visit their pages. So page hits are important. Here is the problem I am facing. What I need: I don't want to track page hits by minor search engines or robots. I would like the major 4 search engines to surf my site because I can monitor them by IP address and not count their visit as

How to rename label within a metric in Prometheus

断了今生、忘了曾经 提交于 2020-01-23 07:25:22
问题 I have a query: node_systemd_unit_state{instance="server-01",job="node-exporters",name="kubelet.service",state="active"} 1 I want the label name being renamed (or replaced) to unit_name ONLY within the node_systemd_unit_state metric. So, desired result is: node_systemd_unit_state{instance="server-01",job="node-exporters",unit_name="kubelet.service",state="active"} 1 There are many other metrics with a label name name in the node-exporters job. That's why I can't use relabel config across the

How can I monitor the Task queues in the .NET TaskSchedulers (across AppDomain)

十年热恋 提交于 2020-01-23 01:22:06
问题 As a developer, I would like to monitor the size (and progress) of work in the Task Queues in the TaskSchedulers so that I can evaluate whether an experienced slowdown under production load is due to the magnitude or perhaps stall of tasks scheduled. Normally I would simply attach the debugger and inspect task sizes, but: The application is running under mono and in production, so I cannot attach to it using visual studio I would like to deliver output of analysis on this data as surveillance

How to know if MAC address is attached to wireless card or ethernet card?

為{幸葍}努か 提交于 2020-01-16 19:50:22
问题 I'm performing network monitoring with a software developed by my company. For each machine, I have the mac address of the card used to connect to the network. I'm looking for a way to know, from the MAC address (for example), if the card is an Ethernet card or a wireless card. I can use nmap and openvas sensors results in my analysis. The final goal is to get a hint to know if the machine is a workstation or a laptop. I'm programming in python, but any other solution is welcome. Thanks 回答1:

How to know if MAC address is attached to wireless card or ethernet card?

倖福魔咒の 提交于 2020-01-16 19:49:47
问题 I'm performing network monitoring with a software developed by my company. For each machine, I have the mac address of the card used to connect to the network. I'm looking for a way to know, from the MAC address (for example), if the card is an Ethernet card or a wireless card. I can use nmap and openvas sensors results in my analysis. The final goal is to get a hint to know if the machine is a workstation or a laptop. I'm programming in python, but any other solution is welcome. Thanks 回答1:

Increasing Prometheus storage retention

不想你离开。 提交于 2020-01-16 12:03:46
问题 Hi I have Prometheus server installed on my AWS instance but the data is been removed automatically after 15 days. I need to have data for an year or months, is there anything I need to change in my prometheus configuration? Or do I need any extensions like Thanos, I am new to Prometheus so please be easy on the answers 回答1: There's the --storage.tsdb.retention.time flag that you can set when you start Prometheus. It defines how long data is kept in the time-series database (TSDB). The