Skip to content

Commit

Permalink
remove unnecessary license headers
Browse files Browse the repository at this point in the history
Signed-off-by: chenwei <[email protected]>
  • Loading branch information
cw123 committed Jun 23, 2022
1 parent 1623105 commit 7d2dc7d
Show file tree
Hide file tree
Showing 23 changed files with 3 additions and 403 deletions.
4 changes: 0 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ Files: *
Copyright: Copyright (c) 2020, NetEase Inc.
License: Apache 2.0 (see LICENSE_APACHE)

Files: monitor/*
Copyright: Copyright (c) 2020, NetEase Inc.
License: GPL 2.0 (see LICENSE_GPL)

Files: src/chunkserver/raftsnapshot/curve_file_service.cpp
src/chunkserver/raftsnapshot/curve_file_service.h
src/chunkserver/raftsnapshot/curve_snapshot.cpp
Expand Down
18 changes: 0 additions & 18 deletions curve-ansible/roles/generate_config/templates/grafana.ini.j2
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
Expand Down
18 changes: 0 additions & 18 deletions curve-ansible/roles/generate_config/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

# my global config
global:
scrape_interval: {{ prometheus_scrape_interval }} # Set the scrape interval to every 15 seconds. Default is every 1 minute.
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/curve-monitor.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

#sh update_dashboard.sh
#echo "update dashboards success!"

Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

version: '2.0'

services:
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/grafana-report.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

# coding: utf8

import smtplib
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/grafana/grafana.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/grafana/provisioning/dashboards/all.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

- name: 'default'
org_id: 1
folder: ''
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/grafana/provisioning/datasources/all.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

datasources:
- name: 'Prometheus'
type: 'prometheus'
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

# my global config
global:
scrape_interval: 3s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/target.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,2 @@
#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

[path]
target_path=prometheus/target.json
24 changes: 3 additions & 21 deletions curvefs/monitor/target_json.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8

#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

from cProfile import label
import os
import time
Expand Down Expand Up @@ -49,7 +31,7 @@ def runCurvefsToolCommand(command):
except subprocess.CalledProcessError as e:
return 0, e.output
return 0, output


def loadServer():
ret, _ = runCurvefsToolCommand(["list-topology", "-jsonType=tree", "-jsonPath=%s"%JSON_PATH])
Expand Down Expand Up @@ -123,10 +105,10 @@ def refresh():
# load mds
mds = loadType("mds")
targets.append(mds)
# load client
# load client
client = loadClient()
targets.append(client)

with open(targetPath+'.new', 'w', 0o777) as fd:
json.dump(targets, fd, indent=4)
fd.flush()
Expand Down
18 changes: 0 additions & 18 deletions curvefs/monitor/update_dashboard.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2022 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

# Updates local dashboard configurations by retrieving
# the new version from a Grafana instance.
#
Expand Down
18 changes: 0 additions & 18 deletions monitor/curve-monitor.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

#sh update_dashboard.sh
#echo "update dashboards success!"

Expand Down
18 changes: 0 additions & 18 deletions monitor/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

version: '2.0'

services:
Expand Down
18 changes: 0 additions & 18 deletions monitor/grafana-report.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

# coding: utf8

import smtplib
Expand Down
18 changes: 0 additions & 18 deletions monitor/grafana/grafana.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
#
# Copyright (c) 2020 NetEase Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
Expand Down
Loading

0 comments on commit 7d2dc7d

Please sign in to comment.