monitoring

Make a DB INSERT based on Text File Input metadata

此生再无相见时 提交于 2019-12-12 04:54:28
问题 I'm developing an ETL and must do some routines for monitoring it. At the begining, I must make in INSERT on DB to create a record informing the filename and starting process datetime. This query will return the record's PK and it must be stored. When the ETL of that file finishes, I must update that record informing the ETL finished with success and its ending process datetime. I use Text File Input to look for files that match its regex, and add its "Additional output fields" to stream. But

How to know if a process had been started but crashed in Linux

陌路散爱 提交于 2019-12-12 04:47:53
问题 Consider the following situation: - I am using Linux. I have doubt that my application has crashed. I had not enabled core dump. There is no information in the log. How can I be sure that, after the system restart my app was started, but now it is not running, because it has crashed. My app is configured as a service, written in C/C++. In a way: how can I get all the process/service names that have executed since the system start? Is it even possible? I know, I can enable logging and start

Android application performance monitoring tool

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:26:14
问题 I have developed an Android game app, and now I am looking for a tool that would monitor my apps real user performance (like CPU, memory, GPU, network, latency, etc.). I know about NewRelic's mobile APN monitoring, but it is too expensive for me. What would be other options? Thank you in advance. 回答1: If you are simply looking to understand the consumption of each of the device vitals by your application, then there are several tools on the Google Play which will help you with the same. Some

scollector - send metadata for a node if bosun restarts

筅森魡賤 提交于 2019-12-12 04:12:12
问题 Alerts defined in bosun failed as the metadata was not populated when bosun restarts. Is there a way to configure scollector to send metadata once the connection to bosun breaks? I always need to restart bosun as I keep modifying the configuration file. 回答1: Bosun stores metadata (and incident info) in redis/ledis. This information is expected to be persisted and not destroyed when Bosun is restarted. There will be a gap in Bosun's ability to receive metadata during this restart though. It

How can I monitor and block traffic using a filter list of URL's?

笑着哭i 提交于 2019-12-12 01:49:28
问题 I'm trying to create an app that monitors all incoming traffic and blocks it if required and if necessary, replace it with traffic from elsewhere. (preferably using a filter list made up of URL's) is there any possible way to do this? I have searched Google, and stack overflow and I have not been able to find anything relevant to my needs. thank you very much for any help in advance. 回答1: This will be tough. Android has no host file as such. I assume you will not want to develop your own

How can I get memory and CPU usage of an external process with Java?

时光怂恿深爱的人放手 提交于 2019-12-12 01:26:56
问题 I need to get info for memory and CPU usage of some process running on the machine (not the Java process). How can I do that? 回答1: It's platform dependent, but essentially use Runtime.getRuntime() to execute the appropriate command, capture its output and parse it for the data you need. 回答2: If I'm not mistaken Runtime.getRuntime is for the virtual machine and not the physical. What you are about asking is getting the physical machine information (meaning the CPU). 来源: https://stackoverflow

to monitor local pc network and block ip's is winpcap is the tool?

安稳与你 提交于 2019-12-11 18:34:09
问题 i need to build network monitor that sniff the network and to hold ip policy that will enable me to block the network based on this policy for example: if im getting incoming http protocol from ip that is in my ip policy black list and now i like to block it and for example redirect this http request so it could contain now my http packet ( packet injection ? ) dose winpcap can do the job ? To be more to the point basically what i need is to build simple url blocking app .. Which approach

Getting Kafka usage details

纵饮孤独 提交于 2019-12-11 17:48:39
问题 I am trying to find ways to get current usage statistics for my kafka cluster. I am looking to collect following information: Number of topics in kafka cluster Number of partitions per kafka broker Number of active consumers and producers Number of client connections per kafka broker Number of messages on each partition, size of disk etc. Lagging replicas, consumer lag etc. Active consumer groups Any other statistics that can and should be collected, currently I am looking at collecting the

Dynamic label values in Promethues alerting rules

試著忘記壹切 提交于 2019-12-11 17:46:50
问题 I am a bit of a novice with the monitoring world. Here is my question. I want to fire an alert only for a set of assets based on asset-id. My metrics looks like the below. test_value{asset_id="123"} 0.215 My alert manager rules looks like the below. name: iot_rules rules: - alert: threshhold_alert expr: test_value >= 4 #for: 1m labels: severity: critical probableCause: Communication failure annotations: summary: 'Error detected on {{$labels.assset_id}}' I get the templating feature on the

How to programatically reconfigure Availability Monitoring in DevOps stage for Blue-Green deployment?

牧云@^-^@ 提交于 2019-12-11 17:30:46
问题 I'm using an IBM devops pipeline based on the Cloud Foundry template. The template gives you Blue-Green deployments. My stage deploy script looks like this: #!/bin/bash cat << EOF > ${WORKSPACE}/manifest.yml declared-services: my_cloudant: label: cloudantNoSQLDB plan: Lite my_messagehub: label: messagehub plan: standard my_autoscaling: label: Auto-Scaling plan: free my_availability_monitoring: label: AvailabilityMonitoring plan: Lite applications: - name: movie-recommend-demo host: movie