Skip to content

Instantly share code, notes, and snippets.

View omkar0001's full-sized avatar

omkar omkar0001

  • Instafrsh
  • Gurgaon
View GitHub Profile
init_config:
instances:
- host: djangotest2.cnf9tnp58ewd.ap-southeast-1.rds.amazonaws.com
port: 5432
username: datadog1
password: AivZXZyy5UR3hCvLDatGwWsU
# username: my_username
# password: my_password
init_config:
instances:
# The URL where elasticsearch accepts HTTP requests. This will be used to
# fetch statistics from the nodes and information about the cluster health.
#
# If you're using basic authentication with a 3rd party library, for example
# elasticsearch-http-basic, you will need to specify a value for username
# and password for every instance that requires authentication.
#
init_config:
instances:
# For every instance, you need an `nginx_status_url` and can optionally
# supply a list of tags. This plugin requires nginx to be compiled with
# the nginx stub status module option, and activated with the correct
# configuration stanza. On debian/ubuntu, this is included in the
# `nginx-extras` package. For more details, see:
#
# http://docs.datadoghq.com/integrations/nginx/
################### Filebeat Configuration Example #########################
############################# Filebeat ######################################
filebeat:
# List of prospectors to fetch data.
prospectors:
# Each - is a prospector. Below are the prospector specific configurations
-
# Paths that should be crawled and fetched. Glob based paths.
# To fetch all ".log" files from a specific level of subdirectories
input {
beats {
port => 5044
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601} "
negate => true
what => previous
}
}
}
input {
file {
path => "/home/ubuntu/idelivr-backend/*.log"
start_position => beginning
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601} "
negate => true
what => previous
}
}
DJANGO_LOGLEVEL (DEBUG|INFO|ERROR|WARNING|CRITICAL)
DJANGO_LOG %{DJANGO_LOGLEVEL:log_level}\s+%{TIMESTAMP_ISO8601:log_timestamp}\s+%{TZ:log_tz}\s+%{NOTSPACE:logger}\s+%{WORD:module}\s+%{POSINT:proc_id}\s+%{GREEDYDATA:content}
server {
listen 80;
server_name kibanadev.idelivr.info;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:5601;
@omkar0001
omkar0001 / ideivr-nginx-conf
Last active December 19, 2015 08:52
ideivr-nginx-conf
server {
server_name popioka.idelivr.info;
access_log off;
location /static_local/ {
alias /home/ubuntu/bookmyspot/v2/static_local/;
}
location /static/ {
server {
# This is the URI of your website. You can specify multiple sites to be
# served by the same Drupal installation.
server_name zabbix.dev;
# This is the root of the Drupal directory.
# Note that Drupal 6, Drupal 7, and Pressflow are interchangeable
root /usr/share/zabbix;
index index.php;